mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gshhg-gmt";
|
|
version = "2.3.7";
|
|
src = fetchurl {
|
|
url = "ftp://ftp.soest.hawaii.edu/gmt/gshhg-gmt-${version}.tar.gz";
|
|
sha256 = "9bb1a956fca0718c083bef842e625797535a00ce81f175df08b042c2a92cfe7f";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/gshhg-gmt
|
|
cp -rv ./* $out/share/gshhg-gmt
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.soest.hawaii.edu/pwessel/gshhg/";
|
|
description = "High-resolution shoreline data set, for use with GMT";
|
|
longDescription = ''
|
|
GSHHG is a high-resolution shoreline data set amalgamated from two
|
|
databases: Global Self-consistent Hierarchical High-resolution Shorelines
|
|
(GSHHS) and CIA World Data Bank II (WDBII). GSHHG contains vector
|
|
descriptions at five different resolutions of land outlines, lakes,
|
|
rivers, and political boundaries. This data is for use by GMT, the Generic
|
|
Mapping Tools.
|
|
'';
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ tviti ];
|
|
};
|
|
|
|
}
|