Add basic devshell template

This commit is contained in:
Sam W 2022-05-26 23:43:22 +01:00
parent 7422dcaf19
commit 85999ed2cf
2 changed files with 18 additions and 0 deletions

1
devshell/.envrc Normal file
View File

@ -0,0 +1 @@
use flake

17
devshell/flake.nix Normal file
View File

@ -0,0 +1,17 @@
{
description = "A basic flake from samw";
inputs = {
utils.url = "github:numtide/flake-utils";
devshell.url = "github:numtide/devshell";
};
outputs = { self, nixpkgs, utils, devshell }:
utils.lib.eachDefaultSystem (system: {
devShell = let
pkgs = import nixpkgs {
inherit system;
overlays = [ devshell.overlay ];
};
in pkgs.devshell.mkShell { packages = with pkgs; [ ]; };
});
}