mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
10a9cce769
gpgme comes with autoconf macros, so needs to be in nativeBuildInputs. I've removed some redundant inputs as well: we don't need autoconf, automake and libtool since we have autoreconfHook, and we don't need gpgme in buildInputs since with --with-gpgme-prefix configure flag does the same thing. Set strictDeps to catch regressions.
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, gettext, python3
|
|
, ncurses, swig, glib, util-linux, cryptsetup, nss, gpgme
|
|
, autoconf, automake, libtool
|
|
, buildPackages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "volume_key";
|
|
version = "0.3.11";
|
|
|
|
src = fetchgit {
|
|
url = "https://pagure.io/volume_key.git";
|
|
rev = "volume_key-${version}";
|
|
sha256 = "1sqdbcih1c39bjiv4mm1m7acc3lfh2i2hf2r9i7rk8adfzq8awma";
|
|
};
|
|
|
|
outputs = [ "out" "man" "dev" "py" ];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ autoreconfHook gettext gpgme pkg-config swig ];
|
|
|
|
buildInputs = [ glib cryptsetup nss util-linux ncurses ];
|
|
|
|
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`
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|