package.nix (931B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libpng, 6 pkg-config, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "datamaps"; 11 version = "0-unstable-2014-08-19"; 12 13 __structuredAttrs = true; 14 15 src = fetchFromGitHub { 16 owner = "e-n-f"; 17 repo = "datamaps"; 18 rev = "76e620adabbedabd6866b23b30c145b53bae751e"; 19 hash = "sha256-UwrVbBataiHMPMwIUd7qjYChKaVGB48V2bHFV51fuOU="; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ libpng ]; 24 25 makeFlags = [ "PREFIX=$(out)" ]; 26 enableParallelBuilding = true; 27 28 installPhase = '' 29 for tool in encode enumerate merge render; do 30 install -Dm755 $tool $out/bin/datamaps-$tool 31 done 32 ''; 33 34 meta = { 35 description = "Indexes points and lines and generates map tiles to display them"; 36 homepage = "https://github.com/e-n-f/datamaps"; 37 license = lib.licenses.bsd2; 38 maintainers = [ lib.maintainers.sikmir ]; 39 platforms = lib.platforms.unix; 40 }; 41 })
