about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/fop
diff options
context:
space:
mode:
authorTomaSajt <62384384+TomaSajt@users.noreply.github.com>2024-03-17 13:35:55 +0100
committerTomaSajt <62384384+TomaSajt@users.noreply.github.com>2024-03-17 13:35:55 +0100
commit436fe7b59baed6bc65ac8430b13b8e4b9908e4eb (patch)
tree5d9f2aae4e4b1f2e2a867fc4b2190bd9cf538650 /pkgs/tools/typesetting/fop
parent0e209537966c90438bbb0d71124be25ffc2084c5 (diff)
treewide: unify ant determinism methods
Diffstat (limited to 'pkgs/tools/typesetting/fop')
-rw-r--r--pkgs/tools/typesetting/fop/default.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/tools/typesetting/fop/default.nix b/pkgs/tools/typesetting/fop/default.nix
index e31ea73f00961..94a24211f9a39 100644
--- a/pkgs/tools/typesetting/fop/default.nix
+++ b/pkgs/tools/typesetting/fop/default.nix
@@ -5,6 +5,7 @@
 , jdk
 , jre
 , makeWrapper
+, stripJavaArchivesHook
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -16,16 +17,11 @@ stdenv.mkDerivation (finalAttrs: {
     hash = "sha256-b7Av17wu6Ar/npKOiwYqzlvBFSIuXTpqTacM1sxtBvc=";
   };
 
-  postPatch = ''
-    # Fix jar timestamps for reproducibility
-    substituteInPlace fop/build.xml \
-        --replace-fail '<jar ' '<jar modificationtime="0" '
-  '';
-
   nativeBuildInputs = [
     ant
     jdk
     makeWrapper
+    stripJavaArchivesHook
   ];
 
   # Note: not sure if this is needed anymore