2014-04-12 04:35:08 +02:00
|
|
|
{ stdenv, fetchurl, openssl, coreutils }:
|
2014-04-06 08:46:28 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "spiped-${version}";
|
2014-09-18 17:06:58 +02:00
|
|
|
version = "1.3.1";
|
2014-04-06 08:46:28 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.tarsnap.com/spiped/${name}.tgz";
|
2014-09-18 17:06:58 +02:00
|
|
|
sha256 = "1viglk61v1v2ga1n31r0h8rvib5gy2h02lhhbbnqh2s6ps1sjn4a";
|
2014-04-06 08:46:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
2014-04-08 13:22:44 +02:00
|
|
|
patches = [ ./no-dev-stderr.patch ];
|
|
|
|
|
2014-04-12 04:35:08 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace POSIX/posix-l.sh --replace "rm" "${coreutils}/bin/rm"
|
|
|
|
'';
|
|
|
|
|
2014-04-06 08:46:28 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
make install BINDIR=$out/bin MAN1DIR=$out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "utility for secure encrypted channels between sockets";
|
|
|
|
homepage = "https://www.tarsnap.com/spiped.html";
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|