1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00

cryptsetup: use python2

This commit is contained in:
Frederik Rietdijk 2016-11-18 09:45:41 +01:00
parent 4383e20bb1
commit 6a8c708d6d

View file

@ -1,8 +1,8 @@
{ stdenv, fetchurl, devicemapper, openssl, libuuid, pkgconfig, popt
, enablePython ? false, python ? null
, enablePython ? false, python2 ? null
}:
assert enablePython -> python != null;
assert enablePython -> python2 != null;
stdenv.mkDerivation rec {
name = "cryptsetup-1.7.0";
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional enablePython "--enable-python";
buildInputs = [ devicemapper openssl libuuid pkgconfig popt ]
++ stdenv.lib.optional enablePython python;
++ stdenv.lib.optional enablePython python2;
meta = {
homepage = https://gitlab.com/cryptsetup/cryptsetup/;