about summary refs log tree commit diff
path: root/pkgs/tools/security/tor/torsocks.nix
blob: 0254b143edfdcf251ff7d688fc4df64954f72cf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchgit, autoreconfHook }:
stdenv.mkDerivation rec {
  pname = "torsocks";
  name = "${pname}-${version}";
  version = "1.3";
  
  src = fetchgit {
    url = meta.repositories.git;
    rev = "refs/tags/${version}";
    sha256 = "1cqplb36fkdb81kzf48xlxclf64wnp8r56x1gjayax1h6x4aal1w";
  };

  buildInputs = [ autoreconfHook ];
  preConfigure = ''
      export configureFlags="$configureFlags --libdir=$out/lib"
  '';

  meta = {
    description = "use socks-friendly applications with Tor";
    homepage = http://code.google.com/p/torsocks/;
    repositories.git = https://git.torproject.org/torsocks.git;
    license = "GPLv2";
  };
}