Skip to content

Commit

Permalink
flake: Use pinocchio default joint collection
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s authored and florent-lamiraux committed Jan 17, 2025
1 parent a6e634a commit 0d29e0e
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 1 deletion.
50 changes: 50 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 30 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,44 @@
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/refs/pull/362956/head";
# we need https://github.com/humanoid-path-planner/hpp-pinocchio/pull/223
hpp-core = {
url = "github:humanoid-path-planner/hpp-core/devel";
inputs.flake-parts.follows = "flake-parts";
inputs.nixpkgs.follows = "nixpkgs";
};
hpp-pinocchio = {
url = "github:humanoid-path-planner/hpp-pinocchio/devel";
inputs.flake-parts.follows = "flake-parts";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = inputs.nixpkgs.lib.systems.flakeExposed;
perSystem =
{ pkgs, self', ... }:
{
pkgs,
self',
system,
...
}:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(_super: prev: {
hpp-core = prev.hpp-core.overrideAttrs {
inherit (inputs.hpp-core.packages.${system}.hpp-core) src;
};
hpp-pinocchio = prev.hpp-pinocchio.overrideAttrs {
inherit (inputs.hpp-pinocchio.packages.${system}.hpp-pinocchio) src;
};
})
];
};
apps.default = {
type = "app";
program = pkgs.python3.withPackages (_: [ self'.packages.default ]);
Expand Down

0 comments on commit 0d29e0e

Please sign in to comment.