1/* Build instructions for the continuous integration system Hydra. */
3{ cabal2nixSrc ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
4, supportedPlatforms ? [ "x86_64-linux" ]
5, supportedCompilers ? ["ghc6104" "ghc6123" "ghc704" "ghc722" "ghc742" "ghc763" "ghc783" "ghcHEAD"]
9 genAttrs = (import <nixpkgs> { }).lib.genAttrs;
12 cabal2nix = genAttrs supportedCompilers (ghcVer: genAttrs supportedPlatforms (system:
14 pkgs = import <nixpkgs> { inherit system; };
15 haskellPackages = pkgs.lib.getAttrFromPath ["haskellPackages_${ghcVer}"] pkgs;
17 haskellPackages.cabal.mkDerivation (self: {
20 version = cabal2nixSrc.gitTag;
23 buildDepends = with haskellPackages; [ Cabal filepath hackageDb HTTP mtl regexPosix ];
24 testDepends = with haskellPackages; [ doctest ];
25 doCheck = self.stdenv.lib.versionOlder "7.6" self.ghc.version;
27 homepage = "http://github.com/NixOS/cabal2nix";
28 description = "Convert Cabal files into Nix build instructions";
29 license = self.stdenv.lib.licenses.bsd3;
30 maintainers = [ self.stdenv.lib.maintainers.simons ];
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list