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