diff --git a/pkgs/servers/samba/4.x.nix b/pkgs/servers/samba/4.x.nix index 66a9bcc5c684..192c5ade05b5 100644 --- a/pkgs/servers/samba/4.x.nix +++ b/pkgs/servers/samba/4.x.nix @@ -1,6 +1,7 @@ { lib, stdenv , buildPackages , fetchurl +, fetchpatch , wafHook , pkg-config , bison @@ -76,6 +77,12 @@ stdenv.mkDerivation rec { ./4.x-no-persistent-install-dynconfig.patch ./4.x-fix-makeflags-parsing.patch ./build-find-pre-built-heimdal-build-tools-in-case-of-.patch + (fetchpatch { + # workaround for https://github.com/NixOS/nixpkgs/issues/303436 + name = "samba-reproducible-builds.patch"; + url = "https://gitlab.com/raboof/samba/-/commit/9995c5c234ece6888544cdbe6578d47e83dea0b5.patch"; + hash = "sha256-TVKK/7wGsfP1pVf8o1NwazobiR8jVJCCMj/FWji3f2A="; + }) ]; nativeBuildInputs = [