mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
use wrapQtAppsHook in xygrib
This commit is contained in:
parent
fb06094ae3
commit
1ab7f242c5
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, bzip2, qtbase, qttools, libnova, proj, libpng, openjpeg } :
|
{ 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";
|
||||||
@ -11,13 +11,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0xzsm8pr0zjk3f8j880fg5n82jyxn8xf1330qmmq1fqv7rsrg9ia";
|
sha256 = "0xzsm8pr0zjk3f8j880fg5n82jyxn8xf1330qmmq1fqv7rsrg9ia";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake qttools ];
|
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-2.3" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir $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 stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user