summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-16 03:53:24 -0400
committerseth <[email protected]>2023-05-16 04:08:37 -0400
commit681cd8c1cc2904c562f9a58db3cbb657d58fb552 (patch)
tree9255f71e577fc82f079c16ff493f432ca5557284 /nix
parentbf4df962be338c08ae41bed94b1d60b2930fca9f (diff)
feat: rewrite with astro
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
+ '';
+}