Paul Zinselmeyer
f007db4867
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m1s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m2s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Successful in 1m4s
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 34s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 8s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 8s
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
description = "SignatureProxy SGX Demo";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }:
|
|
let
|
|
lastModifiedDate = self.lastModifiedDate or self.lastModified or "19700101";
|
|
version = builtins.substring 0 8 lastModifiedDate;
|
|
|
|
nixpkgsFor = system: import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
|
in
|
|
{
|
|
overlay = final: prev: with final; {
|
|
signatureProxy = stdenv.mkDerivation {
|
|
pname = "SignatureProxy";
|
|
inherit version;
|
|
|
|
src = ./src;
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp signatureproxy $out/bin
|
|
cp enclave.signed.so $out/bin
|
|
'';
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
clang
|
|
glibc
|
|
sgx-sdk
|
|
openssl.dev
|
|
pkg-config
|
|
which
|
|
];
|
|
|
|
env = {
|
|
SGX_SDK = pkgs.sgx-sdk;
|
|
SGX_MODE = "SIM";
|
|
};
|
|
};
|
|
};
|
|
|
|
defaultPackage."x86_64-linux" = (nixpkgsFor "x86_64-linux").signatureProxy;
|
|
};
|
|
}
|