python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / spiped / default.nix
blob233da21ec93e016c2a7a2ef874e972c093b97686
1 { lib, stdenv, fetchurl, openssl, coreutils }:
3 stdenv.mkDerivation rec {
4   pname = "spiped";
5   version = "1.6.2";
7   src = fetchurl {
8     url    = "https://www.tarsnap.com/spiped/${pname}-${version}.tgz";
9     sha256 = "sha256-BdRofRLRHX+YiNQ/PYDFQbdyHJhwONCF9xyRuwYgRWc=";
10   };
12   buildInputs = [ openssl ];
14   postPatch = ''
15     substituteInPlace libcperciva/cpusupport/Build/cpusupport.sh \
16       --replace "dirname" "${coreutils}/bin/dirname" \
17       --replace "2>/dev/null" "2>stderr.log"
19     substituteInPlace libcperciva/POSIX/posix-l.sh       \
20       --replace "rm" "${coreutils}/bin/rm"   \
21       --replace "2>/dev/null" "2>stderr.log"
22    '';
24   installPhase = ''
25     runHook preInstall
26     mkdir -p $out/bin $out/share/man/man1
27     make install BINDIR=$out/bin MAN1DIR=$out/share/man/man1
28     runHook postInstall
29   '';
31   meta = {
32     description = "Utility for secure encrypted channels between sockets";
33     homepage    = "https://www.tarsnap.com/spiped.html";
34     license     = lib.licenses.bsd2;
35     platforms   = lib.platforms.unix;
36     maintainers = [ lib.maintainers.thoughtpolice ];
37   };