samba: remove top-level with lib;

This commit is contained in:
TomaSajt 2024-05-13 21:55:28 +02:00
parent 6f1fb5741b
commit afb6c6e279
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -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"
'';