File tree Expand file tree Collapse file tree 1 file changed +26
-20
lines changed Expand file tree Collapse file tree 1 file changed +26
-20
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
inputs = {
3
3
nixpkgs . url = "github:NixOS/nixpkgs/nixos-unstable" ;
4
+ utils . url = "github:Gepetto/nix-lib" ;
4
5
5
6
odri-masterboard-sdk = {
6
7
# FIXME update after https://github.com/open-dynamic-robot-initiative/master-board/pull/173
10
11
} ;
11
12
12
13
outputs =
13
- { nixpkgs , odri-masterboard-sdk , ... } :
14
+ {
15
+ nixpkgs ,
16
+ utils ,
17
+ odri-masterboard-sdk ,
18
+ ...
19
+ } :
14
20
let
15
21
pkgs = nixpkgs . legacyPackages . x86_64-linux ;
16
22
sdk = odri-masterboard-sdk . packages . x86_64-linux . default ;
23
+ rosVersion = utils . lib . rosVersion pkgs ;
17
24
in
18
25
{
19
- packages . x86_64-linux . default =
20
- pkgs . stdenv . mkDerivation rec {
21
- pname = "odri-control" ;
22
- version = "1.0.1" ;
23
-
24
- src = builtins . path {
25
- name = pname ;
26
- path = ./. ;
27
- } ;
26
+ packages . x86_64-linux . default = pkgs . stdenv . mkDerivation rec {
27
+ pname = "odri-control" ;
28
+ version = rosVersion ./package.xml ;
28
29
29
- nativeBuildInputs =
30
- [ sdk ]
31
- ++ ( with pkgs ; [
32
- cmake
33
- yaml-cpp
34
- eigen
35
- python312Packages . eigenpy
36
- python312Packages . boost
37
- python312
38
- ] ) ;
30
+ src = builtins . path {
31
+ name = pname ;
32
+ path = ./. ;
39
33
} ;
34
+
35
+ nativeBuildInputs =
36
+ [ sdk ]
37
+ ++ ( with pkgs ; [
38
+ cmake
39
+ yaml-cpp
40
+ eigen
41
+ python312Packages . eigenpy
42
+ python312Packages . boost
43
+ python312
44
+ ] ) ;
45
+ } ;
40
46
} ;
41
47
}
You can’t perform that action at this time.
0 commit comments