nur-packages

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

package.nix (1018B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   cgal,
      7   eigen,
      8   geoflow,
      9   LAStools,
     10   nlohmann_json,
     11   pdal,
     12 }:
     13 
     14 stdenv.mkDerivation (finalAttrs: {
     15   pname = "gfp-building-reconstruction";
     16   version = "0.4.8";
     17 
     18   src = fetchFromGitHub {
     19     owner = "geoflow3d";
     20     repo = "gfp-building-reconstruction";
     21     tag = "v${finalAttrs.version}";
     22     hash = "sha256-ivr7b6Te5RoEuuyC5G9Rs08iQeDJFBhVoXSI3eFEU1w=";
     23     fetchSubmodules = true;
     24   };
     25 
     26   nativeBuildInputs = [ cmake ];
     27 
     28   buildInputs = [
     29     cgal
     30     eigen
     31     geoflow
     32     LAStools
     33     nlohmann_json
     34     pdal
     35   ];
     36 
     37   cmakeFlags = [ (lib.cmakeBool "GFP_WITH_PDAL" true) ];
     38 
     39   installPhase = ''
     40     install -Dm644 gfp_buildingreconstruction.so -t $out/lib/geoflow-plugins
     41   '';
     42 
     43   meta = {
     44     description = "Geoflow plugin for building LoD2 reconstruction from a point cloud";
     45     homepage = "https://github.com/geoflow3d/gfp-building-reconstruction";
     46     license = lib.licenses.gpl3Plus;
     47     maintainers = [ lib.maintainers.sikmir ];
     48     broken = true;
     49   };
     50 })