Skip to content

Commit

Permalink
Merge pull request #117 from lcaouen/master
Browse files Browse the repository at this point in the history
olog 4.7.7 + remove sed to build a valid jar
  • Loading branch information
minijackson authored Jul 26, 2024
2 parents e98e81c + 369dde7 commit 25f2e10
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkgs/epnix/tools/phoebus/olog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
}:
maven.buildMavenPackage rec {
pname = "phoebus-olog";
version = "4.7.3";
version = "4.7.7";

src = fetchFromGitHub {
owner = "Olog";
repo = "phoebus-olog";
rev = "v${version}";
hash = "sha256-WwRB4QtZBeH6GptTZJ02CBpP7BGzjZbwMYQrOmGevFo=";
hash = "sha256-AHZowe4mmBpiFd5MMVRrnUHeTOJDwE6f0sZFUF+07lo=";
};

mvnHash = "sha256-D1n5PfGulIgdjd60mChVLH1kQDOUcc/TvEw3oJUZ1h4=";
mvnHash = "sha256-xaoaoL1a9VP7e4HdI2YuOUPOADnMYlPesVbkhgLz3+M=";
mvnParameters = "-Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pdeployable-jar -Dproject.build.outputTimestamp=1980-01-01T00:00:02Z";

nativeBuildInputs = [makeWrapper];
Expand All @@ -30,10 +30,7 @@ maven.buildMavenPackage rec {
jarName="service-olog-${version}.jar"
install -Dm644 target/service-olog-4.7.3.jar $out/share/java
# Strip the script at the beginning of the jar, so that we are able to
# canonicalize it
sed -i '1,/^exit 0$/d' $out/share/java/$jarName
install -Dm644 target/service-olog-${version}.jar $out/share/java
makeWrapper ${lib.getExe jre} $out/bin/${meta.mainProgram} \
--add-flags "-jar $out/share/java/$jarName"
Expand Down

0 comments on commit 25f2e10

Please sign in to comment.