nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 46 lines 1.4 kB view raw
1{ lib, mkDerivation, fetchFromGitHub, pkg-config 2, qmake, qttools, kirigami2, qtquickcontrols2, qtlocation 3, libosmscout, valhalla, libpostal, osrm-backend, protobuf 4, libmicrohttpd, sqlite, marisa, kyotocabinet, boost 5}: 6 7let 8 date = fetchFromGitHub { 9 owner = "HowardHinnant"; 10 repo = "date"; 11 rev = "a2fdba1adcb076bf9a8343c07524afdf09aa8dcc"; 12 sha256 = "00sf1pbaz0g0gsa0dlm23lxk4h46xm1jv1gzbjj5rr9sf1qccyr5"; 13 }; 14in 15mkDerivation rec { 16 pname = "osmscout-server"; 17 version = "3.0.0"; 18 19 src = fetchFromGitHub { 20 owner = "rinigus"; 21 repo = "osmscout-server"; 22 rev = version; 23 hash = "sha256-jcg/0SKeLviEC+vszh5DployKDAI7N+a8lzvImzFTvY="; 24 fetchSubmodules = true; 25 }; 26 27 nativeBuildInputs = [ qmake pkg-config qttools ]; 28 buildInputs = [ 29 kirigami2 qtquickcontrols2 qtlocation 30 valhalla libosmscout osrm-backend libmicrohttpd 31 libpostal sqlite marisa kyotocabinet boost protobuf date 32 ]; 33 34 qmakeFlags = [ 35 "SCOUT_FLAVOR=kirigami" # Choose to build the kirigami UI variant 36 "CONFIG+=disable_mapnik" # Disable the optional mapnik backend 37 ]; 38 39 meta = with lib; { 40 description = "Maps server providing tiles, geocoder, and router"; 41 homepage = "https://github.com/rinigus/osmscout-server"; 42 license = licenses.gpl3Only; 43 maintainers = [ maintainers.Thra11 ]; 44 platforms = platforms.linux; 45 }; 46}