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 }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, qmake, wrapQtAppsHook, qtbase, exiv2 }: 2 2 3 - mkDerivation rec { 3 + stdenv.mkDerivation rec { 4 4 pname = "phototonic"; 5 5 version = "2.1"; 6 6 7 7 src = fetchFromGitHub { 8 - repo = "phototonic"; 9 8 owner = "oferkv"; 9 + repo = "phototonic"; 10 10 rev = "v${version}"; 11 - sha256 = "0csidmxl1sfmn6gq81vn9f9jckb4swz3sgngnwqa4f75lr6604h7"; 11 + hash = "sha256-BxJgTKblOKIwt88+PT7XZE0mk0t2B4SfsdXpQHttUTM="; 12 12 }; 13 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 ]; 14 23 buildInputs = [ qtbase exiv2 ]; 15 - nativeBuildInputs = [ qmake ]; 16 24 17 25 preConfigure = '' 18 26 sed -i 's;/usr;$$PREFIX/;g' phototonic.pro ··· 20 28 21 29 meta = with lib; { 22 30 description = "An image viewer and organizer"; 23 - homepage = "https://sourceforge.net/projects/phototonic/"; 24 - license = licenses.gpl3; 25 - platforms = platforms.linux; 31 + homepage = "https://github.com/oferkv/phototonic"; 32 + license = licenses.gpl3Plus; 26 33 maintainers = with maintainers; [ pSub ]; 34 + platforms = platforms.linux; 27 35 }; 28 36 }