From 7330ec015143a8073b1a15ef9cb7afd1cd6917ef Mon Sep 17 00:00:00 2001 From: Malte Poll Date: Tue, 29 Aug 2023 16:26:53 +0200 Subject: [PATCH] mkosi: apply mcopy SOURCE_DATE_EPOCH patch to systemd Previously, mcopy SOURCE_DATE_EPOCH wasn't propageted to mcopy. This patch enables reproducible builds with mkosi. Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Signed-off-by: Malte Poll --- pkgs/tools/virtualization/mkosi/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/virtualization/mkosi/default.nix b/pkgs/tools/virtualization/mkosi/default.nix index 2de32aa4bfac..f042cfebb08c 100644 --- a/pkgs/tools/virtualization/mkosi/default.nix +++ b/pkgs/tools/virtualization/mkosi/default.nix @@ -29,6 +29,11 @@ let url = "https://github.com/systemd/systemd/commit/81e04781106e3db24e9cf63c1d5fdd8215dc3f42.patch"; hash = "sha256-KO3poIsvdeepPmXWQXNaJJCPpmBb4sVmO+ur4om9f5k="; }) + # Propagate SOURCE_DATE_EPOCH to mcopy. Remove when upgrading to systemd 255. + (fetchpatch { + url = "https://github.com/systemd/systemd/commit/4947de275a5553399854cc748f4f13e4ae2ba069.patch"; + hash = "sha256-YIZZyc3f8pQO9fMAxiNhDdV8TtL4pXoh+hwHBzRWtfo="; + }) ]; })).override { withRepart = true;