mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
35 lines
862 B
Nix
35 lines
862 B
Nix
{ stdenv, fetchFromGitHub, libsodium }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "quicktun-${version}";
|
|
version = "2.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "UCIS";
|
|
repo = "QuickTun";
|
|
rev = "980fe1b8c718d6df82af1d57b56140c0e541dbe0";
|
|
sha256 = "0m7gvlgs1mhyw3c8s2dg05j7r7hz8kjpb0sk245m61ir9dmwlf8i";
|
|
};
|
|
|
|
CFLAGS = "-fPIE -fPIC -pie -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -Wl,-z,relro,-z,now";
|
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
|
|
|
buildPhase = "bash build.sh";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
rm out/quicktun*tgz
|
|
cp -v out/quicktun* $out/bin/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Very simple, yet secure VPN software";
|
|
homepage = "http://wiki.ucis.nl/QuickTun";
|
|
maintainers = [ maintainers.fpletz ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|