29 lines
694 B
Nix
29 lines
694 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
ssh-manager = pkgs.python3Packages.buildPythonApplication rec {
|
|
pname = "ssh-manager";
|
|
version = "0.1.0";
|
|
src = /home/leo/Documents/Dev/ssh-manager;
|
|
|
|
propagatedBuildInputs = with pkgs.python3Packages; [
|
|
cryptography
|
|
paramiko
|
|
];
|
|
|
|
# Make the script executable
|
|
postInstall = ''
|
|
chmod +x $out/bin/ssh-manager
|
|
'';
|
|
|
|
# Create a wrapper script to ensure proper environment
|
|
postFixup = ''
|
|
makeWrapper ${pkgs.python3}/bin/python $out/bin/ssh-manager \
|
|
--add-flags "$out/lib/python${pkgs.python3.pythonVersion}/site-packages/main.py"
|
|
'';
|
|
};
|
|
in
|
|
{
|
|
environment.systemPackages = [ ssh-manager ];
|
|
};
|