1/* Build instructions for the continuous integration system Hydra. */
3{ cabal2nixSrc ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
5, supportedPlatforms ? if releaseBuild then ["i686-linux" "x86_64-linux" "x86_64-darwin"] else ["x86_64-linux"]
6, supportedCompilers ? if releaseBuild then ["ghc783"] else ["ghc6104" "ghc6123" "ghc704" "ghc722" "ghc742" "ghc763" "ghc783" "ghcHEAD"]
10 genAttrs = (import <nixpkgs> { }).lib.genAttrs;
13 cabal2nix = genAttrs supportedCompilers (ghcVer: genAttrs supportedPlatforms (system:
15 pkgs = import <nixpkgs> { inherit system; };
16 haskellPackages = pkgs.lib.getAttrFromPath ["haskellPackages_${ghcVer}"] pkgs;
18 haskellPackages.cabal.mkDerivation (self: {
21 version = cabal2nixSrc.gitTag;
24 buildDepends = with haskellPackages; [ Cabal filepath hackageDb mtl regexPosix transformers ];
25 testDepends = with haskellPackages; [ doctest ];
26 doCheck = self.stdenv.lib.versionOlder "7.6" self.ghc.version;
28 homepage = "http://github.com/NixOS/cabal2nix";
29 description = "Convert Cabal files into Nix build instructions";
30 license = self.stdenv.lib.licenses.bsd3;
31 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