tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
sgx-psw: 2.15.1 -> 2.16
Vincent Haupert
3 years ago
02e6180c
8655b82d
+2
-23
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
sgx
psw
default.nix
+2
-23
pkgs/os-specific/linux/sgx/psw/default.nix
···
28
hash = "sha256-JriA9UGYFkAPuCtRizk8RMM1YOYGR/eO9ILnx47A40s=";
29
};
30
dcap = rec {
31
-
version = "1.12.1";
32
filename = "prebuilt_dcap_${version}.tar.gz";
33
prebuilt = fetchurl {
34
url = "https://download.01.org/intel-sgx/sgx-dcap/${version}/linux/${filename}";
35
-
hash = "sha256-V/XHva9Sq3P36xSW+Sd0G6Dnk4H0ANO1Ns/u+FI1eGI=";
36
};
37
};
38
in
···
64
];
65
66
postPatch = ''
67
-
# https://github.com/intel/linux-sgx/pull/730
68
-
substituteInPlace buildenv.mk --replace '/bin/cp' 'cp'
69
-
substituteInPlace psw/ae/aesm_service/source/CMakeLists.txt \
70
-
--replace '/usr/bin/getconf' 'getconf'
71
-
72
-
# https://github.com/intel/SGXDataCenterAttestationPrimitives/pull/205
73
-
substituteInPlace ./external/dcap_source/QuoteGeneration/buildenv.mk \
74
-
--replace '/bin/cp' 'cp'
75
-
substituteInPlace external/dcap_source/tools/SGXPlatformRegistration/Makefile \
76
-
--replace '/bin/cp' 'cp'
77
-
substituteInPlace external/dcap_source/tools/SGXPlatformRegistration/buildenv.mk \
78
-
--replace '/bin/cp' 'cp'
79
-
80
patchShebangs \
81
linux/installer/bin/build-installpkg.sh \
82
linux/installer/common/psw/createTarball.sh \
···
166
substituteInPlace $out/lib/systemd/system/remount-dev-exec.service \
167
--replace '/bin/mount' \
168
"${util-linux}/bin/mount"
169
-
170
-
header "Fixing linksgx.sh"
171
-
# https://github.com/intel/linux-sgx/pull/736
172
-
substituteInPlace $out/aesm/linksgx.sh \
173
-
--replace '/usr/bin/getent' \
174
-
'${glibc.bin}/bin/getent' \
175
-
--replace '/usr/sbin/usermod' \
176
-
'${shadow}/bin/usermod'
177
'';
178
179
passthru.tests = {
···
28
hash = "sha256-JriA9UGYFkAPuCtRizk8RMM1YOYGR/eO9ILnx47A40s=";
29
};
30
dcap = rec {
31
+
version = "1.13";
32
filename = "prebuilt_dcap_${version}.tar.gz";
33
prebuilt = fetchurl {
34
url = "https://download.01.org/intel-sgx/sgx-dcap/${version}/linux/${filename}";
35
+
hash = "sha256-0kD6hxN8qZ/7/H99aboQx7Qg7ewmYPEexoU6nqczAik=";
36
};
37
};
38
in
···
64
];
65
66
postPatch = ''
0
0
0
0
0
0
0
0
0
0
0
0
0
67
patchShebangs \
68
linux/installer/bin/build-installpkg.sh \
69
linux/installer/common/psw/createTarball.sh \
···
153
substituteInPlace $out/lib/systemd/system/remount-dev-exec.service \
154
--replace '/bin/mount' \
155
"${util-linux}/bin/mount"
0
0
0
0
0
0
0
0
156
'';
157
158
passthru.tests = {