about summary refs log tree commit diff
path: root/website/sandbox/shift-time/default.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-13T19·53+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-20T10·26+0100
commit5fd79ce0ffd27f860d754edf398895c1f84a8e0b (patch)
treef263c22cfe5d0870c8edebcf28b6c32efa25cc31 /website/sandbox/shift-time/default.nix
parent81aa32fe71a0b8a822673b36a2ded9a427855286 (diff)
Support parsing second shifts
Parse inputs like -10s into 10 second shifts back in time.
Diffstat (limited to 'website/sandbox/shift-time/default.nix')
-rw-r--r--website/sandbox/shift-time/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/website/sandbox/shift-time/default.nix b/website/sandbox/shift-time/default.nix
new file mode 100644
index 000000000000..356c250c7134
--- /dev/null
+++ b/website/sandbox/shift-time/default.nix
@@ -0,0 +1,28 @@
+let
+  briefcase = import /home/wpcarro/briefcase {};
+in briefcase.buildHaskell.program {
+  name = "shift-time";
+  srcs = builtins.path {
+    path = ./.;
+    name = "shift-time-src";
+  };
+  ghcExtensions = [
+    "OverloadedStrings"
+    "NoImplicitPrelude"
+    "RecordWildCards"
+    "TypeApplications"
+  ];
+  deps = hpkgs: with hpkgs; [
+    servant-server
+    aeson
+    wai-cors
+    warp
+    jwt
+    unordered-containers
+    base64
+    http-conduit
+    rio
+    envy
+    req
+  ];
+}