nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 mkDerivation,
3 fetchFromGitHub,
4 base,
5 bytestring,
6 network,
7 lib,
8}:
9mkDerivation {
10 pname = "client-ip-echo";
11 version = "0.1.0.5";
12 src = fetchFromGitHub {
13 owner = "jerith666";
14 repo = "client-ip-echo";
15 rev = "e81db98d04c13966b2ec114e01f82487962055a7";
16 sha256 = "02rzzbm1mdqh5zx5igd0s7pwkcsk64lx40rclxw3485348brc6ya";
17 };
18 isLibrary = false;
19 isExecutable = true;
20 executableHaskellDepends = [
21 base
22 bytestring
23 network
24 ];
25 description = "Accepts TCP connections and echoes the client's IP address back to it";
26 license = lib.licenses.lgpl3;
27 mainProgram = "client-ip-echo";
28}