Skip to content

Commit bb5716d

Browse files
committed
Setup nix-shell
1 parent 4ed679e commit bb5716d

File tree

5 files changed

+73
-3
lines changed

5 files changed

+73
-3
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/haskell
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=haskell
1+
# Created by https://www.toptal.com/developers/gitignore/api/haskell,direnv
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=haskell,direnv
3+
4+
### direnv ###
5+
.direnv
6+
.envrc
37

48
### Haskell ###
59
dist
@@ -26,6 +30,6 @@ cabal.project.local~
2630
.HTF/
2731
.ghc.environment.*
2832

29-
# End of https://www.toptal.com/developers/gitignore/api/haskell
33+
# End of https://www.toptal.com/developers/gitignore/api/haskell,direnv
3034

3135
.tool-versions

flake.lock

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
inputs = {
3+
flake-utils.url = "github:numtide/flake-utils";
4+
nixpkgs.url = "nixpkgs/nixos-22.11-small";
5+
};
6+
7+
outputs = { self, flake-utils, nixpkgs }:
8+
flake-utils.lib.simpleFlake {
9+
inherit self nixpkgs;
10+
name = "rollbar-haskell";
11+
shell = ./shell.nix;
12+
};
13+
}

shell.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{ pkgs }:
2+
3+
pkgs.mkShell {
4+
buildInputs = [
5+
pkgs.cabal-install
6+
pkgs.ghc
7+
pkgs.hpack
8+
pkgs.zlib
9+
];
10+
}

0 commit comments

Comments
 (0)