-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from humanoid-path-planner/nix
nix: move package to nixpkgs
- Loading branch information
Showing
4 changed files
with
37 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,47 @@ | ||
{ | ||
description = "The core algorithms of the Humanoid Path Planner framework"; | ||
|
||
nixConfig = { | ||
extra-substituters = [ "https://gepetto.cachix.org" ]; | ||
extra-trusted-public-keys = [ "gepetto.cachix.org-1:toswMl31VewC0jGkN6+gOelO2Yom0SOHzPwJMY2XiDY=" ]; | ||
}; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nim65s/nixpkgs/gepetto"; | ||
nixpkgs.url = "github:gepetto/nixpkgs"; | ||
flake-parts = { | ||
url = "github:hercules-ci/flake-parts"; | ||
inputs.nixpkgs-lib.follows = "nixpkgs"; | ||
}; | ||
hpp-constraints = { | ||
url = "github:humanoid-path-planner/hpp-constraints"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
inputs.flake-parts.follows = "flake-parts"; | ||
}; | ||
}; | ||
|
||
outputs = | ||
inputs@{ flake-parts, ... }: | ||
flake-parts.lib.mkFlake { inherit inputs; } { | ||
imports = [ ]; | ||
inputs: | ||
inputs.flake-parts.lib.mkFlake { inherit inputs; } { | ||
systems = [ | ||
"x86_64-linux" | ||
"aarch64-linux" | ||
"aarch64-darwin" | ||
"x86_64-darwin" | ||
]; | ||
perSystem = | ||
{ pkgs, self', ... }: | ||
{ | ||
self', | ||
pkgs, | ||
system, | ||
... | ||
}: | ||
{ | ||
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; }; | ||
packages = { | ||
inherit (pkgs) cachix; | ||
default = pkgs.callPackage ./. { | ||
hpp-constraints = inputs.hpp-constraints.packages.${system}.default; | ||
}; | ||
default = self'.packages.hpp-core; | ||
hpp-core = pkgs.hpp-core.overrideAttrs (_: { | ||
# TODO: remove this after next release | ||
patches = []; | ||
src = pkgs.lib.fileset.toSource { | ||
root = ./.; | ||
fileset = pkgs.lib.fileset.unions [ | ||
./cmake-modules | ||
./CMakeLists.txt | ||
./doc | ||
./include | ||
./package.xml | ||
./plugins | ||
./src | ||
./tests | ||
]; | ||
}; | ||
}); | ||
}; | ||
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; }; | ||
}; | ||
}; | ||
} |