-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
88 lines (86 loc) · 2.9 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
description = "Practicals for Humanoid Path Planner software";
inputs = {
nixpkgs.url = "github:gepetto/nixpkgs/hpp";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
gerard-bauzil = {
url = "github:gepetto/gerard-bauzil/devel";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
gtsp-laas = {
url = "git+https://gitlab.laas.fr/gsaurel/gtsp-laas?ref=nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
hpp-practicals = {
url = "github:nim65s/hpp-practicals/gtsp";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = inputs.nixpkgs.lib.systems.flakeExposed;
perSystem =
{
pkgs,
self',
system,
...
}:
{
devShells.default = pkgs.mkShell {
env = {
ROS_PACKAGE_PATH = pkgs.lib.concatStringsSep ":" (
map (p: "${p}/share") [
self'.packages.gerard-bauzil
self'.packages.hpp-practicals
self'.packages.pmb2-meshes
self'.packages.tiago-data
self'.packages.tiago-meshes
self'.packages.hey5-meshes
]
);
HPP_PLUGIN_DIRS = pkgs.lib.makeLibraryPath [
pkgs.hpp-manipulation
pkgs.hpp-manipulation-corba
];
};
packages = [
(pkgs.python3.withPackages (_: [
inputs.gtsp-laas.packages.${system}.gtsp-laas
self'.packages.default
]))
self'.packages.gepetto-gui
];
};
packages = {
inherit (inputs.gerard-bauzil.packages.${system}) gerard-bauzil;
inherit (inputs.gtsp-laas.packages.${system}) gtsp-laas;
inherit (inputs.hpp-practicals.packages.${system}) hpp-practicals;
default = pkgs.python3Packages.toPythonModule self'.packages.hpp-nix;
gepetto-gui =
with pkgs.python3Packages;
toPythonApplication (
gepetto-viewer.override {
plugins = [
gepetto-viewer-corba
hpp-gepetto-viewer
hpp-gui
];
}
);
hey5-meshes = pkgs.callPackage ./hey5-meshes.nix { };
hpp-nix = pkgs.callPackage ./hpp-nix.nix { };
pmb2-meshes = pkgs.callPackage ./pmb2-meshes.nix { };
tiago-data = pkgs.callPackage ./tiago-data.nix { };
tiago-meshes = pkgs.callPackage ./tiago-meshes.nix { };
};
};
};
}