From 4a52ad225b381dd2efed95875f2f5d346e8c9a00 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 29 Jan 2024 16:49:41 -0600 Subject: [PATCH] feat: add flake.nix --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix 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 + ]; + }; + } + ); + }; +}