git.iko.soy/typeable/rollbar-hs
on master help sign in
44 lines 1.0 kB history raw
1{ compiler ? "ghc822" }:
3let
5 default = haskell-packages.callPackage (import ./default.nix) {};
7 derivation = nixpkgs.haskell.lib.addBuildTools default tools;
9 haskell-packages = nixpkgs.haskell.packages.${compiler};
11 nixpkgs = import nixpkgs-tarball {};
13 nixpkgs-revision = "120b013e0c082d58a5712cde0a7371ae8b25a601";
15 nixpkgs-sha256 = "0hk4y2vkgm1qadpsm4b0q1vxq889jhxzjx3ragybrlwwg54mzp4f";
17 nixpkgs-tarball = builtins.fetchTarball {
18 sha256 = nixpkgs-sha256;
19 url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgs-revision}.tar.gz";
20 };
22 # Tools affected by the compiler version.
23 tools-compiler = [
24 haskell-packages.cabal-install
25 haskell-packages.ghc
26 haskell-packages.ghcid
27 haskell-packages.hpack
28 ];
30 # Tools that deal with the basic project infrastructure.
31 tools-infrastructure = [
32 nixpkgs.cabal2nix
33 nixpkgs.curl
34 nixpkgs.which
35 ];
37 # All of the tools.
38 tools =
39 tools-compiler ++
40 tools-infrastructure;
42in
44 derivation.env