forked from Ralim/aws-vpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
39 lines (34 loc) · 1.04 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
{
description = "AWS VPN Client wrapper with patched OpenVPN for SAML authentication";
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2205.*"; # Nixpkgs version with OpenVPN v2.5.6
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
# Build the patched OpenVPN
openvpn-aws = pkgs.callPackage ./openvpn-aws.nix { };
# Build the wrapper and SAML listener
aws-vpn-client = pkgs.callPackage ./default.nix {
inherit openvpn-aws;
};
in
{
packages = {
inherit aws-vpn-client openvpn-aws;
default = aws-vpn-client;
};
# Development shell with both packages available
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go
gopls
delve
openvpn-aws
];
};
}
);
}