From c96889b62e2d4702b8508cc1b9328dfa97146583 Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Sat, 1 Jan 2022 20:14:50 +0800 Subject: [PATCH] Add a development shell for this project --- flake.nix | 4 ++++ shell.nix | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 shell.nix diff --git a/flake.nix b/flake.nix index 32fe330e..8e5ef816 100644 --- a/flake.nix +++ b/flake.nix @@ -134,6 +134,10 @@ packages = forAllSystems (system: import ./pkgs { pkgs = import nixpkgs { inherit system; }; }); + # The development environment for this flake. + devShell = forAllSystems (system: + import ./shell.nix { pkgs = import nixpkgs { inherit system; }; }); + # My several development shells for usual type of projects. This is much # more preferable than installing all of the packages at the system # configuration (or even home environment). diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..c839bba8 --- /dev/null +++ b/shell.nix @@ -0,0 +1,5 @@ +{ pkgs ? import { } }: + +pkgs.mkShell { + packages = with pkgs; [ git git-crypt nixfmt ]; +}