nur-packages

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

package.nix (1047B)


      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   __structuredAttrs = true;
     19 
     20   src = fetchFromGitHub {
     21     owner = "geoflow3d";
     22     repo = "gfp-building-reconstruction";
     23     tag = "v${finalAttrs.version}";
     24     hash = "sha256-ivr7b6Te5RoEuuyC5G9Rs08iQeDJFBhVoXSI3eFEU1w=";
     25     fetchSubmodules = true;
     26   };
     27 
     28   nativeBuildInputs = [ cmake ];
     29 
     30   buildInputs = [
     31     cgal
     32     eigen
     33     geoflow
     34     LAStools
     35     nlohmann_json
     36     pdal
     37   ];
     38 
     39   cmakeFlags = [ (lib.cmakeBool "GFP_WITH_PDAL" true) ];
     40 
     41   installPhase = ''
     42     install -Dm644 gfp_buildingreconstruction.so -t $out/lib/geoflow-plugins
     43   '';
     44 
     45   meta = {
     46     description = "Geoflow plugin for building LoD2 reconstruction from a point cloud";
     47     homepage = "https://github.com/geoflow3d/gfp-building-reconstruction";
     48     license = lib.licenses.gpl3Plus;
     49     maintainers = [ lib.maintainers.sikmir ];
     50     broken = true;
     51   };
     52 })