mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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
This commit is contained in:
parent
5d58712fe0
commit
7bd7fef590
12
pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh
Normal file
12
pkgs/os-specific/linux/MAKEDEV-wrapper/builder.sh
Normal file
@ -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
|
9
pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix
Normal file
9
pkgs/os-specific/linux/MAKEDEV-wrapper/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{stdenv, MAKEDEV}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = MAKEDEV.name;
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
inherit MAKEDEV;
|
||||
}
|
Loading…
Reference in New Issue
Block a user