-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
52 lines (52 loc) · 1.38 KB
/
flake.nix
File metadata and controls
52 lines (52 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
};
buildInputs = with pkgs; [
# stdenv.cc.cc
openssl
zlib
libGL
glib
cmake
mkcert
vulkan-headers
vulkan-loader
vulkan-tools
pcl
eigen
boost
ghc_filesystem
opencv
libjpeg_turbo
xorg.libX11
];
in {
devShells.default = pkgs.mkShell {
packages = [
pkgs.micromamba
pkgs.cmake
pkgs.pcl
pkgs.basedpyright
pkgs.cyclonedds
];
shellHook = ''
export NIX_LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath buildInputs}:$LD_LIBRARY_PATH
export CMAKE_PREFIX_PATH=${pkgs.pcl}/share/pcl-1.14:${pkgs.eigen}/share/eigen3/cmake:${pkgs.boost}/share/boost/cmake:${pkgs.opencv}/lib/cmake/opencv4:$CMAKE_PREFIX_PATH
export CYCLONEDDS_URI="<CycloneDDS><Domain><General><NetworkInterfaceAddress>192.168.123.123</NetworkInterfaceAddress></General></Domain></CycloneDDS>"
'';
};
}
);
}