Skip to content

Commit e50984a

Browse files
committed
Clean up Nix setup
1 parent 89c8465 commit e50984a

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ cabal.project.local
99
.DS_Store
1010
*.swp
1111
*.keter
12+
/result

default.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
{ nixpkgs ? import <nixpkgs> {}
2-
, compiler ? "ghc865"
1+
{ pkgs ? import <nixpkgs> {}
2+
, compiler ? "ghc884"
33
, doCheck ? true
44
}:
55
let
6-
inherit (nixpkgs) pkgs;
76
haskellPackages = pkgs.haskell.packages.${compiler}.override {
87
overrides = self: super: {
98
};

pandoc-include-code.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ library
3636
, filepath
3737
, text >= 1.2 && < 2
3838
, mtl >= 2.2 && < 3
39-
, pandoc-types >= 1.22 && <= 1.22
39+
, pandoc-types >= 1.20 && <= 1.22
4040
, containers
4141

4242

@@ -45,7 +45,7 @@ executable pandoc-include-code
4545
main-is: Main.hs
4646
other-modules: Paths_pandoc_include_code
4747
build-depends: base >= 4 && < 5
48-
, pandoc-types >= 1.22 && <= 1.22
48+
, pandoc-types >= 1.20 && <= 1.22
4949
, pandoc-include-code
5050

5151
test-suite filter-tests
@@ -55,7 +55,7 @@ test-suite filter-tests
5555
, Paths_pandoc_include_code
5656
main-is: Driver.hs
5757
build-depends: base >= 4 && < 5
58-
, pandoc-types >= 1.22 && <= 1.22
58+
, pandoc-types >= 1.20 && <= 1.22
5959
, pandoc-include-code
6060
, tasty
6161
, tasty-hunit

shell.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{ nixpkgs ? import <nixpkgs> {}
2-
, compiler ? "ghc865"
3-
}:
4-
nixpkgs.pkgs.haskellPackages.shellFor {
1+
{ pkgs ? import <nixpkgs> { }, compiler ? "ghc884" }:
2+
let
3+
haskellPackages = pkgs.haskell.packages.${compiler}.override {
4+
overrides = self: super: { };
5+
};
6+
in haskellPackages.shellFor {
57
withHoogle = true;
6-
packages = p: [(import ./. {inherit compiler nixpkgs;})];
7-
buildInputs = with nixpkgs.pkgs; [
8-
pandoc
9-
];
8+
packages = p: [ (import ./. { inherit compiler pkgs; }) ];
9+
buildInputs = with pkgs; [ cabal-install pandoc ];
1010
}

0 commit comments

Comments
 (0)