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 committed Jul 4, 2024
2 parents af5f401 + 445673e commit d223d7d
Show file tree
Hide file tree
Showing 8 changed files with 398 additions and 3 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 }}
File renamed without changes.
59 changes: 59 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
stdenv,
cmake,
hpp-core,
hpp-template-corba,
pkg-config,
psmisc,
python3Packages,
}:

python3Packages.buildPythonPackage {
pname = "hpp-corbaserver";
version = "5.0.0";
pyproject = false;

src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./cmake-modules
./CMakeLists.txt
./doc
./idl
./include
./package.xml
./src
./tests
];
};

prePatch = ''
substituteInPlace tests/hppcorbaserver.sh \
--replace-fail /bin/bash ${stdenv.shell}
'';

nativeBuildInputs = [
cmake
pkg-config
];
propagatedBuildInputs = [
hpp-core
hpp-template-corba
python3Packages.omniorbpy
];
checkInputs = [ psmisc ];

enableParallelBuilding = false;

doCheck = true;

pythonImportsCheck = [ "hpp.corbaserver" ];

meta = {
description = "Corba server for Humanoid Path Planner applications";
homepage = "https://github.com/humanoid-path-planner/hpp-corbaserver";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.nim65s ];
};
}
256 changes: 256 additions & 0 deletions flake.lock

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

Loading

0 comments on commit d223d7d

Please sign in to comment.