nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 52 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libsodium, 6 nixosTests, 7}: 8 9stdenv.mkDerivation { 10 pname = "quicktun"; 11 version = "2.2.5"; 12 13 src = fetchFromGitHub { 14 owner = "UCIS"; 15 repo = "QuickTun"; 16 rev = "2d0c6a9cda8c21f921a5d1197aeee92e9568ca39"; 17 sha256 = "1ydvwasj84qljfbzh6lmhyzjc20yw24a0v2mykp8afsm97zzlqgx"; 18 }; 19 20 patches = [ ./tar-1.30.diff ]; # quicktun master seems not to need this 21 22 buildInputs = [ libsodium ]; 23 24 postPatch = '' 25 substituteInPlace build.sh \ 26 --replace "cc=\"cc\"" "cc=\"$CC\"" 27 ''; 28 29 buildPhase = '' 30 runHook preBuild 31 bash build.sh 32 runHook postBuild 33 ''; 34 35 installPhase = '' 36 runHook preInstall 37 rm out/quicktun*tgz 38 install -vD out/quicktun* -t $out/bin 39 runHook postInstall 40 ''; 41 42 passthru.tests.quicktun = nixosTests.quicktun; 43 44 meta = with lib; { 45 broken = stdenv.hostPlatform.isDarwin; 46 description = "Very simple, yet secure VPN software"; 47 homepage = "http://wiki.ucis.nl/QuickTun"; 48 maintainers = with maintainers; [ h7x4 ]; 49 platforms = platforms.unix; 50 license = licenses.bsd2; 51 }; 52}