-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (30 loc) · 1.08 KB
/
flake.nix
File metadata and controls
33 lines (30 loc) · 1.08 KB
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
{
description = "SSH wrapper with clipboard bridge, xdg-open forwarding, and OAuth port proxying via ntfy";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-linux" "aarch64-linux" ];
in
{
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
nssh = pkgs.buildGoModule {
pname = "nssh";
version = self.shortRev or self.dirtyShortRev or "dev";
src = self;
vendorHash = "sha256-bKX+nLOSmc1oZpT+Yg3XMuC+MBYwq0+vMeVKWUMD9fk=";
subPackages = [ "cmd/nssh" ];
doCheck = true;
meta = {
description = "SSH/mosh wrapper with clipboard bridge and xdg-open forwarding via ntfy";
homepage = "https://github.com/abizer/nssh";
license = pkgs.lib.licenses.mit;
mainProgram = "nssh";
};
};
default = self.packages.${system}.nssh;
}
);
};
}