2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, stdenv }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "kwakd";
|
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fetchinson";
|
|
|
|
repo = "kwakd";
|
|
|
|
rev = "acdf0e1491204ae30622a60fde0bcae4769f78be";
|
|
|
|
sha256 = "1inf9ngrbxmkkdhqf1xday12nf0hxjxlx1810phkmivyyp6fl3nj";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
serviceDir=$out/share/dbus-1/system-services
|
|
|
|
mkdir -p $serviceDir
|
|
|
|
cp kwakd.service $serviceDir/
|
|
|
|
substituteInPlace $serviceDir/kwakd.service \
|
|
|
|
--replace "kwakd -p 80" "$out/bin/kwakd -p 80"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Super small webserver that serves blank pages";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kwakd";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|