nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (1039B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   fetchpatch,
      6   cmake,
      7   bzip2,
      8   expat,
      9   gdal,
     10   geos,
     11   libosmium,
     12   protozero,
     13   sqlite,
     14   zlib,
     15 }:
     16 
     17 stdenv.mkDerivation (finalAttrs: {
     18   pname = "osmcoastline";
     19   version = "2.4.0";
     20 
     21   src = fetchFromGitHub {
     22     owner = "osmcode";
     23     repo = "osmcoastline";
     24     rev = "v${finalAttrs.version}";
     25     hash = "sha256-HSUBUSKO0gfUTECjzFpaAu9ye5Qho3rRqhYpc9du+ig=";
     26   };
     27 
     28   patches = [
     29     (fetchpatch {
     30       url = "https://github.com/osmcode/osmcoastline/commit/67cc33161069f65e315acae952492ab5ee07af15.patch";
     31       hash = "sha256-6x2WrVm0vI2H8W3jTTdCSlAGNYbc6dfujlr3cHWhC3Y=";
     32     })
     33   ];
     34 
     35   nativeBuildInputs = [ cmake ];
     36 
     37   buildInputs = [
     38     bzip2
     39     expat
     40     gdal
     41     geos
     42     libosmium
     43     protozero
     44     sqlite
     45     zlib
     46   ];
     47 
     48   meta = {
     49     description = "Extracts coastline data from OpenStreetMap planet file";
     50     homepage = "https://osmcode.org/osmcoastline/";
     51     license = lib.licenses.boost;
     52     maintainers = [ lib.maintainers.sikmir ];
     53     platforms = lib.platforms.unix;
     54   };
     55 })