Skip to content

Commit

Permalink
kwakd: init at 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknovitski committed Mar 17, 2017
1 parent c216a71 commit 1fb21ca
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/servers/kwakd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, fetchFromGitHub, stdenv }:

stdenv.mkDerivation rec {
name = "kwakd-${version}";
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 = "A super small webserver that serves blank pages";
license = licenses.gpl2;
maintainers = [ maintainers.nicknovitski ];
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ with pkgs;

oracle-instantclient = callPackage ../development/libraries/oracle-instantclient { };

kwakd = callPackage ../servers/kwakd { };

kwm = callPackage ../os-specific/darwin/kwm { };

khd = callPackage ../os-specific/darwin/khd {
Expand Down

0 comments on commit 1fb21ca

Please sign in to comment.