Skip to content

Commit

Permalink
HACK: Use patched fork of robot's sshlibrary
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Tammi <[email protected]>
  • Loading branch information
Mika Tammi committed Nov 3, 2023
1 parent 2ce1bd8 commit faf863d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 14 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,30 @@
flake-utils.lib.eachSystem systems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
packages = {
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-retryfailed = self.packages.${system}.robotframework-retryfailed;
robotframework-seriallibrary = self.packages.${system}.robotframework-seriallibrary;
robotframework-sshlibrary = self.packages.${system}.robotframework-sshlibrary;
};
robotframework-retryfailed = pkgs.python3Packages.callPackage ./pkgs/robotframework-retryfailed {};
robotframework-seriallibrary = pkgs.python3Packages.callPackage ./pkgs/robotframework-seriallibrary {};
robotframework-advancedlogging = pkgs.python3Packages.callPackage ./pkgs/robotframework-advancedlogging {};
robotframework-sshlibrary = pkgs.python3Packages.robotframework-sshlibrary.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "mikatammi";
repo = "SSHLibrary";
rev = "345b3f936ebb15212eb2d539a2991ced92d3c5e6";
hash = "sha256-I14gQCDO6nxg0KybLkWzAUnyWI89MpOfbcxNb4GJ1VI=";
};
};
pkcs7 = pkgs.python3Packages.callPackage ./pkgs/pkcs7 {}; # Requirement of PyP100
PyP100 = pkgs.python3Packages.callPackage ./pkgs/PyP100 {inherit pkcs7;};
PyP100 = pkgs.python3Packages.callPackage ./pkgs/PyP100 {pkcs7 = self.packages.${system}.pkcs7;};
plugp100 = pkgs.python3Packages.callPackage ./pkgs/plugp100 {};
default = ghaf-robot;
default = self.packages.${system}.ghaf-robot;
};

# Development shell
Expand All @@ -47,7 +56,8 @@
self.packages.${system}.robotframework-advancedlogging
self.packages.${system}.PyP100
self.packages.${system}.plugp100
robotframework-sshlibrary
# robotframework-sshlibrary
self.packages.${system}.robotframework-sshlibrary
pyserial
python-kasa
]))
Expand Down
4 changes: 3 additions & 1 deletion pkgs/ghaf-robot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
robotframework-advancedlogging,
robotframework-retryfailed,
robotframework-seriallibrary,
robotframework-sshlibrary,
stdenv,
writeShellApplication,
}:
Expand All @@ -14,7 +15,8 @@ writeShellApplication {
(python3.withPackages (ps: [
# These are taken from nixpkgs
ps.robotframework
ps.robotframework-sshlibrary
# ps.robotframework-sshlibrary
robotframework-sshlibrary
ps.pyserial
ps.python-kasa

Expand Down

0 comments on commit faf863d

Please sign in to comment.