diff --git a/pkgs/tools/misc/grub-wrapper/.builder.sh.swp b/pkgs/tools/misc/grub-wrapper/.builder.sh.swp new file mode 100644 index 000000000000..e7b2b7763376 Binary files /dev/null and b/pkgs/tools/misc/grub-wrapper/.builder.sh.swp differ diff --git a/pkgs/tools/misc/grub-wrapper/builder.sh b/pkgs/tools/misc/grub-wrapper/builder.sh new file mode 100644 index 000000000000..872c46f85279 --- /dev/null +++ b/pkgs/tools/misc/grub-wrapper/builder.sh @@ -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 + diff --git a/pkgs/tools/misc/grub-wrapper/default.nix b/pkgs/tools/misc/grub-wrapper/default.nix new file mode 100644 index 000000000000..4b1c9102fc4d --- /dev/null +++ b/pkgs/tools/misc/grub-wrapper/default.nix @@ -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; +}