nodePackages_10_x.pnpm: init at 2.9.0
This commit is contained in:
		
							parent
							
								
									96258fc193
								
							
						
					
					
						commit
						355708db80
					
				@ -5,4 +5,20 @@ let
 | 
			
		||||
    inherit pkgs system nodejs;
 | 
			
		||||
  };
 | 
			
		||||
in
 | 
			
		||||
nodePackages
 | 
			
		||||
nodePackages // {
 | 
			
		||||
 | 
			
		||||
  pnpm = nodePackages.pnpm.override {
 | 
			
		||||
    nativeBuildInputs = [ pkgs.makeWrapper ];
 | 
			
		||||
    postInstall = let
 | 
			
		||||
      pnpmLibPath = stdenv.lib.makeBinPath [
 | 
			
		||||
        nodejs.passthru.python
 | 
			
		||||
        nodejs
 | 
			
		||||
      ];
 | 
			
		||||
    in ''
 | 
			
		||||
      for prog in $out/bin/*; do
 | 
			
		||||
        wrapProgram "$prog" --prefix PATH : ${pnpmLibPath}
 | 
			
		||||
      done
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -2,4 +2,5 @@
 | 
			
		||||
  "bower"
 | 
			
		||||
, "coffee-script"
 | 
			
		||||
, "grunt-cli"
 | 
			
		||||
, "pnpm"
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
@ -210,4 +210,21 @@ in
 | 
			
		||||
    production = true;
 | 
			
		||||
    bypassCache = true;
 | 
			
		||||
  };
 | 
			
		||||
  pnpm = nodeEnv.buildNodePackage {
 | 
			
		||||
    name = "pnpm";
 | 
			
		||||
    packageName = "pnpm";
 | 
			
		||||
    version = "2.9.0";
 | 
			
		||||
    src = fetchurl {
 | 
			
		||||
      url = "https://registry.npmjs.org/pnpm/-/pnpm-2.9.0.tgz";
 | 
			
		||||
      sha1 = "1c2f5ade46b87cc3b1f3b7c66eeb7b0f4df4d968";
 | 
			
		||||
    };
 | 
			
		||||
    buildInputs = globalBuildInputs;
 | 
			
		||||
    meta = {
 | 
			
		||||
      description = "Fast, disk space efficient package manager";
 | 
			
		||||
      homepage = https://pnpm.js.org/;
 | 
			
		||||
      license = "MIT";
 | 
			
		||||
    };
 | 
			
		||||
    production = true;
 | 
			
		||||
    bypassCache = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user