about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorArnout Engelen <arnout@bzzt.net>2024-04-13 13:22:34 +0200
committerArnout Engelen <arnout@bzzt.net>2024-04-13 13:22:34 +0200
commitc531d97bf84d91868a5e22686cf0994bca0e7b44 (patch)
tree2cc2d2eb0d549c0b4cc90341f27e7f06a3b6c8e1 /pkgs/servers
parent4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6 (diff)
samba: work around reproducible-builds issue
Upstream issue https://bugzilla.samba.org/show_bug.cgi?id=15632

Fixes #303436
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/samba/4.x.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/servers/samba/4.x.nix b/pkgs/servers/samba/4.x.nix
index 66a9bcc5c6841..192c5ade05b57 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 = [