Merge pull request #299661 from Tochiaha/torctl

torctl: init at 0.5.7

authored by Ryan Hendrickson and committed by GitHub f9565232 05d79f2a

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