diff --git a/pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh b/pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh new file mode 100644 index 000000000000..030ef1cbc708 --- /dev/null +++ b/pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh @@ -0,0 +1,12 @@ +source $stdenv/setup + +ensureDir "$(dirname $out/dev/MAKEDEV)" +ensureDir "$(dirname $out/sbin/MAKEDEV)" + +cat > $out/dev/MAKEDEV << END +#! $SHELL -e +exec $MAKEDEV/dev/MAKEDEV -c $MAKEDEV/etc/makedev.d/ "\$@" +END + +chmod +x $out/dev/MAKEDEV +ln -s $out/dev/MAKEDEV $out/sbin/MAKEDEV diff --git a/pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix b/pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix new file mode 100644 index 000000000000..a4b07ed3b490 --- /dev/null +++ b/pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix @@ -0,0 +1,9 @@ +{stdenv, MAKEDEV}: + +stdenv.mkDerivation { + name = MAKEDEV.name; + + builder = ./builder.sh; + + inherit MAKEDEV; +}