From 7bd7fef590aa27610b57f7879f5bab8c067360d6 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Sun, 6 Aug 2006 20:30:41 +0000 Subject: [PATCH] add a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEVadd a wrapper for MAKEDEV svn path=/nixpkgs/trunk/; revision=6058 --- pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh | 12 ++++++++++++ pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh create mode 100644 pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix 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; +}