2018-07-18 02:00:42 +01:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, pkgconfig, gettext, python3
|
|
|
|
, ncurses, swig, glib, utillinux, cryptsetup, nss, gpgme
|
2018-02-25 13:51:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2018-07-18 02:00:42 +01:00
|
|
|
version = "0.3.11";
|
2018-02-25 13:51:00 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "volume_key-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://pagure.io/volume_key.git;
|
2018-07-18 02:00:42 +01:00
|
|
|
rev = "volume_key-${version}";
|
|
|
|
sha256 = "1sqdbcih1c39bjiv4mm1m7acc3lfh2i2hf2r9i7rk8adfzq8awma";
|
2018-02-25 13:51:00 +00:00
|
|
|
};
|
|
|
|
|
2018-06-21 10:13:59 +01:00
|
|
|
outputs = [ "out" "man" "dev" "py" ];
|
2018-02-25 13:51:00 +00:00
|
|
|
|
2018-07-18 02:00:42 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig gettext python3 ncurses swig ];
|
2018-02-25 13:51:00 +00:00
|
|
|
|
|
|
|
buildInputs = [ glib cryptsetup nss utillinux gpgme ];
|
|
|
|
|
2018-06-21 10:13:59 +01:00
|
|
|
makeFlags = [
|
2018-07-18 02:00:42 +01:00
|
|
|
"pyexecdir=$(py)/${python3.sitePackages}"
|
|
|
|
"pythondir=$(py)/${python3.sitePackages}"
|
2018-06-21 10:13:59 +01:00
|
|
|
];
|
|
|
|
|
2018-02-25 13:51:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|