phototonic: refactor, add patch for exiv2 0.28

+16 -8
+16 -8
pkgs/applications/graphics/phototonic/default.nix
··· 1 - { mkDerivation, lib, fetchFromGitHub, qtbase, qmake, exiv2 }: 2 3 - mkDerivation rec { 4 pname = "phototonic"; 5 version = "2.1"; 6 7 src = fetchFromGitHub { 8 - repo = "phototonic"; 9 owner = "oferkv"; 10 rev = "v${version}"; 11 - sha256 = "0csidmxl1sfmn6gq81vn9f9jckb4swz3sgngnwqa4f75lr6604h7"; 12 }; 13 14 buildInputs = [ qtbase exiv2 ]; 15 - nativeBuildInputs = [ qmake ]; 16 17 preConfigure = '' 18 sed -i 's;/usr;$$PREFIX/;g' phototonic.pro ··· 20 21 meta = with lib; { 22 description = "An image viewer and organizer"; 23 - homepage = "https://sourceforge.net/projects/phototonic/"; 24 - license = licenses.gpl3; 25 - platforms = platforms.linux; 26 maintainers = with maintainers; [ pSub ]; 27 }; 28 }
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, qmake, wrapQtAppsHook, qtbase, exiv2 }: 2 3 + stdenv.mkDerivation rec { 4 pname = "phototonic"; 5 version = "2.1"; 6 7 src = fetchFromGitHub { 8 owner = "oferkv"; 9 + repo = "phototonic"; 10 rev = "v${version}"; 11 + hash = "sha256-BxJgTKblOKIwt88+PT7XZE0mk0t2B4SfsdXpQHttUTM="; 12 }; 13 14 + patches = [ 15 + (fetchpatch { 16 + name = "exiv2-0.28.patch"; 17 + url = "https://gitlab.archlinux.org/archlinux/packaging/packages/phototonic/-/raw/fcfa17307ad8988750cc09200188c9365c2c0b79/exiv2-0.28.patch"; 18 + hash = "sha256-EayJYM4qobUWosxV2Ylj+2eiyhk1jM8OfnFZDbVdGII="; 19 + }) 20 + ]; 21 + 22 + nativeBuildInputs = [ qmake wrapQtAppsHook ]; 23 buildInputs = [ qtbase exiv2 ]; 24 25 preConfigure = '' 26 sed -i 's;/usr;$$PREFIX/;g' phototonic.pro ··· 28 29 meta = with lib; { 30 description = "An image viewer and organizer"; 31 + homepage = "https://github.com/oferkv/phototonic"; 32 + license = licenses.gpl3Plus; 33 maintainers = with maintainers; [ pSub ]; 34 + platforms = platforms.linux; 35 }; 36 }