summary refs log tree commit diff stats
path: root/packages/node2nix/Makefile
diff options
context:
space:
mode:
authorAlan Pearce2019-09-10 11:46:43 +0200
committerAlan Pearce2019-09-13 11:17:29 +0200
commit9e5f4ef842477090d789b8cd22028b1154a31985 (patch)
treec7a17c8c4e5b381e54abebaf1d3cd8889166ceb1 /packages/node2nix/Makefile
parentc0287ca3a1e7168f016673c51668c1e764a0723b (diff)
downloadnixos-configuration-9e5f4ef842477090d789b8cd22028b1154a31985.tar.lz
nixos-configuration-9e5f4ef842477090d789b8cd22028b1154a31985.tar.zst
nixos-configuration-9e5f4ef842477090d789b8cd22028b1154a31985.zip
Import javascript CLI tools via node2nix
Diffstat (limited to 'packages/node2nix/Makefile')
-rw-r--r--packages/node2nix/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/node2nix/Makefile b/packages/node2nix/Makefile
new file mode 100644
index 0000000..d829eeb
--- /dev/null
+++ b/packages/node2nix/Makefile
@@ -0,0 +1,5 @@
+default.nix: node-packages.json
+	node2nix --nodejs-10 --input $<
+
+install: default.nix
+	nix-env -f default.nix -i