Skip to content
Snippets Groups Projects
flake.nix 1.12 KiB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
  description = "Classes for manipulation planning";

  inputs = {
    nixpkgs.url = "github:gepetto/nixpkgs";
Guilhem Saurel's avatar
Guilhem Saurel committed
    flake-parts = {
      url = "github:hercules-ci/flake-parts";
      inputs.nixpkgs-lib.follows = "nixpkgs";
    };
  };

  outputs =
    inputs:
    inputs.flake-parts.lib.mkFlake { inherit inputs; } {
      systems = [
        "x86_64-linux"
        "aarch64-linux"
        "aarch64-darwin"
        "x86_64-darwin"
      ];
      perSystem =
        { pkgs, self', ... }:
          devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
Guilhem Saurel's avatar
Guilhem Saurel committed
          packages = {
            default = self'.packages.hpp-manipulation;
            hpp-manipulation = pkgs.hpp-manipulation.overrideAttrs (_: {
              src = pkgs.lib.fileset.toSource {
                root = ./.;
                fileset = pkgs.lib.fileset.unions [
                  ./CMakeLists.txt
                  ./doc
                  ./include
                  ./package.xml
                  ./plugins
                  ./src
                  ./tests
                ];
              };
            });
Guilhem Saurel's avatar
Guilhem Saurel committed
          };