-
Notifications
You must be signed in to change notification settings - Fork 9
/
flake.nix
45 lines (39 loc) · 1.33 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
{
description = "The robmuxinator script serves as a command-line tool to manage and control tmux sessions on multiple hosts of your robot.";
outputs = { self, nixpkgs, ... }@inputs:
let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.unix;
nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
});
in
{
packages = forAllSystems (system:
let pkgs = nixpkgsFor.${system}; in
{
default = self.packages.${system}.robmuxinator;
robmuxinator = pkgs.python3Packages.buildPythonPackage rec {
name = "robmuxinator";
src = self;
preCheck = ''
export HOME=$(mktemp -d)
'';
propagatedBuildInputs = with pkgs; [
python3Packages.argcomplete
python3Packages.colorama
python3Packages.paramiko
python3Packages.pyyaml
];
};
});
apps = forAllSystems (system:
let apps = nixpkgsFor.${system}; in
{
default = self.apps.${system}.robmuxinator;
robmuxinator = {
type = "app";
program = "${self.packages.${system}.robmuxinator}/bin/robmuxinator";
};
});
};
}