nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 80 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 qmake, 7 qttools, 8 wrapQtAppsHook, 9 boost, 10 kirigami2, 11 kyotocabinet, 12 libmicrohttpd, 13 libosmscout, 14 libpostal, 15 marisa, 16 osrm-backend, 17 protobuf, 18 qtquickcontrols2, 19 qtlocation, 20 sqlite, 21 valhalla, 22}: 23 24let 25 date = fetchFromGitHub { 26 owner = "HowardHinnant"; 27 repo = "date"; 28 rev = "a45ea7c17b4a7f320e199b71436074bd624c9e15"; 29 hash = "sha256-Mq7Yd+y8M3JNG9BEScwVEmxGWYEy6gaNNSlTGgR9LB4="; 30 }; 31in 32stdenv.mkDerivation (finalAttrs: { 33 pname = "osmscout-server"; 34 version = "3.1.5"; 35 36 src = fetchFromGitHub { 37 owner = "rinigus"; 38 repo = "osmscout-server"; 39 tag = finalAttrs.version; 40 hash = "sha256-gmAHX7Gt2oAvTSTCypAjzI5a9TWOPDAYAMD1i1fJVUY="; 41 fetchSubmodules = true; 42 }; 43 44 nativeBuildInputs = [ 45 qmake 46 pkg-config 47 qttools 48 wrapQtAppsHook 49 ]; 50 51 buildInputs = [ 52 kirigami2 53 qtquickcontrols2 54 qtlocation 55 valhalla 56 libosmscout 57 osrm-backend 58 libmicrohttpd 59 libpostal 60 sqlite 61 marisa 62 kyotocabinet 63 boost 64 protobuf 65 date 66 ]; 67 68 qmakeFlags = [ 69 "SCOUT_FLAVOR=kirigami" # Choose to build the kirigami UI variant 70 "CONFIG+=disable_mapnik" # Disable the optional mapnik backend 71 ]; 72 73 meta = { 74 description = "Maps server providing tiles, geocoder, and router"; 75 homepage = "https://github.com/rinigus/osmscout-server"; 76 license = lib.licenses.gpl3Only; 77 maintainers = [ lib.maintainers.Thra11 ]; 78 platforms = lib.platforms.linux; 79 }; 80})