Skip to content

Commit

Permalink
Add release.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Jun 5, 2016
1 parent 1b0de3d commit f8b2241
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions release.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* Build instructions for the continuous integration system Hydra. */

{ releaseBuild ? false
, supportedSystems ? ["x86_64-linux"] ++ (if releaseBuild then ["i686-linux" "x86_64-darwin"] else [])
}:

with import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems; };

let


overrides = self: super: {

orbit = self.callPackage ./default.nix {};

# mkJob = pkg: pkgs.haskell.lib.buildStrictly (super.${pkg}.override {
# mkDerivation = args: super.mkDerivation (args // {
# src = cabal2nixSrc;
# version = cabal2nixSrc.gitTag;
# });
# });

# distribution-nixpkgs = self.mkJob "distribution-nixpkgs";

# cabal2nix = self.mkJob "cabal2nix";

# hackage2nix = self.mkJob "hackage2nix";

};

mkJob = attr: testOn supportedSystems (pkgs: ((pkgs.haskellPackages.override { inherit overrides; })).${attr});

in

mkJob "orbit"

0 comments on commit f8b2241

Please sign in to comment.