nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchurl,
5 openssl,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "stone";
10 version = "2.4";
11
12 src = fetchurl {
13 url = "http://www.gcd.org/sengoku/stone/stone-${finalAttrs.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 = {
28 description = "TCP/IP repeater in the application layer";
29 homepage = "http://www.gcd.org/sengoku/stone/";
30 license = lib.licenses.gpl2Only;
31 platforms = lib.platforms.linux;
32 maintainers = with lib.maintainers; [ corngood ];
33 mainProgram = "stone";
34 };
35})