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