Skip to content

Commit

Permalink
polyglot: 3.5.1 -> 3.6 (NixOS#366001)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored Dec 18, 2024
2 parents a27cb2e + aeb7e0b commit 2718b24
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions pkgs/by-name/po/polyglot/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
maven,
libGL,
xdg-utils,
libXxf86vm,
zip,
zlib,
}:
maven.buildMavenPackage rec {
pname = "polyglot";
version = "3.5.1";
version = "3.6";

src = fetchFromGitHub {
owner = "DraqueT";
repo = "PolyGlot";
rev = version;
hash = "sha256-E7wLhohOpWGzXe1zEO9a8aFIVT7/34Wr0dsRzpuf+eY=";
rev = "v${version}";
hash = "sha256-fAeYrj5x2kGGz+LPnlhR3j+0RSh4akPfN+ZyMMyrndE=";
};

preBuild = ''
Expand All @@ -29,7 +30,7 @@ maven.buildMavenPackage rec {
cd ../..
'';

mvnHash = "sha256-T7es44oNI9EXnpJd/DvYTb4LaJvR3rIdlhD4s/+Bfks=";
mvnHash = "sha256-nQScNCkA+eaeL3tcLCec1qIoYO6ct28FLxGp/Cm4nn4=";
mvnParameters = "-DskipTests";

nativeBuildInputs = [
Expand All @@ -49,7 +50,12 @@ maven.buildMavenPackage rec {
makeWrapper ${jre}/bin/java $out/bin/PolyGlot \
--add-flags "-Djpackage.app-version=${version}" \
--add-flags "-jar $out/share/PolyGlotLinA/PolyGlotLinA-${version}-jar-with-dependencies.jar" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}"
--prefix LD_LIBRARY_PATH : "${
lib.makeLibraryPath [
libGL
libXxf86vm
]
}"
runHook postInstall
'';
Expand Down

0 comments on commit 2718b24

Please sign in to comment.