mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
7bd7fef590
svn path=/nixpkgs/trunk/; revision=6058
13 lines
278 B
Bash
13 lines
278 B
Bash
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
|