biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / kde / koko.nix
blob4ea96c995bd209b5931256b6a060848c6cbd2185
1 { lib
2 , mkDerivation
4 , fetchurl
5 , cmake
6 , extra-cmake-modules
8 , exiv2
9 , kconfig
10 , kcoreaddons
11 , kdeclarative
12 , kfilemetadata
13 , kguiaddons
14 , ki18n
15 , kio
16 , kirigami2
17 , knotifications
18 , kpurpose
19 , kquickimageedit
20 , qtgraphicaleffects
21 , qtlocation
22 , qtquickcontrols2
25 let
26   # URLs snapshotted through
27   # https://web.archive.org/save/$url
28   # Update when stale enough I guess?
29   admin1 = fetchurl {
30     url = "https://web.archive.org/web/20210714035424if_/http://download.geonames.org/export/dump/admin1CodesASCII.txt";
31     sha256 = "0r783yzajs26hvccdy4jv2v06xfgadx2g90fz3yn7lx8flz4nhwm";
32   };
33   admin2 = fetchurl {
34     url = "https://web.archive.org/web/20210714035427if_/http://download.geonames.org/export/dump/admin2Codes.txt";
35     sha256 = "1n5nzp3xblhr93rb1sadi5vfbw29slv5lc6cxq21h3x3cg0mwqh3";
36   };
37   cities1000 = fetchurl {
38     url = "https://web.archive.org/web/20210714035406if_/http://download.geonames.org/export/dump/cities1000.zip";
39     sha256 = "0cwbfff8gzci5zrahh6d53b9b3bfv1cbwlv0k6076531i1c7md9p";
40   };
42 mkDerivation rec {
43   pname = "koko";
45   nativeBuildInputs = [
46     cmake
47     extra-cmake-modules
48   ];
50   buildInputs = [
51     exiv2
52     kconfig
53     kcoreaddons
54     kdeclarative
55     kfilemetadata
56     kguiaddons
57     ki18n
58     kio
59     kirigami2
60     knotifications
61     kpurpose
62     kquickimageedit
63     qtgraphicaleffects
64     qtlocation
65     qtquickcontrols2
66   ];
68   prePatch = ''
69     ln -s ${admin1}     src/admin1CodesASCII.txt
70     ln -s ${admin2}     src/admin2Codes.txt
71     ln -s ${cities1000} src/cities1000.zip
72   '';
74   meta = with lib; {
75     description = "Image gallery mobile application";
76     mainProgram = "koko";
77     homepage = "https://apps.kde.org/koko/";
78     # LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
79     license = [ licenses.lgpl3Only licenses.lgpl21Only ];
80     maintainers = [ ];
81   };