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
-
{ lib, stdenv, fetchurl, fetchgit, fetchpatch, autogen, flex, bison, python2, autoconf, automake
2
-
, gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
, for_HP_laptop ? false
4
}:
5
···
32
pname = "trustedGRUB2";
33
inherit version;
34
35
-
src = if for_HP_laptop
36
-
then fetchgit {
37
-
url = "https://github.com/Sirrix-AG/TrustedGRUB2";
38
-
rev = "ab483d389bda3115ca0ae4202fd71f2e4a31ad41";
39
-
sha256 = "1760d9hsnqkdvlag9nn8f613mqhnsxmidgvdkpmb37b0yi7p6lhz";
40
-
}
41
-
else fetchgit {
42
-
url = "https://github.com/Sirrix-AG/TrustedGRUB2";
43
-
rev = "1ff54a5fbe02ea01df5a7de59b1e0201e08d4f76";
44
-
sha256 = "0yrfwx67gpg9gij5raq0cfbx3jj769lkg3diqgb7i9n86hgcdh4k";
45
-
};
46
47
nativeBuildInputs = [ autogen flex bison python2 autoconf automake ];
48
buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 ]
···
91
];
92
93
# save target that grub is compiled for
94
-
grubTarget = if inPCSystems
95
-
then "${pcSystems.${stdenv.hostPlatform.system}.target}-pc"
96
-
else "";
0
97
98
doCheck = false;
99
# On -j16 races with early header creation:
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchurl
4
+
, fetchFromGitHub
5
+
, fetchpatch
6
+
, autogen
7
+
, flex
8
+
, bison
9
+
, python2
10
+
, autoconf
11
+
, automake
12
+
, gettext
13
+
, ncurses
14
+
, libusb-compat-0_1
15
+
, freetype
16
+
, qemu
17
+
, lvm2
18
, for_HP_laptop ? false
19
}:
20
···
47
pname = "trustedGRUB2";
48
inherit version;
49
50
+
src = fetchFromGitHub {
51
+
owner = "Sirrix-AG";
52
+
repo = "TrustedGRUB2";
53
+
rev = version;
54
+
sha256 =
55
+
if for_HP_laptop
56
+
then "sha256-H1JzT/RgnbHqnW2/FmvXFuI6gnHI2vQU3W1iq2FqwJw="
57
+
else "sha256-k8DGHjTIpnjWw7GNN2kyR8rRl2MAq1xkfOndd0znLns=";
58
+
};
0
0
59
60
nativeBuildInputs = [ autogen flex bison python2 autoconf automake ];
61
buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 ]
···
104
];
105
106
# save target that grub is compiled for
107
+
grubTarget =
108
+
if inPCSystems
109
+
then "${pcSystems.${stdenv.hostPlatform.system}.target}-pc"
110
+
else "";
111
112
doCheck = false;
113
# On -j16 races with early header creation: