diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4c4ee2d --- /dev/null +++ b/flake.lock @@ -0,0 +1,43 @@ +{ + "nodes": { + "futils": { + "locked": { + "lastModified": 1614513358, + "narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "5466c5bbece17adaab2d82fae80b46e807611bf3", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1614815769, + "narHash": "sha256-Rdy37Ioof5FlMlc+YC9PniSIJW/EsdImG+wZPP5VWvo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d496205cf22c3079461d868ea3198d42ded59287", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "futils": "futils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e96fa78 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "Ambroisie's random scripts"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + futils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, futils } @ inputs: + futils.lib.eachSystem futils.lib.allSystems (system: + let + inherit (nixpkgs) lib; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShell = pkgs.mkShell { + name = "scripts"; + buildInputs = with pkgs; [ + gitAndTools.pre-commit + shellcheck + ]; + }; + } + ); +}