tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
sgx-psw: 2.23 -> 2.24
Philip Hayes
2 years ago
fcc7d2be
0c918484
+19
-19
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
sgx
psw
default.nix
+19
-19
pkgs/os-specific/linux/sgx/psw/default.nix
···
29
29
# Also include the Data Center Attestation Primitives (DCAP) platform
30
30
# enclaves.
31
31
dcap = rec {
32
32
-
version = "1.20";
32
32
+
version = "1.21";
33
33
filename = "prebuilt_dcap_${version}.tar.gz";
34
34
prebuilt = fetchurl {
35
35
url = "https://download.01.org/intel-sgx/sgx-dcap/${version}/linux/${filename}";
36
36
-
hash = "sha256-nPsI89KSBA3cSNTMWyktZP5dkf+BwL3NZ4MuUf6G98o=";
36
36
+
hash = "sha256-/PPD2MyNxoCwzNljIFcpkFvItXbyvymsJ7+Uf4IyZuk=";
37
37
};
38
38
};
39
39
in
···
158
158
# is helpful to have properly patched versions for non-NixOS distributions.
159
159
echo "Fixing aesmd.service"
160
160
substituteInPlace $out/lib/systemd/system/aesmd.service \
161
161
-
--replace '@aesm_folder@' \
162
162
-
"$out/aesm" \
163
163
-
--replace 'Type=forking' \
164
164
-
'Type=simple' \
165
165
-
--replace "ExecStart=$out/aesm/aesm_service" \
166
166
-
"ExecStart=$out/bin/aesm_service --no-daemon"\
167
167
-
--replace "/bin/mkdir" \
168
168
-
"${coreutils}/bin/mkdir" \
169
169
-
--replace "/bin/chown" \
170
170
-
"${coreutils}/bin/chown" \
171
171
-
--replace "/bin/chmod" \
172
172
-
"${coreutils}/bin/chmod" \
173
173
-
--replace "/bin/kill" \
174
174
-
"${coreutils}/bin/kill"
161
161
+
--replace-fail '@aesm_folder@' \
162
162
+
"$out/aesm" \
163
163
+
--replace-fail 'Type=forking' \
164
164
+
'Type=simple' \
165
165
+
--replace-fail "ExecStart=$out/aesm/aesm_service" \
166
166
+
"ExecStart=$out/bin/aesm_service --no-daemon"\
167
167
+
--replace-fail "/bin/mkdir" \
168
168
+
"${coreutils}/bin/mkdir" \
169
169
+
--replace-fail "/bin/chown" \
170
170
+
"${coreutils}/bin/chown" \
171
171
+
--replace-fail "/bin/chmod" \
172
172
+
"${coreutils}/bin/chmod" \
173
173
+
--replace-fail "/bin/kill" \
174
174
+
"${coreutils}/bin/kill"
175
175
'';
176
176
177
177
passthru.tests = {
178
178
service = nixosTests.aesmd;
179
179
};
180
180
181
181
-
meta = with lib; {
181
181
+
meta = {
182
182
description = "Intel SGX Architectural Enclave Service Manager";
183
183
homepage = "https://github.com/intel/linux-sgx";
184
184
-
maintainers = with maintainers; [ phlip9 veehaitch citadelcore ];
184
184
+
maintainers = with lib.maintainers; [ phlip9 veehaitch citadelcore ];
185
185
platforms = [ "x86_64-linux" ];
186
186
-
license = with licenses; [ bsd3 ];
186
186
+
license = [ lib.licenses.bsd3 ];
187
187
};
188
188
}