tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
trustedGrub: switch to fetchFromGitHub
Felix Buehler
3 years ago
c0e4a932
6128e151
+30
-16
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
grub
trusted.nix
+30
-16
pkgs/tools/misc/grub/trusted.nix
···
1
1
-
{ lib, stdenv, fetchurl, fetchgit, fetchpatch, autogen, flex, bison, python2, autoconf, automake
2
2
-
, gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchurl
4
4
+
, fetchFromGitHub
5
5
+
, fetchpatch
6
6
+
, autogen
7
7
+
, flex
8
8
+
, bison
9
9
+
, python2
10
10
+
, autoconf
11
11
+
, automake
12
12
+
, gettext
13
13
+
, ncurses
14
14
+
, libusb-compat-0_1
15
15
+
, freetype
16
16
+
, qemu
17
17
+
, lvm2
3
18
, for_HP_laptop ? false
4
19
}:
5
20
···
32
47
pname = "trustedGRUB2";
33
48
inherit version;
34
49
35
35
-
src = if for_HP_laptop
36
36
-
then fetchgit {
37
37
-
url = "https://github.com/Sirrix-AG/TrustedGRUB2";
38
38
-
rev = "ab483d389bda3115ca0ae4202fd71f2e4a31ad41";
39
39
-
sha256 = "1760d9hsnqkdvlag9nn8f613mqhnsxmidgvdkpmb37b0yi7p6lhz";
40
40
-
}
41
41
-
else fetchgit {
42
42
-
url = "https://github.com/Sirrix-AG/TrustedGRUB2";
43
43
-
rev = "1ff54a5fbe02ea01df5a7de59b1e0201e08d4f76";
44
44
-
sha256 = "0yrfwx67gpg9gij5raq0cfbx3jj769lkg3diqgb7i9n86hgcdh4k";
45
45
-
};
50
50
+
src = fetchFromGitHub {
51
51
+
owner = "Sirrix-AG";
52
52
+
repo = "TrustedGRUB2";
53
53
+
rev = version;
54
54
+
sha256 =
55
55
+
if for_HP_laptop
56
56
+
then "sha256-H1JzT/RgnbHqnW2/FmvXFuI6gnHI2vQU3W1iq2FqwJw="
57
57
+
else "sha256-k8DGHjTIpnjWw7GNN2kyR8rRl2MAq1xkfOndd0znLns=";
58
58
+
};
46
59
47
60
nativeBuildInputs = [ autogen flex bison python2 autoconf automake ];
48
61
buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 ]
···
91
104
];
92
105
93
106
# save target that grub is compiled for
94
94
-
grubTarget = if inPCSystems
95
95
-
then "${pcSystems.${stdenv.hostPlatform.system}.target}-pc"
96
96
-
else "";
107
107
+
grubTarget =
108
108
+
if inPCSystems
109
109
+
then "${pcSystems.${stdenv.hostPlatform.system}.target}-pc"
110
110
+
else "";
97
111
98
112
doCheck = false;
99
113
# On -j16 races with early header creation: