2021-01-15 14:21:58 +01:00
|
|
|
{ lib, stdenv, fetchurl, jre, makeWrapper, unzip }:
|
2018-08-23 22:35:05 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "astrolabe-generator";
|
2018-08-23 22:35:05 +02:00
|
|
|
version = "3.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/wymarc/astrolabe-generator/releases/download/v${version}/AstrolabeGenerator-${version}.zip";
|
|
|
|
sha256 = "141gfmrqa1mf2qas87qig4phym9fg9gbrcfl2idzd5gi91824dn9";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ jre ];
|
|
|
|
nativeBuildInputs = [ makeWrapper unzip ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,share/java}
|
|
|
|
cp AstrolabeGenerator-${version}.jar $out/share/java
|
|
|
|
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/AstrolabeGenerator \
|
|
|
|
--add-flags "-jar $out/share/java/AstrolabeGenerator-${version}.jar"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
meta = with lib;{
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.astrolabeproject.com";
|
2018-08-23 22:35:05 +02:00
|
|
|
description = "A Java-based tool for generating EPS files for constructing astrolabes and related tools";
|
|
|
|
license = licenses.gpl3;
|
2020-11-17 17:50:53 +01:00
|
|
|
maintainers = [ ];
|
2018-08-23 22:35:05 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|