mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
node-env: fix for utillinux deprecation
This commit is contained in:
parent
1299718cc9
commit
f9fb59ff21
@ -3,9 +3,6 @@
|
||||
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}:
|
||||
|
||||
let
|
||||
# Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
|
||||
utillinux = if pkgs ? utillinux then pkgs.utillinux else pkgs.util-linux;
|
||||
|
||||
python = if nodejs ? python then nodejs.python else python2;
|
||||
|
||||
# Create a tar wrapper that filters all the 'Ignoring unknown extended header keyword' noise
|
||||
@ -499,7 +496,7 @@ let
|
||||
stdenv.mkDerivation ({
|
||||
name = "${name}${if version == null then "" else "-${version}"}";
|
||||
buildInputs = [ tarWrapper python nodejs ]
|
||||
++ lib.optional (stdenv.hostPlatform.isLinux) utillinux
|
||||
++ lib.optional (stdenv.hostPlatform.isLinux) pkgs.util-linux
|
||||
++ lib.optional (stdenv.hostPlatform.isDarwin) libtool
|
||||
++ buildInputs;
|
||||
|
||||
@ -591,7 +588,7 @@ let
|
||||
name = "node-dependencies-${name}${if version == null then "" else "-${version}"}";
|
||||
|
||||
buildInputs = [ tarWrapper python nodejs ]
|
||||
++ lib.optional (stdenv.hostPlatform.isLinux) utillinux
|
||||
++ lib.optional (stdenv.hostPlatform.isLinux) pkgs.util-linux
|
||||
++ lib.optional (stdenv.hostPlatform.isDarwin) libtool
|
||||
++ buildInputs;
|
||||
|
||||
@ -662,7 +659,7 @@ let
|
||||
stdenv.mkDerivation ({
|
||||
name = "node-shell-${name}${if version == null then "" else "-${version}"}";
|
||||
|
||||
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.hostPlatform.isLinux) utillinux ++ buildInputs;
|
||||
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.hostPlatform.isLinux) pkgs.util-linux ++ buildInputs;
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
cat > $out/bin/shell <<EOF
|
||||
|
Loading…
Reference in New Issue
Block a user