aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..50d3c9a
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,34 @@
+{
+ inputs = {
+ nixpkgs.url = "nixpkgs/nixos-unstable";
+ };
+
+ outputs = { self, nixpkgs }:
+ let
+ supportedSystems = [ "x86_64-linux" ];
+ forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
+ nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
+
+ shell = pkgs: with pkgs;
+ mkShell {
+ buildInputs = [
+ just
+ nodejs-18_x
+ nodePackages.pnpm
+ uiua
+ glslviewer
+ nodePackages.live-server
+ # cbqn
+ ];
+ };
+ in
+ {
+ devShells = forAllSystems (system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ in
+ {
+ default = shell pkgs;
+ });
+ };
+}