koko: init at 21.05

requires data that is not versioned:

- https://invent.kde.org/graphics/koko#packaging

Snapshotted because... Obviously that won't do with Nix.

+82
+1
pkgs/applications/plasma-mobile/default.nix
··· 65 65 calindori = callPackage ./calindori.nix {}; 66 66 kalk = callPackage ./kalk.nix {}; 67 67 kclock = callPackage ./kclock.nix {}; 68 + koko = callPackage ./koko.nix {}; 68 69 krecorder = callPackage ./krecorder.nix {}; 69 70 plasma-dialer = callPackage ./plasma-dialer.nix {}; 70 71 plasma-phonebook = callPackage ./plasma-phonebook.nix {};
+81
pkgs/applications/plasma-mobile/koko.nix
··· 1 + { lib 2 + , mkDerivation 3 + 4 + , fetchurl 5 + , cmake 6 + , extra-cmake-modules 7 + 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 23 + }: 24 + 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 + }; 41 + in 42 + mkDerivation rec { 43 + pname = "koko"; 44 + 45 + nativeBuildInputs = [ 46 + cmake 47 + extra-cmake-modules 48 + ]; 49 + 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 + ]; 67 + 68 + prePatch = '' 69 + ln -s ${admin1} src/admin1CodesASCII.txt 70 + ln -s ${admin2} src/admin2Codes.txt 71 + ln -s ${cities1000} src/cities1000.zip 72 + ''; 73 + 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 + }; 81 + }