1 { lib, stdenv, fetchurl, jre, makeWrapper, unzip }:
3 stdenv.mkDerivation rec {
4 pname = "astrolabe-generator";
8 url = "https://github.com/wymarc/astrolabe-generator/releases/download/v${version}/AstrolabeGenerator-${version}.zip";
9 sha256 = "141gfmrqa1mf2qas87qig4phym9fg9gbrcfl2idzd5gi91824dn9";
12 buildInputs = [ jre ];
13 nativeBuildInputs = [ makeWrapper unzip ];
17 mkdir -p $out/{bin,share/java}
18 cp AstrolabeGenerator-${version}.jar $out/share/java
20 makeWrapper ${jre}/bin/java $out/bin/AstrolabeGenerator \
21 --add-flags "-jar $out/share/java/AstrolabeGenerator-${version}.jar"
25 homepage = "https://www.astrolabeproject.com";
26 description = "Java-based tool for generating EPS files for constructing astrolabes and related tools";
27 sourceProvenance = with sourceTypes; [ binaryBytecode ];
28 license = licenses.gpl3;
30 mainProgram = "AstrolabeGenerator";
31 platforms = platforms.all;