mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
grub-install needs a wrapper to make it pure-ish
svn path=/nixpkgs/trunk/; revision=3571
This commit is contained in:
parent
f0f8123a7f
commit
63cc326828
BIN
pkgs/tools/misc/grub-wrapper/.builder.sh.swp
Normal file
BIN
pkgs/tools/misc/grub-wrapper/.builder.sh.swp
Normal file
Binary file not shown.
12
pkgs/tools/misc/grub-wrapper/builder.sh
Normal file
12
pkgs/tools/misc/grub-wrapper/builder.sh
Normal 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
|
||||
|
10
pkgs/tools/misc/grub-wrapper/default.nix
Normal file
10
pkgs/tools/misc/grub-wrapper/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user