From d509a2cc2f291a6511afdb93cff25f0d58fad71a Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Tue, 8 Oct 2024 13:25:52 +0200 Subject: [PATCH] add flake --- flake.lock | 25 +++++++++++++++++++++++++ flake.nix | 17 +++++++++++++++++ 2 files changed, 42 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..f721b97 --- /dev/null +++ b/flake.lock @@ -0,0 +1,25 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1728279793, + "narHash": "sha256-W3D5YpNrUVTFPVU4jiEiboaaUDShaiH5fRl9aJLqUnU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "f85a2d005e83542784a755ca8da112f4f65c4aa4", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4272953 --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "Cartridges"; + + outputs = { self, nixpkgs }: + let pkgs = nixpkgs.legacyPackages.x86_64-linux; + in { + devShell.x86_64-linux = with pkgs; + mkShell { + buildInputs = [ + just + lua-language-server + ]; + }; + + formatter.x86_64-linux = pkgs.nixfmt; + }; +}