mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 17:10:18 +02:00
8aebb6b181
- Remove redundant preConfigure torsocks installs into $libdir/torsocks, so setting libdir=$out/lib doesn't really help. To put the shared objects into $out/lib we'd have to manually move them into $out and patch various files (the script itself expects $libdir/torsocks). - Use nativeBuildInputs
29 lines
831 B
Nix
29 lines
831 B
Nix
{ stdenv, fetchgit, autoreconfHook, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "torsocks-${version}";
|
|
version = "2.2.0";
|
|
|
|
src = fetchgit {
|
|
url = meta.repositories.git;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "1xwkmfaxhhnbmvp37agnby1n53hznwhvx0dg1hj35467qfx985zc";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace src/bin/torsocks.in \
|
|
--replace which ${which}/bin/which
|
|
'';
|
|
|
|
meta = {
|
|
description = "Wrapper to safely torify applications";
|
|
homepage = http://code.google.com/p/torsocks/;
|
|
repositories.git = https://git.torproject.org/torsocks.git;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = with stdenv.lib.maintainers; [ phreedom thoughtpolice ];
|
|
};
|
|
}
|