navidrome: fix darwin build, version numbering, enable tests

This commit is contained in:
Zane van Iperen
2022-08-05 12:26:45 +10:00
parent ae68099d4d
commit 0889899f04
+6 -3
View File
@@ -41,7 +41,12 @@ buildGoModule {
buildInputs = [ taglib zlib ];
CGO_CFLAGS = [ "-Wno-return-local-addr" ];
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" ];
prePatch = ''
cp -r ${ui}/* ui/build
@@ -52,8 +57,6 @@ buildGoModule {
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
'';
doCheck = false;
passthru = {
inherit ui;
tests.navidrome = nixosTests.navidrome;