Merge pull request #132658 from Artturin/backport-132373-to-release-21.05
[Backport release-21.05] samba4: add wrapPythonPrograms
This commit is contained in:
commit
71102fbdab
@ -1,6 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, python
|
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, bison
|
, bison
|
||||||
, flex
|
, flex
|
||||||
@ -62,6 +61,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
python3Packages.python
|
||||||
pkg-config
|
pkg-config
|
||||||
bison
|
bison
|
||||||
flex
|
flex
|
||||||
@ -78,7 +78,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python
|
python3Packages.python
|
||||||
|
python3Packages.wrapPython
|
||||||
readline
|
readline
|
||||||
popt
|
popt
|
||||||
dbus
|
dbus
|
||||||
@ -128,6 +129,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ optional (!enableAcl) "--without-acl-support"
|
++ optional (!enableAcl) "--without-acl-support"
|
||||||
++ optional (!enablePam) "--without-pam";
|
++ optional (!enablePam) "--without-pam";
|
||||||
|
|
||||||
|
pythonPath = [ python3Packages.dnspython tdb ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export MAKEFLAGS="-j $NIX_BUILD_CORES"
|
export MAKEFLAGS="-j $NIX_BUILD_CORES"
|
||||||
'';
|
'';
|
||||||
@ -146,6 +149,9 @@ stdenv.mkDerivation rec {
|
|||||||
patchelf --shrink-rpath "\$BIN";
|
patchelf --shrink-rpath "\$BIN";
|
||||||
EOF
|
EOF
|
||||||
find $out -type f -name \*.so -exec $SHELL -c "$SCRIPT" \;
|
find $out -type f -name \*.so -exec $SHELL -c "$SCRIPT" \;
|
||||||
|
|
||||||
|
# Fix PYTHONPATH for some tools
|
||||||
|
wrapPythonPrograms
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
@ -19702,7 +19702,6 @@ in
|
|||||||
|
|
||||||
samba4 = callPackage ../servers/samba/4.x.nix {
|
samba4 = callPackage ../servers/samba/4.x.nix {
|
||||||
rpcgen = netbsd.rpcgen;
|
rpcgen = netbsd.rpcgen;
|
||||||
python = python3;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
samba = samba4;
|
samba = samba4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user