diff options
author | Johannes Lötzsch <git@johannesloetzsch.de> | 2019-07-19 15:21:51 +0200 |
---|---|---|
committer | Johannes Lötzsch <git@johannesloetzsch.de> | 2019-07-21 22:38:22 +0200 |
commit | 78eac95d233ad2206c7523396c487cfc5823555d (patch) | |
tree | 32863ae6847c2bf2fa15ff9eb526dd89944ef04a /pkgs/applications/misc/xygrib | |
parent | 80d39388de0e938adc8355103834f11c5cc38e91 (diff) |
xygrib: init at 1.2.6.1
Diffstat (limited to 'pkgs/applications/misc/xygrib')
-rw-r--r-- | pkgs/applications/misc/xygrib/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/misc/xygrib/default.nix b/pkgs/applications/misc/xygrib/default.nix new file mode 100644 index 0000000000000..4f1ecbaf8b3c0 --- /dev/null +++ b/pkgs/applications/misc/xygrib/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, cmake, bzip2, qtbase, qttools, libnova, proj, libpng, openjpeg } : + +stdenv.mkDerivation rec { + version = "1.2.6.1"; + pname = "xygrib"; + + src = fetchFromGitHub { + owner = "opengribs"; + repo = "XyGrib"; + rev = "v${version}"; + sha256 = "0xzsm8pr0zjk3f8j880fg5n82jyxn8xf1330qmmq1fqv7rsrg9ia"; + }; + + nativeBuildInputs = [ cmake qttools ]; + buildInputs = [ bzip2 qtbase libnova proj openjpeg libpng ]; + cmakeFlags = [ "-DOPENJPEG_INCLUDE_DIR=${openjpeg.dev}/include/openjpeg-2.3" ]; + + postInstall = '' + mkdir $out/bin + ln -s $out/XyGrib/XyGrib $out/bin/XyGrib + ''; + + meta = with stdenv.lib; { + homepage = "https://opengribs.org"; + description = "Weather Forecast Visualization"; + longDescription = ''XyGrib is a leading opensource weather visualization package. + It interacts with OpenGribs's Grib server providing a choice + of global and large area atmospheric and wave models.''; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = [ maintainers.j03 ]; + }; +} |