1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/applications/graphics/photoqt/default.nix

38 lines
1,023 B
Nix
Raw Normal View History

2015-12-19 21:18:02 -05:00
{ stdenv, fetchurl, cmake, makeWrapper, exiv2, graphicsmagick
, qtbase, qtdeclarative, qtmultimedia, qtquickcontrols, qttools
}:
let
2015-09-09 19:00:51 -04:00
version = "1.3";
qmlPath = stdenv.lib.makeSearchPath "lib/qt5/qml/" [
2015-12-19 21:18:02 -05:00
qtquickcontrols
qtdeclarative
qtmultimedia
2015-09-09 19:00:51 -04:00
];
in
stdenv.mkDerivation rec {
name = "photoqt-${version}";
src = fetchurl {
url = "http://photoqt.org/pkgs/photoqt-${version}.tar.gz";
2015-09-09 19:00:51 -04:00
sha256 = "0j2kvxfb5pd9abciv161nkcsyam6n8kfqs8ymwj2mxiqflwbmfl1";
};
2015-12-19 21:18:02 -05:00
buildInputs = [ cmake makeWrapper qtbase qttools exiv2 graphicsmagick ];
preConfigure = ''
export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
'';
2015-09-09 19:00:51 -04:00
postInstall = ''
wrapProgram $out/bin/photoqt --set QML2_IMPORT_PATH "${qmlPath}"
'';
meta = {
homepage = "http://photoqt.org/";
description = "Simple, yet powerful and good looking image viewer";
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.eduarrrd ];
};
}