forked from mirrors/nixpkgs
volume_key: cross compilation fixes
This commit is contained in:
parent
5b00f65402
commit
30dd92fb00
|
@ -1,5 +1,8 @@
|
||||||
{ stdenv, fetchgit, autoreconfHook, pkgconfig, gettext, python3
|
{ stdenv, fetchgit, autoreconfHook, pkgconfig, gettext, python3
|
||||||
, ncurses, swig, glib, utillinux, cryptsetup, nss, gpgme
|
, ncurses, swig, glib, utillinux, cryptsetup, nss, gpgme
|
||||||
|
, autoconf, automake, libtool
|
||||||
|
, writeShellScriptBin
|
||||||
|
, buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -15,9 +18,18 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
outputs = [ "out" "man" "dev" "py" ];
|
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 = [
|
makeFlags = [
|
||||||
"pyexecdir=$(py)/${python3.sitePackages}"
|
"pyexecdir=$(py)/${python3.sitePackages}"
|
||||||
|
|
Loading…
Reference in a new issue