From 09fa345f20c3675025fad6c5d9617a368fee88ee Mon Sep 17 00:00:00 2001 From: Luke Adams Date: Tue, 26 Dec 2017 13:28:34 -0600 Subject: sambaMaster: init at 4.8_2017-12-25 --- pkgs/servers/samba/master.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/servers/samba/master.nix (limited to 'pkgs/servers/samba/master.nix') diff --git a/pkgs/servers/samba/master.nix b/pkgs/servers/samba/master.nix new file mode 100644 index 000000000000..a9cf894eabc8 --- /dev/null +++ b/pkgs/servers/samba/master.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub +, samba4 +, nettle +} : + + (samba4.overrideAttrs(oldAttrs: rec { + name = "samba-master${version}"; + version = "4.8_2017-12-25"; + + src = fetchFromGitHub { + owner = "samba-team"; + repo = "samba"; + rev = "8a42954775df6795efa9b5ba5676301d14b3efac"; + sha256 = "19pdnvs23ny8cbfd119dqv8mc1qbay6c2ibsn0imc9cnl4wdzqdg"; + }; + + # Remove unnecessary install flags, same as <4.8 patch + postPatch = oldAttrs.postPatch + '' + sed -i '423,433d' dynconfig/wscript + ''; + + patches = [ ./4.x-no-persistent-install.patch ]; + buildInputs = [ nettle ] ++ oldAttrs.buildInputs; + meta.branch = "master"; + })).override { + # samba4.8+ removed the ability to disable LDAP. + # Enable for base derivation here: + enableLDAP = true; + } -- cgit 1.4.1