Skip to content

Commit 6ab8159

Browse files
authored
Add nix-shell for working on nix-tools (input-output-hk#74)
1 parent 58e0bd1 commit 6ab8159

File tree

6 files changed

+19
-30
lines changed

6 files changed

+19
-30
lines changed

nix-tools/.buildkite/nix1/default.nix

Lines changed: 0 additions & 14 deletions
This file was deleted.

nix-tools/.buildkite/nix2/default.nix

Lines changed: 0 additions & 14 deletions
This file was deleted.

nix-tools/cabal.project

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
index-state: 2020-01-10T00:00:00Z
2+
13
packages: .
24

35
-- Needs https://github.com/input-output-hk/iohk-nix/commit/6a8c29117eff36ce975e02e01efc8b25d93fcb90#diff-6fb0c6517b547a8baf082d5d2d604842
@@ -16,4 +18,3 @@ source-repository-package
1618
location: https://github.com/galenhuntington/haskell-src-meta.git
1719
tag: 109ee29d5fd0f4e23fdd2f80eb122d66341b64a9
1820
--sha256: 08qw6y9br6fy3qkwl9v2kp38msprsq9v1ssym0fsnj2jm0vbnfrx
19-

nix-tools/default.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{ haskellNixSrc ? builtins.fetchTarball {
2+
url = "https://github.com/input-output-hk/haskell.nix/archive/a84e3b55c642e7aec57c9677158cf446d90e9759.tar.gz";
3+
sha256 = "0qnchf0f8d5k6363mcrqv936wz6zljs06bjvg1i6xmkg31bdj48m";
4+
}
5+
, nixpkgs ? haskellNixSrc + "/nixpkgs"
6+
, pkgs ? import nixpkgs (import haskellNixSrc)
7+
, haskellCompiler ? "ghc865"
8+
}:
9+
pkgs.haskell-nix.cabalProject {
10+
src = pkgs.haskell-nix.haskellLib.cleanGit { src = ./.; };
11+
ghc = pkgs.haskell-nix.compiler.${haskellCompiler};
12+
}
13+

nix-tools/nix-tools.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ library
2929
, Stack2nix.Project
3030
, Stack2nix.Stack
3131
build-depends: base >=4 && <4.13
32-
, Cabal >= 2.4
32+
, Cabal >= 2.4 && <3
3333
, aeson
3434
, aeson-pretty
3535
, base16-bytestring

nix-tools/shell.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{ haskellCompiler ? "ghc865" }:
2+
(import ./. { inherit haskellCompiler; }).shells.ghc
3+

0 commit comments

Comments
 (0)