Skip to content

Commit ba86c44

Browse files
committed
add simplest possible shell.nix to get ghc-9.10, cabal anc z3
1 parent 954555b commit ba86c44

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

shell.nix

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
let
2-
pkgs = import (builtins.fetchGit {
3-
name = "nixos-git";
4-
url = "https://github.com/nixos/nixpkgs/";
5-
ref = "refs/heads/master";
6-
# Commit hash for nixos-unstable as of 2021-12-01
7-
# # rev = "8b01281b66cba818abea8dbbdb3614b1b38961e3";
8-
rev = "c610be58c0b6484c18728dc3ed60310cdbfbd456";
9-
}) {};
10-
ghc = pkgs.haskell.compiler.ghc8107;
11-
ghc901 = pkgs.haskell.compiler.ghc901;
12-
stdenv = pkgs.overrideCC pkgs.stdenv pkgs.gcc7;
13-
gcc = pkgs.gcc7;
14-
in
15-
with pkgs;
16-
stdenv.mkDerivation {
17-
name = "lh-array-sort";
18-
buildInputs = [ ghc ghc901 cabal-install stack ghcid z3 numactl
19-
stdenv gcc gdb uthash ];
20-
}
1+
{ compiler ? "ghc910", pkgs ? import <nixpkgs> {}, ... }:
2+
pkgs.mkShell {
3+
name = "haskell-shell";
4+
buildInputs = [
5+
pkgs.haskell.compiler.${compiler}
6+
pkgs.haskell.packages.${compiler}.cabal-install
7+
pkgs.z3
8+
];
9+
}

0 commit comments

Comments
 (0)