yarn2nix: add nix-prefetch-git to PATH
This commit is contained in:
parent
7bec541117
commit
1d525f51fb
1 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue