Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java-service-wrapper: make deterministic, do some cleanup #295154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions pkgs/by-name/ja/java-service-wrapper/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
lib,
stdenv,
fetchurl,
jdk,
ant,
jdk,
stripJavaArchivesHook,
cunit,
ncurses,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "java-service-wrapper";
version = "3.5.60";

src = fetchurl {
url = "https://wrapper.tanukisoftware.com/download/${version}/wrapper_${version}_src.tar.gz";
url = "https://wrapper.tanukisoftware.com/download/${finalAttrs.version}/wrapper_${finalAttrs.version}_src.tar.gz";
hash = "sha256-h3iW4U83XAyIHDpQ+O6RC8ZQSziPu/5lEo5512PQhxc=";
};

Expand All @@ -27,11 +28,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
ant
jdk
stripJavaArchivesHook
];

postConfigure = ''
substituteInPlace default.properties \
--replace "javac.target.version=1.4" "javac.target.version=8"
--replace-fail "javac.target.version=1.4" "javac.target.version=8"
'';

buildPhase = ''
Expand Down Expand Up @@ -60,7 +62,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Enables a Java Application to be run as a Windows Service or Unix Daemon";
homepage = "https://wrapper.tanukisoftware.com/";
changelog = "https://wrapper.tanukisoftware.com/doc/english/release-notes.html#${version}";
changelog = "https://wrapper.tanukisoftware.com/doc/english/release-notes.html#${finalAttrs.version}";
license = licenses.gpl2Only;
platforms = [
"x86_64-linux"
Expand All @@ -74,4 +76,4 @@ stdenv.mkDerivation rec {
# Tracking issue: https://github.com/NixOS/nixpkgs/issues/281557
broken = stdenv.hostPlatform.isMusl;
};
}
})
Loading