nix: package up an overlay for vpngate

This commit is contained in:
Dave Gallant
2021-01-10 19:54:54 -05:00
parent e8776c93cf
commit d0a0fbc213
4 changed files with 35 additions and 4 deletions

View File

@@ -130,7 +130,6 @@
};
initExtra = ''
export GOPATH=~/go
export GPG_TTY=$(tty)
export PATH=$PATH:~/.cargo/bin
export PATH=$PATH:~/.local/bin
@@ -230,6 +229,13 @@
};
};
go = {
enable = true;
goBin = "go/bin";
goPath = "go";
};
tmux = {
enable = true;
clock24 = true;

View File

@@ -3,5 +3,6 @@
[
(import ./rfd.nix)
(import ./lastpass.nix)
(import ./vpngate.nix)
]

26
nix/overlays/vpngate.nix Normal file
View File

@@ -0,0 +1,26 @@
self: super:
rec {
vpngate = with self; buildGoModule rec {
pname = "vpngate";
version = "v0.0.2";
vendorSha256 = "1ys2rvrbxgsrvmjdxqgpmxf0m9nlp905gnr2mrf3c7iaxm86wgf8";
src = fetchFromGitHub {
owner = "davegallant";
repo = "vpngate";
rev = version;
sha256 = "0ky3wd04xd4sb2zskrrlbgys2gw88yqhngg3bl0sjy8kr6099vfn";
};
meta = with super.lib; {
homepage = "https://www.vpngate.net";
description = "a client for vpngate.net";
license = licenses.asl20;
maintainers = with maintainers; [ davegallant ];
platforms = platforms.linux ++ platforms.darwin;
};
};
}

View File

@@ -53,9 +53,6 @@ with pkgs; [
openvpn
postman
# go
go
# terraform
terraform-ls
terraform_0_14
@@ -148,4 +145,5 @@ with pkgs; [
# overlays
rfd
lpass
vpngate
]