diff options
author | nu-nu-ko <153512689+nu-nu-ko@users.noreply.github.com> | 2024-03-14 16:54:37 +1300 |
---|---|---|
committer | nuko <nuko@shimeji.cafe> | 2024-05-10 21:16:30 +1200 |
commit | aac46ef62793ea11b2ec21dd26db947351be9ae5 (patch) | |
tree | 352d58794d92cbf03cb3d8e884eab7a022128866 /pkgs/servers/misc | |
parent | 1c0d10e4f449ffa105edd8b3e130e44a59a72a7b (diff) |
navidrome: move to by-name
Diffstat (limited to 'pkgs/servers/misc')
-rw-r--r-- | pkgs/servers/misc/navidrome/default.nix | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/pkgs/servers/misc/navidrome/default.nix b/pkgs/servers/misc/navidrome/default.nix deleted file mode 100644 index d7722688c7743..0000000000000 --- a/pkgs/servers/misc/navidrome/default.nix +++ /dev/null @@ -1,88 +0,0 @@ -{ buildGoModule -, buildPackages -, fetchFromGitHub -, fetchNpmDeps -, lib -, nodejs -, npmHooks -, pkg-config -, stdenv -, ffmpeg-headless -, taglib -, zlib -, makeWrapper -, nixosTests -, nix-update-script -, ffmpegSupport ? true -}: - -buildGoModule rec { - pname = "navidrome"; - version = "0.52.0"; - - src = fetchFromGitHub { - owner = "navidrome"; - repo = "navidrome"; - rev = "v${version}"; - hash = "sha256-AbavYvXMVJTopnfBFNx2TVqITPZCRtVeUFqROpNmtt8="; - }; - - vendorHash = "sha256-rwRWyegjlDFqbq1/cI2DhC1UJEySJaZkeoxgeH+u5Rc="; - - npmRoot = "ui"; - - npmDeps = fetchNpmDeps { - inherit src; - sourceRoot = "${src.name}/ui"; - hash = "sha256-OZvEPC+MobCJn16d3MsMtrStbsmRD9Ef0/leVSXtVZ8="; - }; - - nativeBuildInputs = [ - buildPackages.makeWrapper - nodejs - npmHooks.npmConfigHook - pkg-config - ]; - - overrideModAttrs = oldAttrs: { - nativeBuildInputs = lib.filter (drv: drv != npmHooks.npmConfigHook) oldAttrs.nativeBuildInputs; - preBuild = null; - }; - - buildInputs = [ - taglib - zlib - ]; - - ldflags = [ - "-X github.com/navidrome/navidrome/consts.gitSha=${src.rev}" - "-X github.com/navidrome/navidrome/consts.gitTag=v${version}" - ]; - - CGO_CFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-return-local-addr" ]; - - preBuild = '' - make buildjs - ''; - - postFixup = lib.optionalString ffmpegSupport '' - wrapProgram $out/bin/navidrome \ - --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]} - ''; - - passthru = { - tests.navidrome = nixosTests.navidrome; - updateScript = nix-update-script { }; - }; - - meta = { - description = "Navidrome Music Server and Streamer compatible with Subsonic/Airsonic"; - mainProgram = "navidrome"; - homepage = "https://www.navidrome.org/"; - license = lib.licenses.gpl3Only; - sourceProvenance = with lib.sourceTypes; [ fromSource ]; - maintainers = with lib.maintainers; [ aciceri squalus ]; - # Broken on Darwin: sandbox-exec: pattern serialization length exceeds maximum (NixOS/nix#4119) - broken = stdenv.isDarwin; - }; -} |