Skip to content

Commit

Permalink
Regenerate shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
ocharles committed May 15, 2018
1 parent 644c5c1 commit 353ae66
Showing 1 changed file with 33 additions and 18 deletions.
51 changes: 33 additions & 18 deletions shell.nix
@@ -1,19 +1,34 @@
with (import <nixpkgs> {}).pkgs;
let pkg = haskellngPackages.callPackage
({ mkDerivation, base, containers, generic-deriving, ghc-prim, mtl
, stdenv, stm, tagged, tasty, transformers, xml
}:
mkDerivation {
pname = "tasty-ant-xml";
version = "1.0.2";
src = ./.;
buildDepends = [
base containers generic-deriving ghc-prim mtl stm tagged tasty
transformers xml
];
homepage = "http://github.com/ocharles/tasty-ant-xml";
description = "Render tasty output to XML for Jenkins";
license = stdenv.lib.licenses.bsd3;
}) {};
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default", doBenchmark ? false }:

let

inherit (nixpkgs) pkgs;

f = { mkDerivation, base, containers, directory, filepath
, generic-deriving, ghc-prim, mtl, stdenv, stm, tagged, tasty
, transformers, xml
}:
mkDerivation {
pname = "tasty-ant-xml";
version = "1.1.3";
src = ./.;
libraryHaskellDepends = [
base containers directory filepath generic-deriving ghc-prim mtl
stm tagged tasty transformers xml
];
homepage = "http://github.com/ocharles/tasty-ant-xml";
description = "Render tasty output to XML for Jenkins";
license = stdenv.lib.licenses.bsd3;
};

haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};

variant = if doBenchmark then pkgs.haskell.lib.doBenchmark else pkgs.lib.id;

drv = variant (haskellPackages.callPackage f {});

in
pkg.env

if pkgs.lib.inNixShell then drv.env else drv

0 comments on commit 353ae66

Please sign in to comment.