Skip to content

Commit c71a5e9

Browse files
committed
use pkgs.util-linux for NixOS 25.11
1 parent c3011ca commit c71a5e9

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎node-env.nix‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# This file originates from node2nix
22

3-
{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}:
3+
{lib, stdenv, nodejs, python2, libtool, util-linux, runCommand, writeTextFile, writeShellScript}:
44

55
let
6-
# Workaround to cope with utillinux in Nixpkgs 20.09 and util-linux in Nixpkgs master
7-
utillinux = if pkgs ? utillinux then pkgs.utillinux else pkgs.util-linux;
8-
96
python = if nodejs ? python then nodejs.python else python2;
107

118
# Create a tar wrapper that filters all the 'Ignoring unknown extended header keyword' noise
@@ -499,7 +496,7 @@ let
499496
stdenv.mkDerivation ({
500497
name = "${name}${if version == null then "" else "-${version}"}";
501498
buildInputs = [ tarWrapper python nodejs ]
502-
++ lib.optional (stdenv.isLinux) utillinux
499+
++ lib.optional (stdenv.isLinux) util-linux
503500
++ lib.optional (stdenv.isDarwin) libtool
504501
++ buildInputs;
505502

@@ -591,7 +588,7 @@ let
591588
name = "node-dependencies-${name}${if version == null then "" else "-${version}"}";
592589

593590
buildInputs = [ tarWrapper python nodejs ]
594-
++ lib.optional (stdenv.isLinux) utillinux
591+
++ lib.optional (stdenv.isLinux) util-linux
595592
++ lib.optional (stdenv.isDarwin) libtool
596593
++ buildInputs;
597594

@@ -662,7 +659,7 @@ let
662659
stdenv.mkDerivation ({
663660
name = "node-shell-${name}${if version == null then "" else "-${version}"}";
664661

665-
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) utillinux ++ buildInputs;
662+
buildInputs = [ python nodejs ] ++ lib.optional (stdenv.isLinux) util-linux ++ buildInputs;
666663
buildCommand = ''
667664
mkdir -p $out/bin
668665
cat > $out/bin/shell <<EOF

0 commit comments

Comments
 (0)