Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / kde / koko.nix
blob3543a7284bffd241dc555df12e9e0365d157fe16
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     homepage = "https://apps.kde.org/koko/";
77     # LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
78     license = [ licenses.lgpl3Only licenses.lgpl21Only ];
79     maintainers = with maintainers; [ samueldr ];
80   };