depot/third_party/lanzaboote.nix

59 lines
1.6 KiB
Nix
Raw Normal View History

2024-03-01 14:23:22 +00:00
{ pkgs ? import ./nixpkgs { } }:
let
flakify = f: src: f // { outPath = src; };
src = pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "lanzaboote";
2024-12-06 21:48:31 +00:00
rev = "2f48272f34174fd2a5ab3df4d8a46919247be879";
hash = "sha256-zpmAzrvK8KdssBSwiIwwRxaUJ77oWORbW0XFvgCFpTE=";
2024-03-01 14:23:22 +00:00
};
flake-parts-src = pkgs.fetchFromGitHub {
owner = "hercules-ci";
repo = "flake-parts";
2024-12-06 21:48:31 +00:00
rev = "506278e768c2a08bec68eb62932193e341f55c90";
hash = "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=";
2024-03-01 14:23:22 +00:00
};
flake-parts-flake = import "${flake-parts-src}/flake.nix";
flake-parts = flake-parts-flake.outputs {
nixpkgs-lib = pkgs;
};
rust-overlay-src = pkgs.fetchFromGitHub {
owner = "oxalica";
repo = "rust-overlay";
2024-12-06 21:48:31 +00:00
rev = "8d1b40f8dfd7539aaa3de56e207e22b3cc451825";
hash = "sha256-Sgax33jGuvVHTjl1P78IwzlhAGyOxtx5Q26inKja8S4=";
2024-03-01 14:23:22 +00:00
};
rust-overlay-flake = import "${rust-overlay-src}/flake.nix";
rust-overlay = rust-overlay-flake.outputs {
self = rust-overlay;
nixpkgs = pkgs;
};
crane-src = pkgs.fetchFromGitHub {
owner = "ipetkov";
repo = "crane";
2024-12-06 21:48:31 +00:00
rev = "a4ca93905455c07cb7e3aca95d4faf7601cba458";
hash = "sha256-+XVYfmVXAiYA0FZT7ijHf555dxCe+AoAT5A6RU+6vSo=";
2024-03-01 14:23:22 +00:00
};
crane = (import "${crane-src}/flake.nix").outputs {
nixpkgs = flakify pkgs ./nixpkgs;
2024-12-06 21:48:31 +00:00
inherit rust-overlay;
2024-03-01 14:23:22 +00:00
};
flakeInputs = {
self = flakeEval;
nixpkgs = ./nixpkgs;
crane = crane;
rust-overlay = rust-overlay;
inherit flake-parts;
pre-commit-hooks-nix = null;
};
flakeEval = flake.outputs flakeInputs;
flake = import "${src}/flake.nix";
in
flakeEval