diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..f707b1c --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1706371002, + "narHash": "sha256-dwuorKimqSYgyu8Cw6ncKhyQjUDOyuXoxDTVmAXq88s=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "c002c6aa977ad22c60398daaa9be52f2203d0006", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..093a64a --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + description = "brain"; + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + outputs = inputs @ { + self, + nixpkgs, + }: let + inherit (nixpkgs.lib) genAttrs; + forAllSystems = f: + genAttrs + ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"] + (system: f nixpkgs.legacyPackages.${system}); + in { + devShells = forAllSystems ( + pkgs: + with pkgs; { + default = mkShell { + buildInputs = [ + fontforge + python3 + pre-commit + ]; + }; + } + ); + }; +}