xygrib: fix build failure due to openjpeg update
This commit is contained in:
parent
c4419e6264
commit
31124e17eb
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, wrapQtAppsHook, cmake, bzip2, qtbase, qttools, libnova, proj, libpng, openjpeg } :
|
{ lib, stdenv, fetchFromGitHub, wrapQtAppsHook, cmake, bzip2, qtbase, qttools, libnova, proj, libpng, openjpeg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.2.6.1";
|
version = "1.2.6.1";
|
||||||
@ -13,26 +13,29 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
|
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
|
||||||
buildInputs = [ bzip2 qtbase libnova proj openjpeg libpng ];
|
buildInputs = [ bzip2 qtbase libnova proj openjpeg libpng ];
|
||||||
cmakeFlags = [ "-DOPENJPEG_INCLUDE_DIR=${openjpeg.dev}/include/openjpeg-2.3" ]
|
cmakeFlags = [ "-DOPENJPEG_INCLUDE_DIR=${openjpeg.dev}/include/openjpeg-${lib.versions.majorMinor openjpeg.version}" ]
|
||||||
++ lib.optionals stdenv.isDarwin [ "-DLIBNOVA_LIBRARY=${libnova}/lib/libnova.dylib" ];
|
++ lib.optionals stdenv.isDarwin [ "-DLIBNOVA_LIBRARY=${libnova}/lib/libnova.dylib" ];
|
||||||
|
|
||||||
postInstall = if stdenv.isDarwin then ''
|
postInstall =
|
||||||
mkdir -p "$out/Applications" "$out/XyGrib/XyGrib.app/Contents/Resources"
|
if stdenv.isDarwin then ''
|
||||||
cp "../data/img/xyGrib.icns" "$out/XyGrib/XyGrib.app/Contents/Resources/xyGrib.icns"
|
mkdir -p "$out/Applications" "$out/XyGrib/XyGrib.app/Contents/Resources"
|
||||||
mv $out/XyGrib/XyGrib.app $out/Applications
|
cp "../data/img/xyGrib.icns" "$out/XyGrib/XyGrib.app/Contents/Resources/xyGrib.icns"
|
||||||
wrapQtApp "$out/Applications/XyGrib.app/Contents/MacOS/XyGrib"
|
mv $out/XyGrib/XyGrib.app $out/Applications
|
||||||
'' else ''
|
wrapQtApp "$out/Applications/XyGrib.app/Contents/MacOS/XyGrib"
|
||||||
wrapQtApp $out/XyGrib/XyGrib
|
'' else ''
|
||||||
mkdir -p $out/bin
|
wrapQtApp $out/XyGrib/XyGrib
|
||||||
ln -s $out/XyGrib/XyGrib $out/bin/xygrib
|
mkdir -p $out/bin
|
||||||
'';
|
ln -s $out/XyGrib/XyGrib $out/bin/xygrib
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://opengribs.org";
|
homepage = "https://opengribs.org";
|
||||||
description = "Weather Forecast Visualization";
|
description = "Weather Forecast Visualization";
|
||||||
longDescription = ''XyGrib is a leading opensource weather visualization package.
|
longDescription = ''
|
||||||
It interacts with OpenGribs's Grib server providing a choice
|
XyGrib is a leading opensource weather visualization package.
|
||||||
of global and large area atmospheric and wave models.'';
|
It interacts with OpenGribs's Grib server providing a choice
|
||||||
|
of global and large area atmospheric and wave models.
|
||||||
|
'';
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ j03 SuperSandro2000 ];
|
maintainers = with maintainers; [ j03 SuperSandro2000 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user