2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-08-02 06:00:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dsvpn";
|
2019-12-05 23:45:00 +00:00
|
|
|
version = "0.1.4";
|
2019-08-02 06:00:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jedisct1";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-12-05 23:45:00 +00:00
|
|
|
sha256 = "1gbj3slwmq990qxsbsaxasi98alnnzv3adp6f8w8sxd4gi6qxhdh";
|
2019-08-02 06:00:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 -t $out/bin dsvpn
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-02 06:00:00 +01:00
|
|
|
description = "A Dead Simple VPN";
|
|
|
|
homepage = "https://github.com/jedisct1/dsvpn";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|