yarn2nix: add nix-prefetch-git to PATH

This commit is contained in:
Yureka 2021-10-31 09:44:50 +01:00 committed by Yuka
parent 7bec541117
commit 1d525f51fb

View file

@ -405,6 +405,8 @@ in rec {
yarnFlags = defaultYarnFlags ++ ["--production=true"];
nativeBuildInputs = [ pkgs.makeWrapper ];
buildPhase = ''
source ${./nix/expectShFunctions.sh}
@ -417,6 +419,10 @@ in rec {
expectFileOrDirAbsent ./node_modules/.bin/eslint
expectFileOrDirAbsent ./node_modules/eslint/package.json
'';
postInstall = ''
wrapProgram $out/bin/yarn2nix --prefix PATH : "${pkgs.nix-prefetch-git}/bin"
'';
};
fixup_yarn_lock = runCommandLocal "fixup_yarn_lock"