Skip to content

Commit ea5b5ef

Browse files
committed
Fix nix shell
1 parent caad0ba commit ea5b5ef

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
cabal = "latest";
3535
hlint = "latest";
3636
haskell-language-server = "latest";
37+
38+
# Env
39+
GRIN_CC = "${pkgs.clang_7}/bin/clang";
40+
GRIN_OPT = "${pkgs.llvm_7}/bin/opt";
41+
GRIN_LLC = "${pkgs.llvm_7}/bin/llc";
3742
};
3843
};
3944
}

shell.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
let
2+
sources = import ./nix/sources.nix {};
3+
nixpkgs = import sources.nixpkgs {};
24
pkgs = import ./default.nix;
35
in
46
pkgs.shellFor {
5-
buildInputs = with pkgs.haskellPackages; [
7+
buildInputs = with nixpkgs.haskellPackages; [
68
hlint
79
ghcid
810
];
911

10-
GRIN_CC = "${pkgs.clang_7}/bin/clang";
11-
GRIN_OPT = "${pkgs.llvm_7}/bin/opt";
12-
GRIN_LLC = "${pkgs.llvm_7}/bin/llc";
12+
GRIN_CC = "${nixpkgs.clang_7}/bin/clang";
13+
GRIN_OPT = "${nixpkgs.llvm_7}/bin/opt";
14+
GRIN_LLC = "${nixpkgs.llvm_7}/bin/llc";
1315
}

0 commit comments

Comments
 (0)