default.nix (931B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 bzip2, 7 expat, 8 gd, 9 icu74, 10 libosmium, 11 protozero, 12 sqlite, 13 zlib, 14 }: 15 16 stdenv.mkDerivation { 17 pname = "taginfo-tools"; 18 version = "0-unstable-2024-11-24"; 19 20 src = fetchFromGitHub { 21 owner = "taginfo"; 22 repo = "taginfo-tools"; 23 rev = "a92fa2e9cdbc60c1edda57e652b1b9faad44faa5"; 24 hash = "sha256-uYUYF5FGsxqReJdFBGStvJnx/uaQG8k2pgr5Gjh2IH0="; 25 fetchSubmodules = true; 26 }; 27 28 nativeBuildInputs = [ cmake ]; 29 buildInputs = [ 30 bzip2 31 expat 32 gd 33 icu74 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 }; 51 }