package.nix (960B)
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 __structuredAttrs = true; 21 22 src = fetchFromGitHub { 23 owner = "taginfo"; 24 repo = "taginfo-tools"; 25 rev = "a92fa2e9cdbc60c1edda57e652b1b9faad44faa5"; 26 hash = "sha256-uYUYF5FGsxqReJdFBGStvJnx/uaQG8k2pgr5Gjh2IH0="; 27 fetchSubmodules = true; 28 }; 29 30 nativeBuildInputs = [ cmake ]; 31 buildInputs = [ 32 bzip2 33 expat 34 gd 35 icu74 36 libosmium 37 protozero 38 sqlite 39 zlib 40 ]; 41 42 postInstall = '' 43 install -Dm755 src/{osmstats,taginfo-sizes} -t $out/bin 44 ''; 45 46 meta = { 47 description = "C++ tools used in taginfo processing"; 48 homepage = "https://wiki.openstreetmap.org/wiki/Taginfo"; 49 license = lib.licenses.gpl3Plus; 50 maintainers = [ lib.maintainers.sikmir ]; 51 platforms = lib.platforms.unix; 52 }; 53 }
