nixpkgs/pkgs/servers/kwakd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
769 B
Nix
Raw Normal View History

2017-03-09 22:52:42 +00:00
{ lib, fetchFromGitHub, stdenv }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "kwakd";
2017-03-09 22:52:42 +00:00
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; {
description = "Super small webserver that serves blank pages";
mainProgram = "kwakd";
2024-05-23 08:44:51 +00:00
license = licenses.gpl2Only;
2017-03-09 22:52:42 +00:00
maintainers = [ maintainers.nicknovitski ];
platforms = platforms.unix;
};
}