Skip to content

Commit

Permalink
Merge branch 'devel' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s authored Jul 4, 2024
2 parents a179712 + e986977 commit 6a372f0
Show file tree
Hide file tree
Showing 6 changed files with 619 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Nix CI"

on: [pull_request, push]

jobs:
tests:
name: "Nix build on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}-latest"
strategy:
matrix:
os: [ubuntu]
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix --accept-flake-config build -L
- run: nix --accept-flake-config run .#cachix push gepetto $(readlink result)
if: github.repository_owner == 'humanoid-path-planner'
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
53 changes: 53 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
lib,
stdenv,
cmake,
hpp-gepetto-viewer,
hpp-manipulation-corba,
libsForQt5,
pkg-config,
}:

stdenv.mkDerivation {
pname = "hpp-tutorial";
version = "5.0.0";

src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./CMakeLists.txt
./doc
./include
./Media
./meshes
./package.xml
./rviz
./script
./src
./srdf
./urdf
];
};

strictDeps = true;

nativeBuildInputs = [
cmake
libsForQt5.wrapQtAppsHook
pkg-config
];
buildInputs = [ libsForQt5.qtbase ];
propagatedBuildInputs = [
hpp-gepetto-viewer
hpp-manipulation-corba
];

doCheck = true;

meta = {
description = "Tutorial for humanoid path planner platform";
homepage = "https://github.com/humanoid-path-planner/hpp_tutorial";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.nim65s ];
};
}
Loading

0 comments on commit 6a372f0

Please sign in to comment.