diff options
author | Mateusz Kowalczyk <mk440@bath.ac.uk> | 2014-10-23 11:47:05 +0100 |
---|---|---|
committer | Mateusz Kowalczyk <mk440@bath.ac.uk> | 2014-10-23 11:47:05 +0100 |
commit | adb034f299580c94f5ab26c4c3bb751470379c2b (patch) | |
tree | 82cf9298c210a750c0bc8be4861abe9176abf473 | |
parent | d5385034be2b94ce71f36cdcbd9a7dcde964a671 (diff) | |
parent | 596c9f54dc1e9bd5273e962ff6799efb5e1183fc (diff) | |
download | nixlib-adb034f299580c94f5ab26c4c3bb751470379c2b.tar nixlib-adb034f299580c94f5ab26c4c3bb751470379c2b.tar.gz nixlib-adb034f299580c94f5ab26c4c3bb751470379c2b.tar.bz2 nixlib-adb034f299580c94f5ab26c4c3bb751470379c2b.tar.lz nixlib-adb034f299580c94f5ab26c4c3bb751470379c2b.tar.xz nixlib-adb034f299580c94f5ab26c4c3bb751470379c2b.tar.zst nixlib-adb034f299580c94f5ab26c4c3bb751470379c2b.zip |
Merge pull request #4522 from ts468/trustedGrub
Add package: trustedGrub
-rw-r--r-- | pkgs/tools/misc/grub/trusted.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/grub/trusted.nix b/pkgs/tools/misc/grub/trusted.nix new file mode 100644 index 000000000000..9f897d7e93a2 --- /dev/null +++ b/pkgs/tools/misc/grub/trusted.nix @@ -0,0 +1,26 @@ +{stdenv, fetchgit, autoconf, automake, buggyBiosCDSupport ? true}: + +stdenv.mkDerivation { + name = "trustedGRUB-1.1.5"; + + src = fetchgit { + url = "https://github.com/ts468/TrustedGRUB"; + rev = "954941c17e14c8f7b18e6cd3043ef5f946866f1c"; + sha256 = "30c21765dc44f02275e66220d6724ec9cd45496226ca28c6db59a9147aa22685"; + }; + + # Autoconf/automake required for the splashimage patch. + buildInputs = [autoconf automake]; + + preConfigure = '' + autoreconf + ''; + + meta = { + homepage = "http://sourceforge.net/projects/trustedgrub/"; + repositories.git = https://github.com/ts468/TrustedGRUB; + description = "Legacy GRUB bootloader extended with TCG support"; + platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ tstrobel ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d2d12e99eacf..d9e0f5817b34 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1312,6 +1312,10 @@ let buggyBiosCDSupport = config.grub.buggyBiosCDSupport or true; }; + trustedGrub = callPackage_i686 ../tools/misc/grub/trusted.nix { + buggyBiosCDSupport = config.grub.buggyBiosCDSupport or true; + }; + grub2 = callPackage ../tools/misc/grub/2.0x.nix { }; grub2_efi = grub2.override { efiSupport = true; }; |