From 3402bbc71d4492caff4098b9606a58ab18ab67c2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 14 Sep 2015 22:07:20 +0000 Subject: First shot at basic structure The planned webapp is missing for now. `nix-build -A servant` fails because thermoprint does not seem to be registered with ghc (see `echo 'import Thermoprint' | nix-shell -p 'ghci'`) --- servant/servant.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 servant/servant.nix (limited to 'servant/servant.nix') diff --git a/servant/servant.nix b/servant/servant.nix new file mode 100644 index 0000000..6c90a4f --- /dev/null +++ b/servant/servant.nix @@ -0,0 +1,19 @@ +{ mkDerivation +, stdenv +, base +, thermoprint +}: + +mkDerivation { + pname = "thermoprint-servant"; + version = "0.0.0"; + src = ./.; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + base thermoprint + ]; + homepage = "git://git.yggdrasil.li/thermoprint"; + description = "Server for interfacing to cheap thermoprinters"; + license = stdenv.lib.licenses.publicDomain; +} -- cgit v1.2.3