From 78eac95d233ad2206c7523396c487cfc5823555d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6tzsch?= Date: Fri, 19 Jul 2019 15:21:51 +0200 Subject: [PATCH] xygrib: init at 1.2.6.1 --- maintainers/maintainer-list.nix | 5 ++++ pkgs/applications/misc/xygrib/default.nix | 33 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 ++- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/misc/xygrib/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 787365b08cd4..37c9ccf48f53 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2271,6 +2271,11 @@ github = "j-keck"; name = "Jürgen Keck"; }; + j03 = { + email = "github@johannesloetzsch.de"; + github = "johannesloetzsch"; + name = "Johannes Lötzsch"; + }; jagajaga = { email = "ars.seroka@gmail.com"; github = "jagajaga"; diff --git a/pkgs/applications/misc/xygrib/default.nix b/pkgs/applications/misc/xygrib/default.nix new file mode 100644 index 000000000000..4f1ecbaf8b3c --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 52fcdb2167d4..2f6ee3497de3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21317,6 +21317,8 @@ in inherit (gnome2) scrollkeeper libglade; }; + xygrib = libsForQt5.callPackage ../applications/misc/xygrib/default.nix {}; + xzgv = callPackage ../applications/graphics/xzgv { }; yabar = callPackage ../applications/window-managers/yabar { }; @@ -24412,5 +24414,4 @@ in dapper = callPackage ../development/tools/dapper { }; kube3d = callPackage ../applications/networking/cluster/kube3d {}; - }