2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, gettext, python3
|
2020-11-24 20:58:05 +00:00
|
|
|
, ncurses, swig, glib, util-linux, cryptsetup, nss, gpgme
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoconf, automake, libtool
|
|
|
|
, buildPackages
|
|
|
|
}:
|
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "volume_key";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "0.3.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://pagure.io/volume_key.git";
|
|
|
|
rev = "volume_key-${version}";
|
|
|
|
sha256 = "1sqdbcih1c39bjiv4mm1m7acc3lfh2i2hf2r9i7rk8adfzq8awma";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" "dev" "py" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook gettext gpgme pkg-config swig ];
|
|
|
|
|
|
|
|
buildInputs = [ glib cryptsetup nss util-linux ncurses ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-gpgme-prefix=${gpgme.dev}"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export PYTHON="${buildPackages.python3}/bin/python"
|
|
|
|
export PYTHON3_CONFIG="${python3}/bin/python3-config"
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"pyexecdir=$(py)/${python3.sitePackages}"
|
|
|
|
"pythondir=$(py)/${python3.sitePackages}"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # fails 1 out of 1 tests, needs `certutil`
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library for manipulating storage volume encryption keys and storing them separately from volumes to handle forgotten passphrases, and the associated command-line tool";
|
|
|
|
homepage = "https://pagure.io/volume_key/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|