Merge pull request #58054 from illegalprime/volume_key-cross

volume_key: cross compilation fixes
This commit is contained in:
Matthew Bauer 2019-06-01 17:37:11 -04:00 committed by GitHub
commit 6158c508cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,8 @@
{ stdenv, fetchgit, autoreconfHook, pkgconfig, gettext, python3
, ncurses, swig, glib, utillinux, cryptsetup, nss, gpgme
, autoconf, automake, libtool
, writeShellScriptBin
, buildPackages
}:
let
@ -15,9 +18,18 @@ in stdenv.mkDerivation rec {
outputs = [ "out" "man" "dev" "py" ];
nativeBuildInputs = [ autoreconfHook pkgconfig gettext python3 ncurses swig ];
nativeBuildInputs = [ autoconf automake libtool pkgconfig gettext swig ];
buildInputs = [ glib cryptsetup nss utillinux gpgme ];
buildInputs = [ autoreconfHook glib cryptsetup nss utillinux gpgme 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}"