nix: update uplosi to support Azure TDX

This commit is contained in:
Malte Poll 2024-01-16 11:07:15 +01:00
parent 336ba6bc34
commit 52dec77508
2 changed files with 76 additions and 9 deletions

View File

@ -18,6 +18,40 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1704008649,
"narHash": "sha256-rGPSWjXTXTurQN9beuHdyJhB8O761w1Zc5BqSSmHvoM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d44d59d2b5bd694cd9d996fd8c51d03e3e9ba7f7",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgsUnstable": { "nixpkgsUnstable": {
"locked": { "locked": {
"lastModified": 1702206697, "lastModified": 1702206697,
@ -37,7 +71,8 @@
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgsUnstable": "nixpkgsUnstable" "nixpkgsUnstable": "nixpkgsUnstable",
"uplosi": "uplosi"
} }
}, },
"systems": { "systems": {
@ -54,6 +89,41 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"uplosi": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1705406532,
"narHash": "sha256-3UmCqN+T8paP/sr17hGzLxl4hozGnX8ObHUGjgFsxvM=",
"owner": "edgelesssys",
"repo": "uplosi",
"rev": "629e2bcff551bf3d972a7c21bfea6d881b9d9bc2",
"type": "github"
},
"original": {
"owner": "edgelesssys",
"repo": "uplosi",
"rev": "629e2bcff551bf3d972a7c21bfea6d881b9d9bc2",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -8,12 +8,16 @@
flake-utils = { flake-utils = {
url = "github:numtide/flake-utils"; url = "github:numtide/flake-utils";
}; };
uplosi = {
url = "github:edgelesssys/uplosi/629e2bcff551bf3d972a7c21bfea6d881b9d9bc2";
};
}; };
outputs = outputs =
{ self { self
, nixpkgsUnstable , nixpkgsUnstable
, flake-utils , flake-utils
, uplosi
}: }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
@ -47,14 +51,7 @@
]); ]);
})); }));
uplosiDev = (pkgsUnstable.uplosi.overrideAttrs (oldAttrs: rec { uplosiDev = uplosi.outputs.packages."${system}".uplosi;
src = pkgsUnstable.fetchFromGitHub {
owner = "edgelesssys";
repo = "uplosi";
rev = "0190e8c548b5811066b7e2d9db5e3167f51c005f";
hash = "sha256-AHj3XTX+vd8QP4hWGPAt2iJnrIGoiH61UgQMK7vlYU0=";
};
}));
openssl-static = pkgsUnstable.openssl.override { static = true; }; openssl-static = pkgsUnstable.openssl.override { static = true; };