2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-07-11 20:11:30 +00:00
|
|
|
|
|
|
|
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/
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-07-11 20:11:30 +00:00
|
|
|
description = "Repository for proj datum grids";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://proj4.org";
|
2019-07-11 20:11:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|