From 85999ed2cfe5bbbdf59209e4dd2c2c98989115ba Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Thu, 26 May 2022 23:43:22 +0100 Subject: [PATCH] Add basic devshell template --- devshell/.envrc | 1 + devshell/flake.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 devshell/.envrc create mode 100644 devshell/flake.nix diff --git a/devshell/.envrc b/devshell/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/devshell/.envrc @@ -0,0 +1 @@ +use flake diff --git a/devshell/flake.nix b/devshell/flake.nix new file mode 100644 index 0000000..3c819ad --- /dev/null +++ b/devshell/flake.nix @@ -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; [ ]; }; + }); +}