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