summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nix/default.nix b/nix/default.nix
new file mode 100644
index 0000000..b626a80
--- /dev/null
+++ b/nix/default.nix
@@ -0,0 +1,17 @@
+{mkYarnPackage, ...}:
+mkYarnPackage rec {
+ name = "getchoo-website";
+
+ src = builtins.path {
+ path = ../.;
+ name = "getchoo-website-source";
+ };
+
+ packageJSON = src + "/package.json";
+ yarnLock = src + "/yarn.lock";
+
+ buildPhase = ''
+ export HOME="$(mktemp -d)"
+ yarn --offline build
+ '';
+}