nixpkgs/pkgs/development/libraries/volume-key/default.nix

49 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, gettext, python3
2020-11-24 15:29:28 +00:00
, ncurses, swig, glib, util-linux, cryptsetup, nss, gpgme
2019-03-20 20:38:46 +00:00
, autoconf, automake, libtool
, buildPackages
2018-02-25 13:51:00 +00:00
}:
let
2018-07-18 02:00:42 +01:00
version = "0.3.11";
2019-08-13 22:52:01 +01:00
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "volume_key";
inherit version;
2018-02-25 13:51:00 +00:00
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
nativeBuildInputs = [ autoconf automake libtool pkg-config gettext swig ];
2018-02-25 13:51:00 +00:00
2020-11-24 15:29:28 +00:00
buildInputs = [ autoreconfHook glib cryptsetup nss util-linux gpgme ncurses ];
2019-03-20 20:38:46 +00:00
configureFlags = [
"--with-gpgme-prefix=${gpgme.dev}"
];
preConfigure = ''
export PYTHON="${buildPackages.python3}/bin/python"
export PYTHON3_CONFIG="${python3}/bin/python3-config"
'';
2018-02-25 13:51:00 +00:00
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-08-07 14:29:15 +01:00
doCheck = false; # fails 1 out of 1 tests, needs `certutil`
meta = with lib; {
2018-02-25 13:51:00 +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/";
2018-02-25 13:51:00 +00:00
license = licenses.gpl2;
maintainers = with maintainers; [];
platforms = platforms.linux;
};
}