2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libsodium, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "quicktun";
|
|
|
|
version = "2.2.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "UCIS";
|
|
|
|
repo = "QuickTun";
|
|
|
|
rev = "2d0c6a9cda8c21f921a5d1197aeee92e9568ca39";
|
|
|
|
sha256 = "1ydvwasj84qljfbzh6lmhyzjc20yw24a0v2mykp8afsm97zzlqgx";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./tar-1.30.diff ]; # quicktun master seems not to need this
|
|
|
|
|
|
|
|
buildInputs = [ libsodium ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace build.sh \
|
|
|
|
--replace "cc=\"cc\"" "cc=\"$CC\""
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
bash build.sh
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2024-01-02 11:29:13 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
rm out/quicktun*tgz
|
|
|
|
install -vD out/quicktun* -t $out/bin
|
2024-01-02 11:29:13 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru.tests.quicktun = nixosTests.quicktun;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Very simple, yet secure VPN software";
|
|
|
|
homepage = "http://wiki.ucis.nl/QuickTun";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ h7x4 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|