nixpkgs/pkgs/os-specific/linux/kernelscripts/builder.sh
Armijn Hemel de51340b0c use new thingies (system/i686-linux.nix -> top-level/all-packages.nix)
svn path=/nixpkgs/trunk/; revision=5862
2006-07-21 13:48:19 +00:00

16 lines
263 B
Bash
Executable file

#! /bin/sh -e
source $stdenv/setup
mkdir $out
mkdir $out/bin
for i in $createModules; do
dst=$out/bin/$(basename $i | cut -c34-)
sed \
-e "s^@coreutils\@^$coreutils^g" \
-e "s^@nix\@^$nix^g" \
< $i > $dst
chmod +x $dst
done