samba: remove top-level with lib;
This commit is contained in:
parent
6f1fb5741b
commit
afb6c6e279
@ -50,8 +50,6 @@
|
||||
, enablePam ? (!stdenv.isDarwin), pam
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
# samba-tool requires libxcrypt-legacy algorithms
|
||||
python = python3Packages.python.override {
|
||||
@ -60,6 +58,8 @@ let
|
||||
wrapPython = python3Packages.wrapPython.override {
|
||||
inherit python;
|
||||
};
|
||||
|
||||
inherit (lib) optional optionals;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "samba";
|
||||
@ -199,7 +199,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# Save asn1_compile and compile_et so they are available to run on the build
|
||||
# platform when cross-compiling
|
||||
postInstall = optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
mkdir -p "$dev/bin"
|
||||
cp bin/asn1_compile bin/compile_et "$dev/bin"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user