-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
37 lines (33 loc) · 903 Bytes
/
flake.nix
File metadata and controls
37 lines (33 loc) · 903 Bytes
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
{
description = "sshgate - forwarding-only SSH server with policy-based connection control";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.${system} = {
sshgate = pkgs.buildGoModule {
pname = "sshgate";
version = "0.0.1";
src = ./.;
vendorHash = "sha256-6cbbplKEuMK9pt4/1IYfEQ6ue8QPVLDCBSebYSk+fHU=";
};
default = self.packages.${system}.sshgate;
};
checks.${system} = {
sshgate = self.packages.${system}.sshgate;
devShell = self.devShells.${system}.default;
};
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
pkgs.go
pkgs.gopls
pkgs.gotools
];
};
};
}