Skip to content

Commit 4abefb3

Browse files
committed
Set-up a basic developer shell with Nix
1 parent 747af13 commit 4abefb3

File tree

5 files changed

+74
-0
lines changed

5 files changed

+74
-0
lines changed

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,6 @@ bench.html
8383

8484
# Emacs
8585
.projectile
86+
87+
# nix-direnv
88+
.direnv

flake.lock

+59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
inputs.flake-utils.url = "github:numtide/flake-utils";
3+
outputs = { self, nixpkgs, flake-utils }:
4+
flake-utils.lib.eachDefaultSystem (system:
5+
let pkgs = nixpkgs.legacyPackages.${system};
6+
in { devShells.default = import ./shell.nix { inherit pkgs; }; });
7+
}

shell.nix

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
pkgs.mkShell {
3+
nativeBuildInputs = with pkgs.buildPackages; [ zlib.dev pkgconfig haskellPackages.fourmolu ghcid ];
4+
}

0 commit comments

Comments
 (0)