diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2006-08-06 20:30:41 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2006-08-06 20:30:41 +0000 |
commit | 7bd7fef590aa27610b57f7879f5bab8c067360d6 (patch) | |
tree | 473f56d2b0c1021587d8234f3d49bb00e78694a9 /pkgs/os-specific | |
parent | 5d58712fe0809aec4ef06e575b9996b8ffbdf8ae (diff) |
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
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh | 12 | ||||
-rw-r--r-- | pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix | 9 |
2 files changed, 21 insertions, 0 deletions
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 0000000000000..030ef1cbc708e --- /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 0000000000000..a4b07ed3b490d --- /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; +} |