1{
2 stdenv,
3 lib,
4 fetchurl,
5 openssl,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "stone";
10 version = "2.4";
11
12 src = fetchurl {
13 url = "http://www.gcd.org/sengoku/stone/stone-${version}.tar.gz";
14 hash = "sha256-1dwa9uxdpQPypAs98/4ZqPv5085pa49G9NU9KsjY628=";
15 };
16
17 buildInputs = [ openssl ];
18
19 makeFlags = [ "linux-ssl" ];
20
21 installPhase = ''
22 runHook preInstall
23 install -Dm755 stone -t $out/bin
24 runHook postInstall
25 '';
26
27 meta = with lib; {
28 description = "TCP/IP repeater in the application layer";
29 homepage = "http://www.gcd.org/sengoku/stone/";
30 license = licenses.gpl2Only;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ corngood ];
33 mainProgram = "stone";
34 };
35}