diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 922ec43cdce6..8f75a3330c2e 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -55,6 +55,7 @@ dmalikov = "Dmitry Malikov "; doublec = "Chris Double "; ederoyd46 = "Matthew Brown "; + eduarrrd = "Eduard Bachmakov "; edwtjo = "Edward Tjörnhammar "; eelco = "Eelco Dolstra "; eikek = "Eike Kettner "; diff --git a/pkgs/applications/graphics/photoqt/default.nix b/pkgs/applications/graphics/photoqt/default.nix new file mode 100644 index 000000000000..c16093bfec0e --- /dev/null +++ b/pkgs/applications/graphics/photoqt/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, cmake, qt5, exiv2, graphicsmagick }: + +let + version = "1.1.0.1"; +in +stdenv.mkDerivation rec { + name = "photoqt-${version}"; + src = fetchurl { + url = "http://photoqt.org/pkgs/photoqt-${version}.tar.gz"; + sha256 = "1y59ys1dgjppahs7v7kxwva7ik23s0x7j2f6glv6sn23l9cfq9rp"; + }; + + buildInputs = [ cmake qt5 exiv2 graphicsmagick ]; + + patches = [ ./graphicsmagick-path.patch ]; + + preConfigure = '' + export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick" + ''; + + 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 ]; + }; +} diff --git a/pkgs/applications/graphics/photoqt/graphicsmagick-path.patch b/pkgs/applications/graphics/photoqt/graphicsmagick-path.patch new file mode 100644 index 000000000000..da9b70e31ed5 --- /dev/null +++ b/pkgs/applications/graphics/photoqt/graphicsmagick-path.patch @@ -0,0 +1,46 @@ +--- a/CMake/FindMagick.cmake 2014-10-13 19:24:30.000000000 +0200 ++++ b/CMake/FindMagick.cmake 2014-12-27 18:54:19.611759021 +0100 +@@ -19,28 +19,11 @@ + SET(MAGICK++_FOUND "NO" ) + + FIND_PATH( MAGICK_INCLUDE_DIR magick/magick.h +- "$ENV{MAGICK_LOCATION}/magick" +- "$ENV{MAGICK_LOCATION}/include/magick" +- "$ENV{MAGICK_HOME}/include/magick" +- /usr/include/magick +- /usr/include/ +- /usr/include/GraphicsMagick +- /opt/local/include/GraphicsMagick/magick +- /opt/local/include/GraphicsMagick ++ "$ENV{MAGICK_LOCATION}" + ) + + FIND_PATH( MAGICK++_INCLUDE_DIR Magick++.h +- "$ENV{MAGICK++_LOCATION}/Magick++" +- "$ENV{MAGICK++_LOCATION}/include/" +- "$ENV{MAGICK_LOCATION}/Magick++" +- "$ENV{MAGICK_LOCATION}/include/Magick++" +- "$ENV{MAGICK_LOCATION}/include/" +- "$ENV{MAGICK_HOME}/include/" +- /usr/include/Magick++ +- /usr/include/GraphicsMagick +- /usr/include/ +- /opt/local/include/GraphicsMagick/Magick++ +- /opt/local/include/GraphicsMagick ++ "$ENV{MAGICK_LOCATION}" + ) + + FIND_LIBRARY( Magick GraphicsMagick +@@ -55,12 +38,7 @@ + + FIND_LIBRARY( Magick++ GraphicsMagick++ + PATHS +- "$ENV{MAGICK++_LOCATION}/.libs" +- "$ENV{MAGICK_LOCATION}/.libs" +- "$ENV{MAGICK++_LOCATION}/lib" + "$ENV{MAGICK_LOCATION}/lib" +- "$ENV{MAGICK_HOME}/lib" +- /opt/local/lib + DOC "GraphicsMagick Magick++ library" + ) + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 718681907421..70ab2d23f217 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10549,6 +10549,8 @@ let pdftk = callPackage ../tools/typesetting/pdftk { }; pdfgrep = callPackage ../tools/typesetting/pdfgrep { }; + photoqt = callPackage ../applications/graphics/photoqt { }; + pianobar = callPackage ../applications/audio/pianobar { }; pianobooster = callPackage ../applications/audio/pianobooster { };