2020-03-21 10:53:00 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
2019-01-03 16:04:35 +00:00
|
|
|
|
2019-06-09 10:20:00 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "websocketd";
|
|
|
|
version = "0.3.1";
|
2019-01-03 16:04:35 +00:00
|
|
|
|
2019-06-09 10:20:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joewalnes";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qc4yi4kwy7bfi3fb17w58ff0i95yi6m4syldh8j79930syr5y8q";
|
2019-01-03 16:04:35 +00:00
|
|
|
};
|
|
|
|
|
2019-06-09 10:20:00 +01:00
|
|
|
modSha256 = "18hamj557ln8k3vmvcrpvnydjr1dy7zi9490iacwdldw5vp870xs";
|
2019-01-03 16:04:35 +00:00
|
|
|
|
2020-03-21 10:53:00 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-01-03 16:04:35 +00:00
|
|
|
description = "Turn any program that uses STDIN/STDOUT into a WebSocket server";
|
|
|
|
homepage = "http://websocketd.com/";
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|