summary refs log tree commit diff
path: root/flake.nix
blob: 3acf6578d8f89c625653990bf2dbf069b2f80207 (plain)
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
{
  description = "a dumb minecraft in c++ and opengl.";

  inputs = {
    nixpkgs.url = "nixpkgs/nixos-23.11";
  };

  outputs = { self, nixpkgs }: 
  let
    system = "x86_64-darwin";
    pkgs = import nixpkgs { inherit system; };
  in {
    packages = { 
      ${system}.default = pkgs.callPackage ./. {};
    };

    devShells = {
      ${system}.default = pkgs.mkShell {
        buildInputs = with pkgs; [
          glfw glew cmake
        ];
      };
    };
  };
}