-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Create fmo-tool service for default config - Add dynamic-device-passthrough and dynamic-portforwarding services - Add fmo-tool package - Add vhotplug package for dynamic-device-passthrough Signed-off-by: Anh Huy Bui <buianhhuy96@gmail.com>
- Loading branch information
1 parent
c01baf8
commit 26c2004
Showing
21 changed files
with
645 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
(final: _prev: { | ||
fmo-tool = _prev.callPackage ./fmo-tool.nix {}; | ||
typer = _prev.callPackage ./typer.nix {}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ pkgs }: | ||
let | ||
# WAR: This is because current typer and paramiko dependencies are old versions, | ||
# Solve by manually build newer versions of the packages | ||
# Will be remove in new version of nixpkgs (with pkgs.python3Packages) | ||
typer = pkgs.callPackage ./typer.nix {}; | ||
paramiko = pkgs.callPackage ./paramiko.nix {}; | ||
in | ||
|
||
pkgs.python3Packages.buildPythonApplication { | ||
pname = "fmo-tool"; | ||
version = "0.0.1"; | ||
|
||
build-system = with pkgs.python3Packages; [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
dependencies = with pkgs.python3Packages; [ | ||
typer | ||
colorama | ||
shellingham | ||
pytest | ||
typing-extensions | ||
pyyaml | ||
paramiko | ||
# py3compat | ||
rich | ||
]; | ||
|
||
propagatedBuildInputs = with pkgs.python3Packages; [ | ||
(pkgs.python3.withPackages (ps: with ps; [ pip ])) | ||
typer | ||
colorama | ||
shellingham | ||
pytest | ||
typing-extensions | ||
pyyaml | ||
paramiko | ||
# py3compat | ||
rich | ||
]; | ||
|
||
src = builtins.fetchGit { | ||
url = "git@github.com:tiiuae/fmo-tool.git"; | ||
rev = "40ca851d4f51af7ecf48939394609c6520b5d549"; | ||
ref = "refs/heads/integrate_ddp"; | ||
}; | ||
} |
Oops, something went wrong.