Skip to content

Instantly share code, notes, and snippets.

@baloo

baloo/clevis.drv Secret

Last active July 19, 2020 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baloo/5e4574a00d65f494b5603b72762889b0 to your computer and use it in GitHub Desktop.
Save baloo/5e4574a00d65f494b5603b72762889b0 to your computer and use it in GitHub Desktop.
{
"/nix/store/y1sqmjnwdajihgszrhk2mzg2gw5y8yh3-clevis-13-x86_64-unknown-linux-musl.drv": {
"outputs": {
"out": {
"path": "/nix/store/f6px9rbj91p83ls2725ziyqg32nxg3hs-clevis-13-x86_64-unknown-linux-musl"
}
},
"inputSrcs": [
"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh",
"/nix/store/w4qq751jdrlgi8vh64wk41pml4d67zxh-cross-file.conf",
"/nix/store/ylif278ccc1jfwqhkd760sqk4dsihks5-missing-pid_t-definition.patch"
],
"inputDrvs": {
"/nix/store/1xcpqwlklhhy45hqb5zjh4wh14aylid1-ninja-1.10.0.drv": [
"out"
],
"/nix/store/5rmlyqxrqdfvhqzy2qfghhlnr47pq0cz-cryptsetup-minimal.drv": [
"out"
],
"/nix/store/d1wbzizy8ma4n5kszyhwc739iv92s1bw-source.drv": [
"out"
],
"/nix/store/dcyazsaiy56vpgih5qmgdlwcwmfyy2xf-x86_64-unknown-linux-musl-pkg-config-wrapper-0.29.2.drv": [
"out"
],
"/nix/store/l3japs97aw379cai3qr7ks0wxkgh5kdh-jose-10-x86_64-unknown-linux-musl.drv": [
"dev"
],
"/nix/store/pvd99hl8p9b57fmwqji9clrhffms552d-meson-0.54.2.drv": [
"out"
],
"/nix/store/vx4lm02rz98qzqj9r3dzl9jdaxp4xxs6-stdenv-linux.drv": [
"out"
],
"/nix/store/y0jpkd4rdfy43naz5myrchr7xa5c7izj-curl-7.71.0-x86_64-unknown-linux-musl.drv": [
"dev"
],
"/nix/store/ylvnhnd5nrbqn40kyrvvs9mrsq9m2xmr-bash-4.4-p23.drv": [
"out"
]
},
"platform": "x86_64-linux",
"builder": "/nix/store/c4wxsn4jays9j31y5z9f83nr2cp7l4pa-bash-4.4-p23/bin/bash",
"args": [
"-e",
"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"
],
"env": {
"NIX_CFLAGS_LINK": " -static",
"buildInputs": "",
"builder": "/nix/store/c4wxsn4jays9j31y5z9f83nr2cp7l4pa-bash-4.4-p23/bin/bash",
"cmakeFlags": "-DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_HOST_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_PROCESSOR=x86_64",
"configureFlags": "--disable-shared --enable-static --disable-shared --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-musl",
"depsBuildBuild": "",
"depsBuildBuildPropagated": "",
"depsBuildTarget": "",
"depsBuildTargetPropagated": "",
"depsHostHost": "",
"depsHostHostPropagated": "",
"depsTargetTarget": "",
"depsTargetTargetPropagated": "",
"doCheck": "",
"doInstallCheck": "",
"dontDisableStatic": "1",
"mesonFlags": "--cross-file=/nix/store/w4qq751jdrlgi8vh64wk41pml4d67zxh-cross-file.conf -Ddefault_library=static",
"name": "clevis-13-x86_64-unknown-linux-musl",
"nativeBuildInputs": "/nix/store/wc8lzq8lic9wb8g55r5575njfv7g54np-meson-0.54.2 /nix/store/sk470vag7dhmp9zjwh1r2a1996pv24bg-ninja-1.10.0 /nix/store/9qqxsvrpfha2rskcmplx6v11x15s668m-x86_64-unknown-linux-musl-pkg-config-wrapper-0.29.2 ",
"out": "/nix/store/f6px9rbj91p83ls2725ziyqg32nxg3hs-clevis-13-x86_64-unknown-linux-musl",
"outputs": "out",
"patches": "/nix/store/ylif278ccc1jfwqhkd760sqk4dsihks5-missing-pid_t-definition.patch",
"pname": "clevis",
"propagatedBuildInputs": "/nix/store/qjl9vyn58vyfl3q85w8vkbmw797gdmil-cryptsetup-minimal /nix/store/ap523kx63kfjcgcbdwnw38gnfb39ibsx-jose-10-x86_64-unknown-linux-musl-dev /nix/store/qjl9vyn58vyfl3q85w8vkbmw797gdmil-cryptsetup-minimal /nix/store/d0rb3p6mhmgcwfzdc60kznd7k7shbdkf-curl-7.71.0-x86_64-unknown-linux-musl-dev ",
"propagatedNativeBuildInputs": "",
"src": "/nix/store/q9vf1xr1yx8jdaw3sbl6y88l8ch48qr8-source",
"stdenv": "/nix/store/dkm48ga4rx5ihq4zpkb6jkxsw72jy0p5-stdenv-linux",
"strictDeps": "1",
"system": "x86_64-linux",
"version": "13"
}
}
}
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkgconfig, asciidoc
, jansson, jose, cryptsetup, curl, libpwquality, luksmeta
}:
stdenv.mkDerivation rec {
pname = "clevis";
version = "13";
src = fetchFromGitHub {
owner = "latchset";
repo = pname;
rev = "v${version}";
sha256 = "1p522jjksxmdwjjxa32z2ij1g81ygpkmcx998d07g8pb6rfnknjy";
};
nativeBuildInputs = [ meson ninja pkgconfig asciidoc ];
buildInputs = [ jansson jose cryptsetup curl libpwquality luksmeta ];
propagatedBuildInputs = lib.optional stdenv.hostPlatform.isMusl [
cryptsetup
];
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl [
./missing-pid_t-definition.patch
];
outputs = [
"out"
] ++ stdenv.lib.optional (!stdenv.hostPlatform.isMusl) [
"man"
];
meta = {
description = "Automated Encryption Framework";
homepage = "https://github.com/latchset/clevis";
maintainers = with lib.maintainers; [ fpletz ];
license = lib.licenses.gpl3Plus;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment