Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "torctl"; 9 version = "0.5.7"; 10 11 src = fetchFromGitHub { 12 owner = "BlackArch"; 13 repo = "torctl"; 14 rev = "v${version}"; 15 hash = "sha256-rTJR+9pbK/sWMqdHyIqJgASgCGtGtpUPoHmYZJ7COFQ="; 16 }; 17 18 installPhase = '' 19 mkdir -p $out/{bin,etc/{systemd,bash_completion.d}} 20 cp -R torctl $out/bin 21 cp -R bash-completion $out/etc/bash_completion.d/ 22 cp -R service $out/etc/systemd/ 23 ''; 24 25 meta = with lib; { 26 description = "Script to redirect all traffic through tor network including dns queries for anonymizing entire system"; 27 homepage = "https://github.com/BlackArch/torctl"; 28 license = licenses.gpl3Only; 29 maintainers = with maintainers; [ tochiaha ]; 30 mainProgram = "torctl"; 31 platforms = platforms.all; 32 }; 33}