grub-install needs a wrapper to make it pure-ish

svn path=/nixpkgs/trunk/; revision=3571
This commit is contained in:
Armijn Hemel 2005-08-13 19:00:37 +00:00
parent f0f8123a7f
commit 63cc326828
3 changed files with 22 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,12 @@
. $stdenv/setup
. $makeWrapper
makeWrapper "$grub/sbin/grub-install" "$out/sbin/grub-install" \
--suffix-each PATH ':' "$diffutils/bin $gnused/bin $gnugrep/bin"
#echo "#! $SHELL -e" > $out/sbin/grub-install
#echo PATH=$diffutils/bin:$gnused/bin:$gnugrep/bin:$PATH >> $out/sbin/grub-install
#echo "exec \"$grub/sbin/grub-install\" \"\$@\"" >> $out/sbin/grub-install
#
#chmod +x $out/sbin/grub-install

View file

@ -0,0 +1,10 @@
{stdenv, grub, diffutils, gnused, gnugrep}:
stdenv.mkDerivation {
name = grub.name;
builder = ./builder.sh;
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
inherit grub diffutils gnused gnugrep;
}