mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-19 02:47:34 +03:00
57 lines
2.0 KiB
Nix
57 lines
2.0 KiB
Nix
|
{ system
|
||
|
, compiler
|
||
|
, flags
|
||
|
, pkgs
|
||
|
, hsPkgs
|
||
|
, pkgconfPkgs
|
||
|
, errorHandler
|
||
|
, config
|
||
|
, ... }:
|
||
|
{
|
||
|
flags = {};
|
||
|
package = {
|
||
|
specVersion = "1.8";
|
||
|
identifier = { name = "pretty"; version = "1.1.3.6"; };
|
||
|
license = "BSD-3-Clause";
|
||
|
copyright = "";
|
||
|
maintainer = "David Terei <code@davidterei.com>";
|
||
|
author = "";
|
||
|
homepage = "http://github.com/haskell/pretty";
|
||
|
url = "";
|
||
|
synopsis = "Pretty-printing library";
|
||
|
description = "This package contains a pretty-printing library, a set of API's\nthat provides a way to easily print out text in a consistent\nformat of your choosing. This is useful for compilers and related\ntools.\n\nThis library was originally designed by John Hughes's and has since\nbeen heavily modified by Simon Peyton Jones.";
|
||
|
buildType = "Simple";
|
||
|
};
|
||
|
components = {
|
||
|
"library" = {
|
||
|
depends = [
|
||
|
(hsPkgs."base" or (errorHandler.buildDepError "base"))
|
||
|
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
|
||
|
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
|
||
|
];
|
||
|
buildable = true;
|
||
|
};
|
||
|
tests = {
|
||
|
"test-pretty" = {
|
||
|
depends = [
|
||
|
(hsPkgs."base" or (errorHandler.buildDepError "base"))
|
||
|
(hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq"))
|
||
|
(hsPkgs."ghc-prim" or (errorHandler.buildDepError "ghc-prim"))
|
||
|
(hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck"))
|
||
|
];
|
||
|
buildable = true;
|
||
|
};
|
||
|
};
|
||
|
benchmarks = {
|
||
|
"pretty-bench" = {
|
||
|
depends = [
|
||
|
(hsPkgs."base" or (errorHandler.buildDepError "base"))
|
||
|
(hsPkgs."criterion" or (errorHandler.buildDepError "criterion"))
|
||
|
(hsPkgs."pretty" or (errorHandler.buildDepError "pretty"))
|
||
|
];
|
||
|
buildable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
} // rec { src = (pkgs.lib).mkDefault ./.; }
|