photoqt: 1.2 -> 1.3
This commit is contained in:
parent
f040a1443e
commit
09bf6c95c6
@ -1,21 +1,30 @@
|
|||||||
{ stdenv, fetchurl, cmake, qt5, exiv2, graphicsmagick }:
|
{ stdenv, fetchurl, cmake, makeWrapper, qt5, exiv2, graphicsmagick }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.2";
|
version = "1.3";
|
||||||
|
qmlPath = stdenv.lib.makeSearchPath "lib/qt5/qml/" [
|
||||||
|
qt5.quickcontrols
|
||||||
|
qt5.declarative
|
||||||
|
qt5.multimedia
|
||||||
|
];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "photoqt-${version}";
|
name = "photoqt-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://photoqt.org/pkgs/photoqt-${version}.tar.gz";
|
url = "http://photoqt.org/pkgs/photoqt-${version}.tar.gz";
|
||||||
sha256 = "1dnnj2h3j517hcbjxlzk035fis44wdmqq7dvhwpmq1rcr0v32aaa";
|
sha256 = "0j2kvxfb5pd9abciv161nkcsyam6n8kfqs8ymwj2mxiqflwbmfl1";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake qt5.base qt5.tools exiv2 graphicsmagick ];
|
buildInputs = [ cmake makeWrapper qt5.base qt5.tools exiv2 graphicsmagick ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
|
export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/photoqt --set QML2_IMPORT_PATH "${qmlPath}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://photoqt.org/";
|
homepage = "http://photoqt.org/";
|
||||||
description = "Simple, yet powerful and good looking image viewer";
|
description = "Simple, yet powerful and good looking image viewer";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user