nur-packages

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

default.nix (792B)


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