Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
hpp-util
Commits
2e4a57a5
Commit
2e4a57a5
authored
8 months ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
nix: package
parent
7f5ac264
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
default.nix
+48
-0
48 additions, 0 deletions
default.nix
flake.lock
+3
-13
3 additions, 13 deletions
flake.lock
flake.nix
+13
-28
13 additions, 28 deletions
flake.nix
with
64 additions
and
41 deletions
default.nix
0 → 100644
+
48
−
0
View file @
2e4a57a5
{
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
];
};
}
This diff is collapsed.
Click to expand it.
flake.lock
+
3
−
13
View file @
2e4a57a5
...
...
@@ -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",
...
...
This diff is collapsed.
Click to expand it.
flake.nix
+
13
−
28
View file @
2e4a57a5
{
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.
};
};
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment