1/* Build instructions for the continuous integration system Hydra. */
3{ cabal2nixSrc ? { outPath = ./.; revCount = 0; gitTag = "dirty"; }
5, supportedPlatforms ? ["x86_64-linux"] ++ (if releaseBuild then ["i686-linux" "x86_64-darwin"] else [])
6, supportedCompilers ? ["ghc7101"]
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 ["haskell-ng" "packages" ghcVer] pkgs;
18 haskellPackages.mkDerivation {
20 version = cabal2nixSrc.gitTag;
24 preConfigure = "runhaskell $setupCompileFlags generate-cabal-file.hs >cabal2nix.cabal";
25 buildTools = with haskellPackages; [ cartel pkgs.git ];
26 buildDepends = with haskellPackages; [
27 aeson base bytestring Cabal containers deepseq deepseq-generics
28 directory filepath hackage-db monad-par monad-par-extras mtl pretty
29 process QuickCheck regex-posix SHA split transformers
32 testDepends = with haskellPackages; [
33 aeson base bytestring Cabal containers deepseq deepseq-generics
34 directory doctest filepath hackage-db hspec monad-par
35 monad-par-extras mtl pretty process QuickCheck
36 regex-posix SHA split transformers utf8-string
38 homepage = "http://github.com/NixOS/cabal2nix";
39 description = "Convert Cabal files into Nix build instructions";
40 license = pkgs.stdenv.lib.licenses.bsd3;
41 maintainers = [ pkgs.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