diff options
author | tv <tv@shackspace.de> | 2014-11-05 05:08:40 +0100 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-11-05 05:08:40 +0100 |
commit | 250e9a5734e519632ae8920b9a76f40794a933a0 (patch) | |
tree | e4ca9f78d2e84cf0d9cb98bc1959bd50efba3342 | |
parent | 05c69c361fc2e658bd88ca97e0512257902a8e3e (diff) |
add README
-rw-r--r-- | README | 64 | ||||
-rw-r--r-- | default.nix | 6 |
2 files changed, 70 insertions, 0 deletions
@@ -0,0 +1,64 @@ +cgserver +======== + +cgserver is a HTTP server that provides an API to manage cgroups. + + +Files in this Repository +======================== + +cgserver.nix +------------ +This files was generated from cgserver.cabal by: + + $ cabal2nix . > cgserver.nix + +Both, default.nix, and env.nix use this file (see below). + + +default.nix +----------- +A nix package that builds the cgserver executable. + +It can be used by: + + $ nix-env -f . -i + + +env.nix +------- +A development environment. Within the environment GHCi and cabal-install +can be used develop cgserver. + +The environment can be installed by: + + $ nix-env -f env -i + +Load the environment: + + $ load-env-cgserver-1 + +Start cgserver with GHCi: + + $ ghci -Wall -isrc + > :l Main + > main + + +cgserver.cabal, LICENSE, src/ +----------------------------- +The obvious scaffold. + +Most of the documentation is Haddock and can be generated by: + + $ cabal haddock --executable + + +Contact Information +=================== +Contributions and bug reports are welcome! + +Please feel free to contact me by email or on the #krebs IRC channel on +irc.freenode.net. + +-- Tomislav Viljetić <tomislav@viljetic.de> diff --git a/default.nix b/default.nix index 234f3d5..781e099 100644 --- a/default.nix +++ b/default.nix @@ -1,3 +1,9 @@ +# This file is just a convenient wrapper around cgserver.nix, +# so the package can be installed by: +# +# nix-env -f . -i +# + { pkgs ? import <nixpkgs> {} }: |