diff options
author | Michael Eden <themichaeleden@gmail.com> | 2019-03-20 16:38:46 -0400 |
---|---|---|
committer | Michael Eden <themichaeleden@gmail.com> | 2019-03-21 11:09:35 -0400 |
commit | 30dd92fb000cbbaa65778a53a8b015faaf545f43 (patch) | |
tree | c26167c7e67c22359bf4edbe27d10c6d82f79ff9 /pkgs/development/libraries/volume-key | |
parent | 5b00f65402ff18295a3bbab5bd6f98699a7a5e9f (diff) | |
download | nixpkgs-30dd92fb000cbbaa65778a53a8b015faaf545f43.tar nixpkgs-30dd92fb000cbbaa65778a53a8b015faaf545f43.tar.gz nixpkgs-30dd92fb000cbbaa65778a53a8b015faaf545f43.tar.bz2 nixpkgs-30dd92fb000cbbaa65778a53a8b015faaf545f43.tar.lz nixpkgs-30dd92fb000cbbaa65778a53a8b015faaf545f43.tar.xz nixpkgs-30dd92fb000cbbaa65778a53a8b015faaf545f43.tar.zst nixpkgs-30dd92fb000cbbaa65778a53a8b015faaf545f43.zip |
volume_key: cross compilation fixes
Diffstat (limited to 'pkgs/development/libraries/volume-key')
-rw-r--r-- | pkgs/development/libraries/volume-key/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/development/libraries/volume-key/default.nix b/pkgs/development/libraries/volume-key/default.nix index b91c091c6c6..32f816023e5 100644 --- a/pkgs/development/libraries/volume-key/default.nix +++ b/pkgs/development/libraries/volume-key/default.nix @@ -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}" |