tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
phototonic: refactor, add patch for exiv2 0.28
Weijia Wang
2 years ago
fb3df1c9
d90e8fdf
+16
-8
1 changed file
expand all
collapse all
unified
split
pkgs
applications
graphics
phototonic
default.nix
+16
-8
pkgs/applications/graphics/phototonic/default.nix
···
1
1
-
{ mkDerivation, lib, fetchFromGitHub, qtbase, qmake, exiv2 }:
1
1
+
{ lib, stdenv, fetchFromGitHub, fetchpatch, qmake, wrapQtAppsHook, qtbase, exiv2 }:
2
2
3
3
-
mkDerivation rec {
3
3
+
stdenv.mkDerivation rec {
4
4
pname = "phototonic";
5
5
version = "2.1";
6
6
7
7
src = fetchFromGitHub {
8
8
-
repo = "phototonic";
9
8
owner = "oferkv";
9
9
+
repo = "phototonic";
10
10
rev = "v${version}";
11
11
-
sha256 = "0csidmxl1sfmn6gq81vn9f9jckb4swz3sgngnwqa4f75lr6604h7";
11
11
+
hash = "sha256-BxJgTKblOKIwt88+PT7XZE0mk0t2B4SfsdXpQHttUTM=";
12
12
};
13
13
14
14
+
patches = [
15
15
+
(fetchpatch {
16
16
+
name = "exiv2-0.28.patch";
17
17
+
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/phototonic/-/raw/fcfa17307ad8988750cc09200188c9365c2c0b79/exiv2-0.28.patch";
18
18
+
hash = "sha256-EayJYM4qobUWosxV2Ylj+2eiyhk1jM8OfnFZDbVdGII=";
19
19
+
})
20
20
+
];
21
21
+
22
22
+
nativeBuildInputs = [ qmake wrapQtAppsHook ];
14
23
buildInputs = [ qtbase exiv2 ];
15
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
23
-
homepage = "https://sourceforge.net/projects/phototonic/";
24
24
-
license = licenses.gpl3;
25
25
-
platforms = platforms.linux;
31
31
+
homepage = "https://github.com/oferkv/phototonic";
32
32
+
license = licenses.gpl3Plus;
26
33
maintainers = with maintainers; [ pSub ];
34
34
+
platforms = platforms.linux;
27
35
};
28
36
}