summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/st/stone/package.nix
blob: 70cf342e76b02cdc817cd9648b40117bc2320d17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  stdenv,
  lib,
  fetchurl,
  openssl,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "stone";
  version = "2.4";

  src = fetchurl {
    url = "https://www.gcd.org/sengoku/stone/stone-${finalAttrs.version}.tar.gz";
    hash = "sha256-1dwa9uxdpQPypAs98/4ZqPv5085pa49G9NU9KsjY628=";
  };

  buildInputs = [ openssl ];

  makeFlags = [ "linux-ssl" ];

  installPhase = ''
    runHook preInstall
    install -Dm755 stone -t $out/bin
    runHook postInstall
  '';

  meta = {
    description = "TCP/IP repeater in the application layer";
    homepage = "http://www.gcd.org/sengoku/stone/";
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ corngood ];
    mainProgram = "stone";
  };
})