02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
27 lines
466 B
Nix
27 lines
466 B
Nix
{ buildPackages, nodejs, stdenv, src, version }:
|
|
|
|
let
|
|
|
|
nodeComposition = import ./node-composition.nix {
|
|
inherit (buildPackages) nodejs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
pkgs = buildPackages;
|
|
};
|
|
|
|
in
|
|
|
|
nodeComposition.package.override {
|
|
|
|
pname = "navidrome";
|
|
inherit version;
|
|
src = "${src}/ui";
|
|
|
|
dontNpmInstall = true;
|
|
|
|
postInstall = ''
|
|
npm run build
|
|
cd $out
|
|
mv lib/node_modules/navidrome-ui/build/* .
|
|
rm -rf lib
|
|
'';
|
|
}
|