navidrome: 0.53.3 -> 0.54.3 (#369995)

This commit is contained in:
Thomas Gerbet 2025-01-04 10:55:24 +01:00 committed by GitHub
commit 02c4f6e5d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 4 deletions

View file

@ -45,6 +45,12 @@ in
description = "Port to run Navidrome on."; description = "Port to run Navidrome on.";
type = port; type = port;
}; };
EnableInsightsCollector = mkOption {
default = false;
description = "Enable anonymous usage data collection, see <https://www.navidrome.org/docs/getting-started/insights/> for details.";
type = bool;
};
}; };
}; };
default = { }; default = { };

View file

@ -18,23 +18,23 @@
buildGo123Module rec { buildGo123Module rec {
pname = "navidrome"; pname = "navidrome";
version = "0.53.3"; version = "0.54.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "navidrome"; owner = "navidrome";
repo = "navidrome"; repo = "navidrome";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-RLmGjkeBHuvVdxXaGvlIFPI+6beAdtSLukVmwe6Hnag="; hash = "sha256-mOJSgX+1id8tZU8KVjWbf2LycrzdudhUV/9pxKa4yHw=";
}; };
vendorHash = "sha256-XjiRMRfsmcw/4RLZXN36BbzbCKu98BgD3cn89e/vra4="; vendorHash = "sha256-LpSmSbReQ3yHFvHhN/LERWQjf72/ELTjk4qhO4lyzW0=";
npmRoot = "ui"; npmRoot = "ui";
npmDeps = fetchNpmDeps { npmDeps = fetchNpmDeps {
inherit src; inherit src;
sourceRoot = "${src.name}/ui"; sourceRoot = "${src.name}/ui";
hash = "sha256-0vHInRly5xirjfV7tcYVNVLaMk4YtJeB7Ky0mrDDDnY="; hash = "sha256-PaE1xcZX9wZRcKeqQCXbdhi4cIBWBL8ZQdww6AOB7sQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -61,10 +61,18 @@ buildGo123Module rec {
CGO_CFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-return-local-addr" ]; CGO_CFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-return-local-addr" ];
postPatch = ''
patchShebangs ui/bin/update-workbox.sh
'';
preBuild = '' preBuild = ''
make buildjs make buildjs
''; '';
tags = [
"netgo"
];
postFixup = lib.optionalString ffmpegSupport '' postFixup = lib.optionalString ffmpegSupport ''
wrapProgram $out/bin/navidrome \ wrapProgram $out/bin/navidrome \
--prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]} --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}