nur-packages

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

default.nix (881B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   pandoc,
      7   boost,
      8   bzip2,
      9   expat,
     10   libosmium,
     11   libpqxx,
     12   libyamlcpp,
     13   protozero,
     14   zlib,
     15 }:
     16 
     17 stdenv.mkDerivation (finalAttrs: {
     18   pname = "osmdbt";
     19   version = "0.6";
     20 
     21   src = fetchFromGitHub {
     22     owner = "openstreetmap";
     23     repo = "osmdbt";
     24     rev = "v${finalAttrs.version}";
     25     hash = "sha256-hXwWOOfvBrJqjMXsG/59J83PHwZqIKm+2B00QYoJD80=";
     26   };
     27 
     28   nativeBuildInputs = [
     29     cmake
     30     pandoc
     31   ];
     32 
     33   buildInputs = [
     34     boost
     35     bzip2
     36     expat
     37     libosmium
     38     libpqxx
     39     libyamlcpp
     40     protozero
     41     zlib
     42   ];
     43 
     44   cmakeFlags = [ (lib.cmakeBool "BUILD_PLUGIN" false) ];
     45 
     46   meta = {
     47     description = "OSM Database Replication Tools";
     48     homepage = "https://github.com/openstreetmap/osmdbt";
     49     license = lib.licenses.gpl3Plus;
     50     maintainers = [ lib.maintainers.sikmir ];
     51     platforms = lib.platforms.unix;
     52   };
     53 })