Skip to content

Commit 4a89edb

Browse files
committed
Use flake.nix dev shell
1 parent 45e37a5 commit 4a89edb

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

flake.lock

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

flake.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
url = "github:hercules-ci/gitignore.nix";
66
inputs.nixpkgs.follows = "nixpkgs";
77
};
8-
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
8+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-25.05";
99
inputs.nixpkgsMaster.url = "github:NixOS/nixpkgs/master";
1010

1111
outputs = { self, flake-utils, gitignore, haskellNix, nixpkgs, nixpkgsMaster }:
@@ -49,7 +49,12 @@
4949
devShells = {
5050
default = pkgs.mkShell {
5151
NIX_PATH = "nixpkgs=${pkgsMaster.path}";
52-
buildInputs = [];
52+
buildInputs = with pkgs; [
53+
haskell.compiler.ghc9122
54+
55+
pcre
56+
zlib
57+
];
5358
};
5459
};
5560

stack.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
resolver: nightly-2025-05-28
2-
compiler: ghc-9.12.2
1+
resolver: nightly-2025-12-22
32

43
packages:
54
- .
65

76
nix:
8-
pure: false
9-
packages:
10-
- zlib
11-
- pcre
7+
enable: false
8+
9+
system-ghc: true
1210

1311
extra-deps:
1412
# - language-rust-0.2.0.27

stack.yaml.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
packages: []
77
snapshots:
88
- completed:
9-
sha256: e9b93acfb8aaf8ae4869050506553a963a8adba95748cd60356f9ffe64f03345
10-
size: 712232
11-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2025/5/28.yaml
12-
original: nightly-2025-05-28
9+
sha256: 0d762ad5bc0b99b04d9e0b4c4cc05cfea05b3c2c0168de242258cb3e41aedd96
10+
size: 714960
11+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2025/12/22.yaml
12+
original: nightly-2025-12-22

0 commit comments

Comments
 (0)