Skip to content

Commit

Permalink
Build criterion with embedded assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Gonzalez committed Dec 2, 2017
1 parent 5e042df commit 9b55900
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
34 changes: 34 additions & 0 deletions criterion.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ mkDerivation, aeson, ansi-wl-pprint, base, base-compat, binary
, bytestring, cassava, code-page, containers, deepseq, directory
, exceptions, fetchgit, filepath, Glob, HUnit, js-flot, js-jquery
, microstache, mtl, mwc-random, optparse-applicative, parsec
, QuickCheck, semigroups, statistics, stdenv, tasty, tasty-hunit
, tasty-quickcheck, text, time, transformers, transformers-compat
, vector, vector-algorithms
}:
mkDerivation {
pname = "criterion";
version = "1.2.4.0";
src = fetchgit {
url = "https://github.com/bos/criterion";
sha256 = "0ir02sgfr40y77bh5q1sajld387bjkwl5gdlc7cwz9xcyadk8019";
rev = "bea91eae7a6c0d4246045f27c9462ea6d138591a";
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson ansi-wl-pprint base base-compat binary bytestring cassava
code-page containers deepseq directory exceptions filepath Glob
js-flot js-jquery microstache mtl mwc-random optparse-applicative
parsec semigroups statistics text time transformers
transformers-compat vector vector-algorithms
];
executableHaskellDepends = [ base optparse-applicative ];
testHaskellDepends = [
aeson base bytestring deepseq directory HUnit QuickCheck statistics
tasty tasty-hunit tasty-quickcheck vector
];
homepage = "http://www.serpentine.com/criterion";
description = "Robust, reliable performance measurement and analysis";
license = stdenv.lib.licenses.bsd3;
}
5 changes: 5 additions & 0 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ let
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: {
bench = haskellPackagesNew.callPackage ./default.nix { };

criterion =
pkgs.haskell.lib.addBuildDepend (pkgs.haskell.lib.appendConfigureFlag (haskellPackagesNew.callPackage ./criterion.nix { }) "-fembed-data-files") haskellPackagesOld.file-embed;

statistics = pkgs.haskell.lib.dontCheck (haskellPackagesOld.statistics_0_14_0_2);
};
};
};
Expand Down
11 changes: 11 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
resolver: lts-9.6
packages:
- .
- location:
git: https://github.com/bos/criterion.git
commit: bea91eae7a6c0d4246045f27c9462ea6d138591a
extra-dep: true
flags:
criterion:
embed-data-files: true
extra-deps:
- statistics-0.14.0.2

0 comments on commit 9b55900

Please sign in to comment.