From 250e9a5734e519632ae8920b9a76f40794a933a0 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 5 Nov 2014 05:08:40 +0100 Subject: add README --- README | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ default.nix | 6 ++++++ 2 files changed, 70 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..f4de3fb --- /dev/null +++ b/README @@ -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ć 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 {} }: -- cgit v1.2.3