git.iko.soy/typeable/nixpkgs
on master help sign in
grub4dos: init at 0.4.6a
commit3d6070f0a7aef517b934e49a03c071ba2d5bde30 authorNikolay Amiantov <ab@fmap.me> dateMon 19 Oct 2015, 03:23 (11 years ago) parentca58b16
2 files changed+39
pkgs/tools/misc/grub4dos/default.nix+35 pkgs/top-level/all-packages.nix+4
pkgs/tools/misc/grub4dos/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ stdenv, fetchurl, unzip, nasm }:
2+
3+let arch =
4+ if stdenv.isi686 then "i386"
5+ else if stdenv.isx86_64 then "x86_64"
6+ else abort "Unknown architecture";
7+in stdenv.mkDerivation {
8+ name = "grub4dos-0.4.6a";
9+
10+ src = fetchurl {
11+ url = https://github.com/chenall/grub4dos/archive/e855b293432bd4d155e42d48356f9aa1974ec385.zip;
12+ sha256 = "1vihzllsdshd5dyr7i7dp5ragyg77gg8r279pz954p7lkcda4kx7";
13+ };
14+
15+ nativeBuildInputs = [ unzip nasm ];
16+
17+ configureFlags = [ "--host=${arch}-pc-linux-gnu" ];
18+
19+ postInstall = ''
20+ mv $out/lib/grub/${arch}-pc/* $out/lib/grub
21+ rmdir $out/lib/grub/${arch}-pc
22+ chmod +x $out/lib/grub/bootlace.com
23+ '';
24+
25+ dontStrip = true;
26+ dontPatchELF = true;
27+
28+ meta = with stdenv.lib; {
29+ homepage = http://grub4dos.chenall.net/;
30+ description = "GRUB for DOS is the dos extension of GRUB";
31+ maintainers = with maintainers; [ abbradar ];
32+ platforms = platforms.all;
33+ license = licenses.gpl2;
34+ };
35+}
pkgs/top-level/all-packages.nix+4
@@ -1734,6 +1734,10 @@ let
17341734 zfsSupport = false;
17351735 };
17361736
1737+ grub4dos = callPackage ../tools/misc/grub4dos {
1738+ stdenv = stdenv_32bit;
1739+ };
1740+
17371741 sbsigntool = callPackage ../tools/security/sbsigntool { };
17381742
17391743 gsmartcontrol = callPackage ../tools/misc/gsmartcontrol {