From 70d5f16898a5a4cac06229af9263d14ecef7b085 Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Thu, 23 Aug 2018 22:35:05 +0200 Subject: [PATCH] astrolabe-generator: init at 3.3 (#45429) --- .../astronomy/astrolabe-generator/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/applications/science/astronomy/astrolabe-generator/default.nix diff --git a/pkgs/applications/science/astronomy/astrolabe-generator/default.nix b/pkgs/applications/science/astronomy/astrolabe-generator/default.nix new file mode 100644 index 000000000000..3150d41ca9f6 --- /dev/null +++ b/pkgs/applications/science/astronomy/astrolabe-generator/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, jre, makeWrapper, unzip }: + +stdenv.mkDerivation rec { + name = "astrolabe-generator-${version}"; + 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 = [ maintainers.genesis ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 86de6b193186..58618da901ae 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21145,6 +21145,8 @@ with pkgs; stellarium = libsForQt5.callPackage ../applications/science/astronomy/stellarium { }; + astrolabe-generator = callPackage ../applications/science/astronomy/astrolabe-generator { }; + tulip = callPackage ../applications/science/misc/tulip { cmake = cmake_2_8; };