22 stdenv.mkDerivation rec {
26 src = fetchFromGitHub {
30 sha256 = "sha256-m1UhyjD5ydSgCTBu6sECLlxFx0rnQxFnBA7frbdUqU8=";
34 # sss: use BN_set_word(x, 0) instead of BN_zero(), fixes build issue with different versions of openssl
36 url = "https://github.com/latchset/clevis/commit/ee1dfedb9baca107e66a0fec76693c9d479dcfd9.patch";
37 sha256 = "sha256-GeklrWWlAMALDLdnn6+0Bi0l+bXrIbYkgIyI94WEybM=";
42 for f in $(find src/ -type f); do
43 grep -q "/bin/cat" "$f" && substituteInPlace "$f" \
44 --replace '/bin/cat' '${coreutils}/bin/cat' || true
49 # We wrap the main clevis binary entrypoint but not the sub-binaries.
50 wrapProgram $out/bin/clevis \
51 --prefix PATH ':' "${lib.makeBinPath [tpm2-tools jose cryptsetup libpwquality luksmeta gnugrep gnused coreutils]}:${placeholder "out"}/bin"
54 nativeBuildInputs = [ meson ninja pkg-config asciidoc makeWrapper ];
55 buildInputs = [ jansson jose cryptsetup curl libpwquality luksmeta tpm2-tools ];
57 outputs = [ "out" "man" ];
60 description = "Automated Encryption Framework";
61 homepage = "https://github.com/latchset/clevis";
62 maintainers = with lib.maintainers; [ ];
63 license = lib.licenses.gpl3Plus;