-
Notifications
You must be signed in to change notification settings - Fork 7
/
flake.nix
72 lines (68 loc) · 2.65 KB
/
flake.nix
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
description = "A flake for for running Robot Framework tests";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}: let
systems = with flake-utils.lib.system; [
x86_64-linux
aarch64-linux
];
in
flake-utils.lib.eachSystem systems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
ghaf-robot = pkgs.callPackage ./pkgs/ghaf-robot {
PyP100 = self.packages.${system}.PyP100;
plugp100 = self.packages.${system}.plugp100;
robotframework-advancedlogging = self.packages.${system}.robotframework-advancedlogging;
robotframework-jsonlibrary = self.packages.${system}.robotframework-jsonlibrary;
robotframework-retryfailed = self.packages.${system}.robotframework-retryfailed;
robotframework-seriallibrary = self.packages.${system}.robotframework-seriallibrary;
};
robotframework-jsonlibrary = pkgs.python3Packages.callPackage ./pkgs/robotframework-jsonlibrary {};
robotframework-retryfailed = pkgs.python3Packages.callPackage ./pkgs/robotframework-retryfailed {};
robotframework-seriallibrary = pkgs.python3Packages.callPackage ./pkgs/robotframework-seriallibrary {};
robotframework-advancedlogging = pkgs.python3Packages.callPackage ./pkgs/robotframework-advancedlogging {};
pkcs7 = pkgs.python3Packages.callPackage ./pkgs/pkcs7 {}; # Requirement of PyP100
PyP100 = pkgs.python3Packages.callPackage ./pkgs/PyP100 {inherit pkcs7;};
plugp100 = pkgs.python3Packages.callPackage ./pkgs/plugp100 {};
default = ghaf-robot;
};
# Development shell
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
file
grafana-loki
imagemagick
ffmpeg
iperf
(python3.withPackages (ps:
with ps; [
robotframework
self.packages.${system}.robotframework-jsonlibrary
self.packages.${system}.robotframework-retryfailed
self.packages.${system}.robotframework-seriallibrary
self.packages.${system}.robotframework-advancedlogging
self.packages.${system}.PyP100
self.packages.${system}.plugp100
robotframework-sshlibrary
pyserial
python-kasa
pytz
pandas
pyscreeze
python3Packages.opencv4
]))
];
};
# Allows formatting files with `nix fmt`
formatter = pkgs.alejandra;
});
}