diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-03-19 05:41:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 05:41:08 +0100 |
commit | 186c3e34a76f6170e01dcd41f25dee8c2c61c7f3 (patch) | |
tree | 64138e8f3524348a7eca700621966e944062eaca /pkgs/applications/misc | |
parent | ced4e31b4a3a96ca7805546c1ffa03f730a356df (diff) | |
parent | e08f26cdb1e23f47821c32de2d03f8d114289bc0 (diff) | |
download | nixlib-186c3e34a76f6170e01dcd41f25dee8c2c61c7f3.tar nixlib-186c3e34a76f6170e01dcd41f25dee8c2c61c7f3.tar.gz nixlib-186c3e34a76f6170e01dcd41f25dee8c2c61c7f3.tar.bz2 nixlib-186c3e34a76f6170e01dcd41f25dee8c2c61c7f3.tar.lz nixlib-186c3e34a76f6170e01dcd41f25dee8c2c61c7f3.tar.xz nixlib-186c3e34a76f6170e01dcd41f25dee8c2c61c7f3.tar.zst nixlib-186c3e34a76f6170e01dcd41f25dee8c2c61c7f3.zip |
Merge pull request #296549 from TomaSajt/strip-java-archives-hook
add stripJavaArchivesHook and use treewide
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/calcoo/default.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/misc/mkgmap/default.nix | 7 | ||||
-rw-r--r-- | pkgs/applications/misc/mkgmap/splitter/default.nix | 7 | ||||
-rw-r--r-- | pkgs/applications/misc/pattypan/default.nix | 4 |
4 files changed, 8 insertions, 14 deletions
diff --git a/pkgs/applications/misc/calcoo/default.nix b/pkgs/applications/misc/calcoo/default.nix index 5f90b4bb2363..462b56d50ce0 100644 --- a/pkgs/applications/misc/calcoo/default.nix +++ b/pkgs/applications/misc/calcoo/default.nix @@ -2,7 +2,7 @@ , stdenv , fetchzip , ant -, canonicalize-jars-hook +, stripJavaArchivesHook , jdk , makeWrapper }: @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ ant - canonicalize-jars-hook + stripJavaArchivesHook jdk makeWrapper ]; diff --git a/pkgs/applications/misc/mkgmap/default.nix b/pkgs/applications/misc/mkgmap/default.nix index ee0c2043a6b4..7f97818c7452 100644 --- a/pkgs/applications/misc/mkgmap/default.nix +++ b/pkgs/applications/misc/mkgmap/default.nix @@ -6,6 +6,7 @@ , jre , ant , makeWrapper +, stripJavaArchivesHook , doCheck ? true , withExamples ? false }: @@ -30,10 +31,6 @@ stdenv.mkDerivation rec { ]; postPatch = with deps; '' - # Fix the output jar timestamps for reproducibility - substituteInPlace build.xml \ - --replace-fail '<jar ' '<jar modificationtime="0" ' - # Manually create version properties file for reproducibility mkdir -p build/classes cat > build/classes/mkgmap-version.properties << EOF @@ -61,7 +58,7 @@ stdenv.mkDerivation rec { '') testInputs} ''; - nativeBuildInputs = [ jdk ant makeWrapper ]; + nativeBuildInputs = [ jdk ant makeWrapper stripJavaArchivesHook ]; buildPhase = '' runHook preBuild diff --git a/pkgs/applications/misc/mkgmap/splitter/default.nix b/pkgs/applications/misc/mkgmap/splitter/default.nix index 010b140e9bf9..801af789d47d 100644 --- a/pkgs/applications/misc/mkgmap/splitter/default.nix +++ b/pkgs/applications/misc/mkgmap/splitter/default.nix @@ -6,6 +6,7 @@ , jre , ant , makeWrapper +, stripJavaArchivesHook , doCheck ? true }: let @@ -30,10 +31,6 @@ stdenv.mkDerivation rec { ]; postPatch = with deps; '' - # Fix the output jar timestamps for reproducibility - substituteInPlace build.xml \ - --replace-fail '<jar ' '<jar modificationtime="0" ' - # Manually create version properties file for reproducibility mkdir -p build/classes cat > build/classes/splitter-version.properties << EOF @@ -58,7 +55,7 @@ stdenv.mkDerivation rec { '') testInputs} ''; - nativeBuildInputs = [ jdk ant makeWrapper ]; + nativeBuildInputs = [ jdk ant makeWrapper stripJavaArchivesHook ]; buildPhase = '' runHook preBuild diff --git a/pkgs/applications/misc/pattypan/default.nix b/pkgs/applications/misc/pattypan/default.nix index aac0da8b4c40..c1f5aa84b0eb 100644 --- a/pkgs/applications/misc/pattypan/default.nix +++ b/pkgs/applications/misc/pattypan/default.nix @@ -7,7 +7,7 @@ , wrapGAppsHook , makeDesktopItem , copyDesktopItems -, canonicalize-jars-hook +, stripJavaArchivesHook }: stdenv.mkDerivation (finalAttrs: { @@ -27,7 +27,7 @@ stdenv.mkDerivation (finalAttrs: { makeWrapper wrapGAppsHook copyDesktopItems - canonicalize-jars-hook + stripJavaArchivesHook ]; dontWrapGApps = true; |