Merge remote-tracking branch 'upstream/staging' into master
This commit is contained in:
@@ -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/;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, python, pythonPackages }:
|
||||
{ stdenv, fetchurl, python2Packages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dstat-${version}";
|
||||
@@ -9,12 +9,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6";
|
||||
};
|
||||
|
||||
buildInputs = with pythonPackages; [ python-wifi wrapPython ];
|
||||
buildInputs = with python2Packages; [ python-wifi wrapPython ];
|
||||
|
||||
pythonPath = with pythonPackages; [ python-wifi ];
|
||||
pythonPath = with python2Packages; [ python-wifi ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e 's|/usr/bin/env python|${python}/bin/python|' \
|
||||
sed -i -e 's|/usr/bin/env python|${python2Packages.python.interpreter}|' \
|
||||
-e "s|/usr/share/dstat|$out/share/dstat|" dstat
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user