blob: badc531c25c120210de1b966f6284dfe1a30f232 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
fetchFromGitHub,
rustPlatform,
lib,
versionCheckHook,
pkg-config,
zstd,
OVMF,
qemu,
qemu-utils,
openssl,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "goldboot";
version = "0.0.10";
src = fetchFromGitHub {
owner = "fossable";
repo = "goldboot";
rev = "goldboot-v${finalAttrs.version}";
hash = "sha256-O9yhyJZpjQxC0HP43RsOgPMOKp6d23SNhMLiGtmwXzs=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-NF0Fj+r6qWcM4VEIm1fzveZuz6MIaG32Z+zBfSMC/t4=";
buildAndTestSubdir = "goldboot";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
zstd
OVMF
qemu
qemu-utils
openssl
];
# Tests require networking, so skip them for now
doCheck = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
mainProgram = "goldboot";
description = "Immutable infrastructure for the desktop";
homepage = "https://github.com/fossable/goldboot";
changelog = "https://github.com/fossable/goldboot/releases/tag/goldboot-v${finalAttrs.version}";
license = lib.licenses.agpl3Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ cilki ];
};
})
|