3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/astronomy/astrolabe-generator/default.nix
Jörg Thalheim 72f6df338d remove genesis maintainer
genesis has no longer access to github
2020-11-18 22:37:56 -08:00

32 lines
970 B
Nix

{ stdenv, fetchurl, jre, makeWrapper, unzip }:
stdenv.mkDerivation rec {
pname = "astrolabe-generator";
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"
'';
meta = with stdenv.lib;{
homepage = "https://www.astrolabeproject.com";
description = "A Java-based tool for generating EPS files for constructing astrolabes and related tools";
license = licenses.gpl3;
maintainers = [ ];
platforms = platforms.all;
};
}