nixpkgs/pkgs/servers/kwakd/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

30 lines
769 B
Nix

{ 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; {
description = "Super small webserver that serves blank pages";
mainProgram = "kwakd";
license = licenses.gpl2Only;
maintainers = [ maintainers.nicknovitski ];
platforms = platforms.unix;
};
}