Skip to content

Commit ec3bee6

Browse files
committed
Merge branch 'devel' into pre-commit-ci-update-config
2 parents 252fbda + 31f3802 commit ec3bee6

File tree

6 files changed

+713
-2
lines changed

6 files changed

+713
-2
lines changed

.github/workflows/nix.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Nix CI"
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
name: "Nix build on ${{ matrix.os }}"
8+
runs-on: "${{ matrix.os }}-latest"
9+
strategy:
10+
matrix:
11+
os: [ubuntu]
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: DeterminateSystems/nix-installer-action@main
15+
- uses: DeterminateSystems/magic-nix-cache-action@main
16+
- run: nix --accept-flake-config build -L
17+
- run: nix --accept-flake-config run .#cachix push gepetto $(readlink result)
18+
if: github.repository_owner == 'humanoid-path-planner'
19+
env:
20+
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

default.nix

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
lib,
3+
cmake,
4+
hpp-gepetto-viewer,
5+
hpp-gui,
6+
hpp-plot,
7+
pkg-config,
8+
python3Packages,
9+
libsForQt5,
10+
}:
11+
12+
python3Packages.buildPythonPackage {
13+
pname = "hpp-practicals";
14+
version = "5.0.0";
15+
pyproject = false;
16+
17+
src = lib.fileset.toSource {
18+
root = ./.;
19+
fileset = lib.fileset.unions [
20+
./CMakeLists.txt
21+
./docker
22+
./instructions
23+
./meshes
24+
./package.xml
25+
./script
26+
./slides
27+
./src
28+
./srdf
29+
./update
30+
./urdf
31+
];
32+
};
33+
34+
strictDeps = true;
35+
36+
nativeBuildInputs = [
37+
cmake
38+
libsForQt5.wrapQtAppsHook
39+
pkg-config
40+
];
41+
buildInputs = [ libsForQt5.qtbase ];
42+
propagatedBuildInputs = [
43+
hpp-gepetto-viewer
44+
hpp-gui
45+
hpp-plot
46+
];
47+
48+
doCheck = true;
49+
50+
meta = {
51+
description = "Practicals for Humanoid Path Planner software";
52+
homepage = "https://github.com/humanoid-path-planner/hpp-practicals";
53+
license = lib.licenses.bsd2;
54+
maintainers = [ lib.maintainers.nim65s ];
55+
};
56+
}

0 commit comments

Comments
 (0)