default.nix (902B)
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 src = fetchFromGitHub { 14 owner = "e-n-f"; 15 repo = "datamaps"; 16 rev = "76e620adabbedabd6866b23b30c145b53bae751e"; 17 hash = "sha256-UwrVbBataiHMPMwIUd7qjYChKaVGB48V2bHFV51fuOU="; 18 }; 19 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ libpng ]; 22 23 makeFlags = [ "PREFIX=$(out)" ]; 24 enableParallelBuilding = true; 25 26 installPhase = '' 27 for tool in encode enumerate merge render; do 28 install -Dm755 $tool $out/bin/datamaps-$tool 29 done 30 ''; 31 32 meta = { 33 description = "Indexes points and lines and generates map tiles to display them"; 34 homepage = "https://github.com/e-n-f/datamaps"; 35 license = lib.licenses.bsd2; 36 maintainers = [ lib.maintainers.sikmir ]; 37 platforms = lib.platforms.unix; 38 }; 39 })