mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
navidrome: fix darwin build, version numbering, enable tests
This commit is contained in:
parent
ae68099d4d
commit
0889899f04
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user