default.nix (895B)
1 { lib, stdenv, fetchFromGitHub, cmake, bzip2, expat, gd, icu, libosmium, protozero, sqlite, zlib }: 2 3 stdenv.mkDerivation { 4 pname = "taginfo-tools"; 5 version = "0-unstable-2022-05-24"; 6 7 src = fetchFromGitHub { 8 owner = "taginfo"; 9 repo = "taginfo-tools"; 10 rev = "28264e63a2b3027cec69ae4906ef689029df627b"; 11 hash = "sha256-AAfrwH+9ON68V8ey5FZge2NVGanQlcxs6qUDnKgt5WU="; 12 fetchSubmodules = true; 13 }; 14 15 nativeBuildInputs = [ cmake ]; 16 buildInputs = [ bzip2 expat gd icu libosmium protozero sqlite zlib ]; 17 18 postInstall = '' 19 install -Dm755 src/{osmstats,taginfo-sizes} -t $out/bin 20 ''; 21 22 meta = with lib; { 23 description = "C++ tools used in taginfo processing"; 24 homepage = "https://wiki.openstreetmap.org/wiki/Taginfo"; 25 license = licenses.gpl3Plus; 26 maintainers = [ maintainers.sikmir ]; 27 platforms = platforms.unix; 28 broken = stdenv.isLinux; 29 }; 30 }