dotfiles/packages/ws-server/default.nix
2024-11-07 16:25:41 -07:00

41 lines
978 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "ws-server";
version = "unstable-2024-08-12";
src = fetchFromGitHub {
owner = "Theldus";
repo = "wsServer";
rev = "476a67448c05ba2057bae43eaa6e704f8b2d6625";
hash = "sha256-irPEv40uTmQPQ09ITFoUzl44BeWOCVnsHPioE4Zt6SE=";
};
# If we don't silence this program, it prints to stdout, which in turn
# makes Firefox plugins using it angry.
patches = [
./00-be-quiet.patch
];
# Let their makefile run cmake, since the install defs are in make.
dontConfigure = true;
nativeBuildInputs = [
cmake
];
# Prod things into the proper path.
PREFIX = placeholder "out";
meta = with lib; {
description = "WsServer - a tiny WebSocket server library written in C";
homepage = "https://github.com/Theldus/wsServer";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
mainProgram = "ws-server";
platforms = platforms.all;
};
}