3
0
Fork 0
forked from mirrors/nixpkgs

phototonic: refactor, add patch for exiv2 0.28

This commit is contained in:
Weijia Wang 2023-09-30 22:42:37 +02:00
parent d90e8fdfb7
commit fb3df1c9f9

View file

@ -1,18 +1,26 @@
{ mkDerivation, lib, fetchFromGitHub, qtbase, qmake, exiv2 }: { lib, stdenv, fetchFromGitHub, fetchpatch, qmake, wrapQtAppsHook, qtbase, exiv2 }:
mkDerivation rec { stdenv.mkDerivation rec {
pname = "phototonic"; pname = "phototonic";
version = "2.1"; version = "2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
repo = "phototonic";
owner = "oferkv"; owner = "oferkv";
repo = "phototonic";
rev = "v${version}"; rev = "v${version}";
sha256 = "0csidmxl1sfmn6gq81vn9f9jckb4swz3sgngnwqa4f75lr6604h7"; hash = "sha256-BxJgTKblOKIwt88+PT7XZE0mk0t2B4SfsdXpQHttUTM=";
}; };
patches = [
(fetchpatch {
name = "exiv2-0.28.patch";
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/phototonic/-/raw/fcfa17307ad8988750cc09200188c9365c2c0b79/exiv2-0.28.patch";
hash = "sha256-EayJYM4qobUWosxV2Ylj+2eiyhk1jM8OfnFZDbVdGII=";
})
];
nativeBuildInputs = [ qmake wrapQtAppsHook ];
buildInputs = [ qtbase exiv2 ]; buildInputs = [ qtbase exiv2 ];
nativeBuildInputs = [ qmake ];
preConfigure = '' preConfigure = ''
sed -i 's;/usr;$$PREFIX/;g' phototonic.pro sed -i 's;/usr;$$PREFIX/;g' phototonic.pro
@ -20,9 +28,9 @@ mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "An image viewer and organizer"; description = "An image viewer and organizer";
homepage = "https://sourceforge.net/projects/phototonic/"; homepage = "https://github.com/oferkv/phototonic";
license = licenses.gpl3; license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ pSub ]; maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
}; };
} }