aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 83cb6ead05ea86630c5ad781673c670a5e84580e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  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
            # cbqn
          ];
        };
    in
    {
      devShells = forAllSystems (system:
        let
          pkgs = import nixpkgs { inherit system; };
        in
        {
          default = shell pkgs;
        });
    };
}