From 6ff53c5fcab3e2338433259b85bff3ad94914946 Mon Sep 17 00:00:00 2001 From: Arnaud TANGUY Date: Thu, 16 Jul 2026 18:35:39 +0200 Subject: [PATCH 1/2] build: remove jrl-cmakemodules v1 submodule --- .gitmodules | 3 --- cmake | 1 - 2 files changed, 4 deletions(-) delete mode 160000 cmake diff --git a/.gitmodules b/.gitmodules index 2b7a4fe..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "cmake"] - path = cmake - url = https://github.com/jrl-umi3218/jrl-cmakemodules.git diff --git a/cmake b/cmake deleted file mode 160000 index 9296127..0000000 --- a/cmake +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9296127f1fdfba0e34f3d0ecb6cb23ee220aa02a From 457dbe67aaf822d1135272995f10ef60a5c18aa0 Mon Sep 17 00:00:00 2001 From: Arnaud TANGUY Date: Thu, 16 Jul 2026 18:46:27 +0200 Subject: [PATCH 2/2] build: switch to jrl-cmakemodulesv2, add Nix flake --- .github/dependabot.yml | 6 + .github/workflows/nix.yml | 39 ++ .github/workflows/update-flake-lock.yml | 32 + .gitignore | 4 + .mergify.yml | 27 + .pre-commit-config.yaml | 40 ++ CMakeLists.txt | 24 +- cmake/get-jrl-cmakemodules.cmake | 48 ++ flake.lock | 768 ++++++++++++++++++++++++ flake.nix | 17 + 10 files changed, 994 insertions(+), 11 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/nix.yml create mode 100644 .github/workflows/update-flake-lock.yml create mode 100644 .gitignore create mode 100644 .mergify.yml create mode 100644 .pre-commit-config.yaml create mode 100644 cmake/get-jrl-cmakemodules.cmake create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8ac6b8c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..a0ac072 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,39 @@ +name: "CI - Nix" +on: + push: + branches: + - devel + - master + - main + pull_request: + branches: + - devel + - master + - main +jobs: + nix: + runs-on: "${{ matrix.os }}-latest" + strategy: + fail-fast: false + matrix: + os: [ubuntu] + steps: + - uses: actions/checkout@v6 + - uses: cachix/install-nix-action@v31 + - uses: cachix/cachix-action@v17 + with: + name: mc-rtc-nix + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + extraPullNames: "ros,gepetto" + - run: nix flake check -L + - run: nix build -L + check: + if: always() + name: check-macos-linux-nix + runs-on: ubuntu-latest + needs: + - nix + steps: + - uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml new file mode 100644 index 0000000..5d76fd5 --- /dev/null +++ b/.github/workflows/update-flake-lock.yml @@ -0,0 +1,32 @@ +name: update-flake-lock +on: + workflow_dispatch: + schedule: + # runs at 2:00 AM on the 25th day of every month + - cron: '0 2 25 * *' +jobs: + update-flake-inputs: + runs-on: ubuntu-slim + permissions: + contents: write + pull-requests: write + steps: + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ secrets.MC_RTC_NIX_APP_ID }} + private-key: ${{ secrets.MC_RTC_NIX_APP_PRIVATE_KEY }} + - name: Checkout repository + uses: actions/checkout@v6 + with: + token: ${{ steps.app-token.outputs.token }} + - name: Setup Nix + uses: cachix/install-nix-action@v31 + - name: Update flake inputs + uses: mic92/update-flake-inputs@v1 + with: + github-token: ${{ steps.app-token.outputs.token }} + pr-labels: 'no-changelog' + git-author-name: 'arntanguy[bot]' + git-author-email: '67139+arntanguy@users.noreply.github.com' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ae196b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build +build/ +.direnv/ +result diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..fa73ec0 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,27 @@ +pull_request_rules: + # automatically queues when a bot pr succeeds (see queue_rules) + - name: merge [bot] PRs when CI pass + conditions: + - or: + - author = dependabot[bot] + - author = gepetto-flake-updater[bot] + - author = mc-rtc-nixpkgs-flake-updater[bot] + - author = github-actions[bot] + - author = pre-commit-ci[bot] + actions: + queue: + + # runs when commenting @mergifyio queue + - name: queue PRs with "queue" label when all CI checks pass + conditions: + - label = queued + actions: + queue: + +# ensure that required CI jobs suceed +queue_rules: + - name: default + merge_conditions: + - check-success = "check-macos-linux-nix" +merge_queue: + queue_controls_comment: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2a95010 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,40 @@ +ci: + autoupdate_schedule: quarterly +repos: + - repo: https://github.com/BlankSpruce/gersemi + rev: 0.26.1 + hooks: + - id: gersemi + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.15.9 + hooks: + - id: ruff-check + - id: ruff-format + - repo: https://github.com/pappasam/toml-sort + rev: v0.24.4 + hooks: + - id: toml-sort-fix + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v22.1.2 + hooks: + - id: clang-format + args: + - --style=Google + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: check-added-large-files + - id: check-ast + - id: check-executables-have-shebangs + - id: check-json + - id: check-merge-conflict + - id: check-symlinks + - id: check-toml + - id: check-yaml + - id: debug-statements + - id: destroyed-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: mixed-line-ending + - id: trailing-whitespace diff --git a/CMakeLists.txt b/CMakeLists.txt index d60d50d..12a9b27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,19 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.22) -set(PROJECT_NAME footsteps_planner_plugin) -set(PROJECT_DESCRIPTION "") -set(PROJECT_URL "") -set(PROJECT_VERSION 0.0.1) -set(PROJECT_USE_CMAKE_EXPORT FALSE) -set(CMAKE_CXX_STANDARD 11) -set(CXX_DISABLE_WERROR True) +set(CMAKE_CXX_STANDARD 17) -include(cmake/base.cmake) +include(cmake/get-jrl-cmakemodules.cmake) -project(${PROJECT_NAME} LANGUAGES CXX VERSION ${PROJECT_VERSION}) -option(AUTOLOAD_${PROJECT_NAME}_PLUGIN "Automatically load ${PROJECT_NAME} plugin" OFF) +project(footsteps_planner_plugin + VERSION 0.0.1 + LANGUAGES CXX +) +jrl_configure_defaults() + +########### +# OPTIONS +########### +jrl_option(AUTOLOAD_${PROJECT_NAME}_PLUGIN "Automatically load ${PROJECT_NAME} plugin" OFF) # Find mc_rtc if we are not building inside mc_rtc itself if(NOT TARGET mc_rtc::mc_control) diff --git a/cmake/get-jrl-cmakemodules.cmake b/cmake/get-jrl-cmakemodules.cmake new file mode 100644 index 0000000..881863c --- /dev/null +++ b/cmake/get-jrl-cmakemodules.cmake @@ -0,0 +1,48 @@ +# Get jrl-cmakemodules package + +# Upstream (https://github.com/jrl-umi3218/jrl-cmakemodules), the new v2 version +# is located in a subfolder, We need to set this variable to bypass the v1 and +# load the v2. +set(JRL_CMAKEMODULES_USE_V2 + ON + CACHE BOOL "Use jrl-cmakemodules v2 on https://github.com/jrl-umi3218/jrl-cmakemodules") + +# Option 1: pass -DJRL_CMAKEMODULES_SOURCE_DIR=... to cmake command line +if(JRL_CMAKEMODULES_SOURCE_DIR) + message( + STATUS + "JRL_CMAKEMODULES_SOURCE_DIR variable set, adding jrl-cmakemodules from source directory: ${JRL_CMAKEMODULES_SOURCE_DIR}" + ) + add_subdirectory(${JRL_CMAKEMODULES_SOURCE_DIR} jrl-cmakemodules) + return() +endif() + +# Option 2: use JRL_CMAKEMODULES_SOURCE_DIR environment variable (pixi might +# unset it, prefer option 1) +if(ENV{JRL_CMAKEMODULES_SOURCE_DIR}) + message( + STATUS + "JRL_CMAKEMODULES_SOURCE_DIR environement variable set, adding jrl-cmakemodules from source directory: $ENV{JRL_CMAKEMODULES_SOURCE_DIR}" + ) + add_subdirectory($ENV{JRL_CMAKEMODULES_SOURCE_DIR} jrl-cmakemodules) + return() +endif() + +# Option 3: Try to look for the installed package +message(STATUS "Looking for jrl-cmakemodules (version: >=2.1.0) package...") +find_package(jrl-cmakemodules 2.1.0 CONFIG QUIET) + +# If we have the package, we are done here. +if(jrl-cmakemodules_FOUND) + message(STATUS "Found jrl-cmakemodules (version: ${jrl-cmakemodules_VERSION}) package.") + return() +endif() + +# Option 4: Fallback to FetchContent +message(STATUS "Fetching jrl-cmakemodules using FetchContent...") +include(FetchContent) +FetchContent_Declare( + jrl-cmakemodules + GIT_REPOSITORY https://github.com/jrl-umi3218/jrl-cmakemodules + GIT_TAG master) +FetchContent_MakeAvailable(jrl-cmakemodules) diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..333c245 --- /dev/null +++ b/flake.lock @@ -0,0 +1,768 @@ +{ + "nodes": { + "ccache-trigger": { + "locked": { + "lastModified": 1657739266, + "narHash": "sha256-vLy8GQr0noEcoA+jX24FgUVBA/poV36zDWAUChN3hIY=", + "owner": "boolean-option", + "repo": "false", + "rev": "d06b4794a134686c70a1325df88a6e6768c6b212", + "type": "github" + }, + "original": { + "owner": "boolean-option", + "repo": "false", + "type": "github" + } + }, + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1778716662, + "narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_2": { + "inputs": { + "nixpkgs-lib": [ + "mc-rtc-nix", + "gepetto", + "system-manager", + "userborn", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1768135262, + "narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flakoboros": { + "inputs": { + "flake-parts": "flake-parts", + "nix-ros-overlay": "nix-ros-overlay", + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "nix-ros-overlay", + "nixpkgs" + ], + "systems": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "nix-ros-overlay", + "flake-utils", + "systems" + ], + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1782042109, + "narHash": "sha256-oDCl/rcvJVTcf6G2ag3YdZSMHDVBBmoXTysY5yzq+Dk=", + "owner": "gepetto", + "repo": "flakoboros", + "rev": "fc7d44063fa05f1a78c97c63b124c1da2862331c", + "type": "github" + }, + "original": { + "owner": "gepetto", + "repo": "flakoboros", + "type": "github" + } + }, + "gazebros2nix": { + "inputs": { + "flake-parts": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "flake-parts" + ], + "flakoboros": "flakoboros", + "nix-ros-overlay": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "nix-ros-overlay" + ], + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "nixpkgs" + ], + "pyproject-build-systems": "pyproject-build-systems", + "pyproject-nix": "pyproject-nix", + "rosdistro": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "nix-ros-overlay", + "rosdistro" + ], + "systems": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "systems" + ], + "treefmt-nix": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "treefmt-nix" + ], + "uv2nix": "uv2nix" + }, + "locked": { + "lastModified": 1782566589, + "narHash": "sha256-vXVLP31bnnk8KUBUV88Ms2R6P06wdQPZzsXgR6iZ5FI=", + "owner": "gepetto", + "repo": "gazebros2nix", + "rev": "6e51068e9e9fec8e960f68911127ad64b417bf6b", + "type": "github" + }, + "original": { + "owner": "gepetto", + "repo": "gazebros2nix", + "type": "github" + } + }, + "gepetto": { + "inputs": { + "flake-parts": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flake-parts" + ], + "flakoboros": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros" + ], + "gazebros2nix": "gazebros2nix", + "home-manager": "home-manager", + "nix-ros-overlay": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "nix-ros-overlay" + ], + "nix-system-graphics": "nix-system-graphics", + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "nixpkgs" + ], + "system-manager": "system-manager", + "systems": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "systems" + ], + "treefmt-nix": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "treefmt-nix" + ] + }, + "locked": { + "lastModified": 1783001154, + "narHash": "sha256-kPrfWL8YePlBRv0Sz2J4Uwn6C/HlhM3WZG96Y6TEqeU=", + "owner": "gepetto", + "repo": "nix", + "rev": "7a2bf9834c160a05872d0f77eeadc9362cb6f014", + "type": "github" + }, + "original": { + "owner": "gepetto", + "repo": "nix", + "type": "github" + } + }, + "gitignore": { + "inputs": { + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "system-manager", + "userborn", + "pre-commit-hooks-nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1709087332, + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", + "owner": "hercules-ci", + "repo": "gitignore.nix", + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "gitignore.nix", + "type": "github" + } + }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1779506708, + "narHash": "sha256-QOD/CNm196nCJRheux/URi4/HE66fthdOMqCJoPP1Y0=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "3ee51fbdac8c8bdfe1e7e1fcaba6520a563f394f", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-25.11", + "repo": "home-manager", + "type": "github" + } + }, + "jrl-cmakemodulesv2": { + "inputs": { + "gepetto": [ + "mc-rtc-nix", + "gepetto" + ] + }, + "locked": { + "lastModified": 1783605492, + "narHash": "sha256-CJPPNoyLYZJkaC0X8yxxY+jw7fUpN67tWQ7mdZlMvNc=", + "owner": "jrl-umi3218", + "repo": "jrl-cmakemodules", + "rev": "e33225ea9330bf7217a2e38852d8a38ae028085f", + "type": "github" + }, + "original": { + "owner": "jrl-umi3218", + "repo": "jrl-cmakemodules", + "type": "github" + } + }, + "make-shell": { + "inputs": { + "flake-compat": "flake-compat_2" + }, + "locked": { + "lastModified": 1733933815, + "narHash": "sha256-9JjM7eT66W4NJAXpGUsdyAFXhBxFWR2Z9LZwUa7Hli0=", + "owner": "nicknovitski", + "repo": "make-shell", + "rev": "ffeceae9956df03571ea8e96ef77c2924f13a63c", + "type": "github" + }, + "original": { + "owner": "nicknovitski", + "repo": "make-shell", + "type": "github" + } + }, + "mc-rtc-nix": { + "inputs": { + "ccache-trigger": "ccache-trigger", + "flake-parts": [ + "mc-rtc-nix", + "gepetto", + "flake-parts" + ], + "flakoboros": [ + "mc-rtc-nix", + "gepetto", + "flakoboros" + ], + "gepetto": "gepetto", + "jrl-cmakemodulesv2": "jrl-cmakemodulesv2", + "make-shell": "make-shell", + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "nixpkgs" + ], + "private-trigger": "private-trigger", + "systems": [ + "mc-rtc-nix", + "gepetto", + "systems" + ], + "with-python-trigger": "with-python-trigger", + "with-ros-trigger": "with-ros-trigger" + }, + "locked": { + "lastModified": 1784220297, + "narHash": "sha256-FSz97zOtM/M4Bzduxiz4Pi9gffNSwlOoo88jpiOTrxE=", + "path": "/home/arnaud/devel/mc-rtc-nix/nixpkgs", + "type": "path" + }, + "original": { + "path": "/home/arnaud/devel/mc-rtc-nix/nixpkgs", + "type": "path" + } + }, + "nix-ros-overlay": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "rosdistro": "rosdistro" + }, + "locked": { + "lastModified": 1781900693, + "narHash": "sha256-4KFk+S9ZbMonItYsdPtZjwESsgrCEpXGDa6rosDxLGs=", + "owner": "lopsided98", + "repo": "nix-ros-overlay", + "rev": "fb296510db68c2e760980ab8c6daf6ded9060213", + "type": "github" + }, + "original": { + "owner": "lopsided98", + "ref": "develop", + "repo": "nix-ros-overlay", + "type": "github" + } + }, + "nix-system-graphics": { + "inputs": { + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1763296639, + "narHash": "sha256-K9JBscC7ApwCnl0wR0sVkxrKFsoDYVqXN5fOujvyBWA=", + "owner": "soupglasses", + "repo": "nix-system-graphics", + "rev": "ac37f0f3ec0cb15d63a520918433c794d01d9dac", + "type": "github" + }, + "original": { + "owner": "soupglasses", + "repo": "nix-system-graphics", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1778869304, + "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d233902339c02a9c334e7e593de68855ad26c4cb", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1777168982, + "narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "pre-commit-hooks-nix": { + "inputs": { + "flake-compat": [ + "mc-rtc-nix", + "gepetto", + "system-manager", + "userborn", + "flake-compat" + ], + "gitignore": "gitignore", + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "system-manager", + "userborn", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1769069492, + "narHash": "sha256-Efs3VUPelRduf3PpfPP2ovEB4CXT7vHf8W+xc49RL/U=", + "owner": "cachix", + "repo": "pre-commit-hooks.nix", + "rev": "a1ef738813b15cf8ec759bdff5761b027e3e1d23", + "type": "github" + }, + "original": { + "owner": "cachix", + "repo": "pre-commit-hooks.nix", + "type": "github" + } + }, + "private-trigger": { + "locked": { + "lastModified": 1657739266, + "narHash": "sha256-vLy8GQr0noEcoA+jX24FgUVBA/poV36zDWAUChN3hIY=", + "owner": "boolean-option", + "repo": "false", + "rev": "d06b4794a134686c70a1325df88a6e6768c6b212", + "type": "github" + }, + "original": { + "owner": "boolean-option", + "repo": "false", + "type": "github" + } + }, + "pyproject-build-systems": { + "inputs": { + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "nixpkgs" + ], + "pyproject-nix": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "pyproject-nix" + ], + "uv2nix": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "uv2nix" + ] + }, + "locked": { + "lastModified": 1782093830, + "narHash": "sha256-6gmEVe69+KlRkZD4PEEV5xAlB9CB0Y9TiuEgQjDrKTQ=", + "owner": "pyproject-nix", + "repo": "build-system-pkgs", + "rev": "430680a19bc85a3bda55f12e4cc1a1aadcf2e478", + "type": "github" + }, + "original": { + "owner": "pyproject-nix", + "repo": "build-system-pkgs", + "type": "github" + } + }, + "pyproject-nix": { + "inputs": { + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1782089418, + "narHash": "sha256-LRD1SuQWr49fGq3A+8GLXfsLE2xqIpQA440YDZwms3M=", + "owner": "pyproject-nix", + "repo": "pyproject.nix", + "rev": "43f0b40edd0a74c63f66b7b48d969ae6b740d611", + "type": "github" + }, + "original": { + "owner": "pyproject-nix", + "repo": "pyproject.nix", + "type": "github" + } + }, + "root": { + "inputs": { + "mc-rtc-nix": "mc-rtc-nix" + } + }, + "rosdistro": { + "flake": false, + "locked": { + "lastModified": 1781238695, + "narHash": "sha256-Sk8KQa9ryFrkdGGZ64sNdqoVqiGmC+IAAi3qzE7zn8s=", + "owner": "ros", + "repo": "rosdistro", + "rev": "a0e7ccc6f866a081acc0656d9cd03cda7acc6853", + "type": "github" + }, + "original": { + "owner": "ros", + "repo": "rosdistro", + "type": "github" + } + }, + "system-manager": { + "inputs": { + "flake-compat": "flake-compat", + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "nixpkgs" + ], + "userborn": "userborn" + }, + "locked": { + "lastModified": 1778508009, + "narHash": "sha256-mp63mt+EwfKiVZX+4BC/59g5oTbsXNtSYESVci3opso=", + "owner": "numtide", + "repo": "system-manager", + "rev": "dc1baae12eed1758755e73f8aff7fca5502c6e9f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "system-manager", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "flakoboros", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1780220602, + "narHash": "sha256-eynAfOmbmxJnkp7YewvCEbShNnnYJ9gLLqkzsYtBPeM=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "db947814a175b7ca6ded66e21383d938df01c227", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, + "userborn": { + "inputs": { + "flake-compat": [ + "mc-rtc-nix", + "gepetto", + "system-manager", + "flake-compat" + ], + "flake-parts": "flake-parts_2", + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "system-manager", + "nixpkgs" + ], + "pre-commit-hooks-nix": "pre-commit-hooks-nix", + "systems": "systems_2" + }, + "locked": { + "lastModified": 1770377964, + "narHash": "sha256-q2pnlX2IW0kg80GLFnwWd/GigIpkuZnyKPLhrgJql3E=", + "owner": "jfroche", + "repo": "userborn", + "rev": "55c2cd7952c207a62736a5bbd9499ea73da18d24", + "type": "github" + }, + "original": { + "owner": "jfroche", + "ref": "system-manager", + "repo": "userborn", + "type": "github" + } + }, + "uv2nix": { + "inputs": { + "nixpkgs": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "nixpkgs" + ], + "pyproject-nix": [ + "mc-rtc-nix", + "gepetto", + "gazebros2nix", + "pyproject-nix" + ] + }, + "locked": { + "lastModified": 1781810314, + "narHash": "sha256-PQfvfKWaBvCysdHFUO5GewwvwIqI/WL6OcrJhDSUdbc=", + "owner": "pyproject-nix", + "repo": "uv2nix", + "rev": "14aa44100859a44144878fe079f8089d3fa4dc4e", + "type": "github" + }, + "original": { + "owner": "pyproject-nix", + "repo": "uv2nix", + "type": "github" + } + }, + "with-python-trigger": { + "locked": { + "lastModified": 1657739253, + "narHash": "sha256-L9eyTL7njtPBUYmZRYFKCzQFDgua9U9oE7UwCzjZfl8=", + "owner": "boolean-option", + "repo": "true", + "rev": "6ecb49143ca31b140a5273f1575746ba93c3f698", + "type": "github" + }, + "original": { + "owner": "boolean-option", + "repo": "true", + "type": "github" + } + }, + "with-ros-trigger": { + "locked": { + "lastModified": 1657739253, + "narHash": "sha256-L9eyTL7njtPBUYmZRYFKCzQFDgua9U9oE7UwCzjZfl8=", + "owner": "boolean-option", + "repo": "true", + "rev": "6ecb49143ca31b140a5273f1575746ba93c3f698", + "type": "github" + }, + "original": { + "owner": "boolean-option", + "repo": "true", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b7a9305 --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "footsteps-planner-plugin"; + + #inputs.mc-rtc-nix.url = "github:mc-rtc/nixpkgs"; + inputs.mc-rtc-nix.url = "path:/home/arnaud/devel/mc-rtc-nix/nixpkgs"; + + outputs = + inputs: + inputs.mc-rtc-nix.lib.mkFlakoboros inputs ( + { lib, ... }: + { + overrideAttrs.footsteps-planner-plugin = { + src = lib.cleanSource ./.; + }; + } + ); +}