dosfstools: backport reproducible builds patch

Upstream, dosfstools respects SOURCE_DATE_EPOCH since this commit:
8da7bc9331
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>
This commit is contained in:
Malte Poll 2023-08-30 09:24:31 +02:00
parent 72c6fa4b68
commit c0158e9c47

View file

@ -22,6 +22,13 @@ stdenv.mkDerivation rec {
url = "https://github.com/dosfstools/dosfstools/commit/2d3125c4a74895eae1f66b93287031d340324524.patch"; url = "https://github.com/dosfstools/dosfstools/commit/2d3125c4a74895eae1f66b93287031d340324524.patch";
sha256 = "nlIuRDsNjk23MKZL9cZ05odOfTXvsyQaKcv/xEr4c+U="; 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 ] nativeBuildInputs = [ autoreconfHook pkg-config ]