From c0158e9c47d00533610e0a1d579c2f5e1c5ceb25 Mon Sep 17 00:00:00 2001 From: Malte Poll Date: Wed, 30 Aug 2023 09:24:31 +0200 Subject: [PATCH] dosfstools: backport reproducible builds patch Upstream, dosfstools respects SOURCE_DATE_EPOCH since this commit: https://github.com/dosfstools/dosfstools/commit/8da7bc93315cb0c32ad868f17808468b81fa76ec This means tools like mkfs.vfat will create deterministic outputs when SOURCE_DATE_EPOCH is set. A backport in nixpkgs is warranted since this was already merged in 2021 and no release of dosfstools has been made since then. Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/tools/filesystems/dosfstools/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/filesystems/dosfstools/default.nix b/pkgs/tools/filesystems/dosfstools/default.nix index cbc00b52bd5..eda54d341f9 100644 --- a/pkgs/tools/filesystems/dosfstools/default.nix +++ b/pkgs/tools/filesystems/dosfstools/default.nix @@ -22,6 +22,13 @@ stdenv.mkDerivation rec { url = "https://github.com/dosfstools/dosfstools/commit/2d3125c4a74895eae1f66b93287031d340324524.patch"; sha256 = "nlIuRDsNjk23MKZL9cZ05odOfTXvsyQaKcv/xEr4c+U="; }) + # reproducible builds fix backported from master + # (respect SOURCE_DATE_EPOCH) + # TODO: remove on the next release + (fetchpatch { + url = "https://github.com/dosfstools/dosfstools/commit/8da7bc93315cb0c32ad868f17808468b81fa76ec.patch"; + sha256 = "sha256-Quegj5uYZgACgjSZef6cjrWQ64SToGQxbxyqCdl8C7o="; + }) ]; nativeBuildInputs = [ autoreconfHook pkg-config ]