From 37f35dc7790e7ffada83e91e98cbf8c4bdd9ed73 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sun, 9 Feb 2020 18:35:52 +0100 Subject: [PATCH] clevis: init at 12 --- pkgs/tools/security/clevis/default.nix | 27 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/security/clevis/default.nix diff --git a/pkgs/tools/security/clevis/default.nix b/pkgs/tools/security/clevis/default.nix new file mode 100644 index 000000000000..4acec7c8a5ba --- /dev/null +++ b/pkgs/tools/security/clevis/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkgconfig, asciidoc +, jansson, jose, cryptsetup, curl, libpwquality, luksmeta +}: + +stdenv.mkDerivation rec { + pname = "clevis"; + version = "12"; + + src = fetchFromGitHub { + owner = "latchset"; + repo = pname; + rev = "v${version}"; + sha256 = "1dbyl3c21h841w9lrrq6gd5y6dhamr0z5ixd87jz86cn02lznp5m"; + }; + + nativeBuildInputs = [ meson ninja pkgconfig asciidoc ]; + buildInputs = [ jansson jose cryptsetup curl libpwquality luksmeta ]; + + outputs = [ "out" "man" ]; + + meta = { + description = "Automated Encryption Framework"; + homepage = "https://github.com/latchset/clevis"; + maintainers = with lib.maintainers; [ fpletz ]; + license = lib.licenses.gpl3Plus; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6c06c4901f30..4ecd71dde87b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1431,6 +1431,10 @@ in clasp = callPackage ../tools/misc/clasp { }; + clevis = callPackage ../tools/security/clevis { + asciidoc = asciidoc-full; + }; + cli53 = callPackage ../tools/admin/cli53 { }; cli-visualizer = callPackage ../applications/misc/cli-visualizer { };