Skip to content
Snippets Groups Projects
Commit 2e4a57a5 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

nix: package

parent 7f5ac264
No related branches found
No related tags found
No related merge requests found
{
lib,
stdenv,
boost,
cmake,
jrl-cmakemodules,
tinyxml-2,
}:
stdenv.mkDerivation {
pname = "hpp-util";
version = "5.0.0";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./CMakeLists.txt
./doc
./include
./package.xml
./src
./tests
];
};
prePatch = ''
substituteInPlace tests/run_debug.sh.in \
--replace-fail /bin/bash ${stdenv.shell}
'';
strictDeps = true;
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [
boost
jrl-cmakemodules
tinyxml-2
];
doCheck = true;
meta = {
description = "Debugging tools for the HPP project";
homepage = "https://github.com/humanoid-path-planner/hpp-util";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.nim65s ];
};
}
......@@ -2,7 +2,9 @@
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
"nixpkgs-lib": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1717285511,
......@@ -34,18 +36,6 @@
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1717284937,
"narHash": "sha256-lIbdfCsf8LMFloheeE6N31+BMIeixqyQWbSr2vk79EQ=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
......
{
description = "Description for the project";
nixConfig = {
extra-substituters = [ "https://gepetto.cachix.org" ];
extra-trusted-public-keys = [ "gepetto.cachix.org-1:toswMl31VewC0jGkN6+gOelO2Yom0SOHzPwJMY2XiDY=" ];
};
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nim65s/nixpkgs/gepetto";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
# To import a flake module
# 1. Add foo to inputs
# 2. Add foo as a parameter to the outputs function
# 3. Add here: foo.flakeModule
];
imports = [ ];
systems = [
"x86_64-linux"
"aarch64-linux"
......@@ -23,27 +25,10 @@
"x86_64-darwin"
];
perSystem =
{ self', pkgs, ... }:
{
config,
self',
inputs',
pkgs,
system,
...
}:
{
# Per-system attributes can be defined here. The self' and inputs'
# module parameters provide easy access to attributes of the same
# system.
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
packages.default = pkgs.hello;
packages.default = pkgs.callPackage ./. { };
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
};
flake = {
# The usual flake attributes can be defined here, including system-
# agnostic ones like nixosModule and system-enumerating ones, although
# those are more easily expressed in perSystem.
};
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment