3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/proj-datumgrid/default.nix
2020-04-10 17:54:53 +01:00

33 lines
687 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "proj-datumgrid";
version = "world-1.0";
src = fetchFromGitHub {
owner = "OSGeo";
repo = "proj-datumgrid";
rev = version;
sha256 = "132wp77fszx33wann0fjkmi1isxvsb0v9iw0gd9sxapa9h6hf3am";
};
sourceRoot = "source/scripts";
buildPhase = ''
$CC nad2bin.c -o nad2bin
'';
installPhase = ''
mkdir -p $out/bin
cp nad2bin $out/bin/
'';
meta = with stdenv.lib; {
description = "Repository for proj datum grids";
homepage = "https://proj4.org";
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ ];
};
}