From b5764dff2c0e285aee6c577b7893bd729769df4c Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 27 Oct 2020 23:57:18 -0600 Subject: [PATCH] override diagrams-core https://github.com/diagrams/diagrams-core/pull/113 --- nix/haskell/overrides.nix | 1 + nix/haskell/overrides/diagrams-core.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 nix/haskell/overrides/diagrams-core.nix diff --git a/nix/haskell/overrides.nix b/nix/haskell/overrides.nix index c0b313dc..55278636 100644 --- a/nix/haskell/overrides.nix +++ b/nix/haskell/overrides.nix @@ -2,6 +2,7 @@ self: super: { active = self.callPackage (import ./overrides/active.nix) {}; aeson-optics = self.callPackage (import ./overrides/aeson-optics.nix) {}; +diagrams-core = self.callPackage (import ./overrides/diagrams-core.nix) {}; dsv = self.callPackage (import ./overrides/dsv.nix) {}; dual-tree = self.callPackage (import ./overrides/dual-tree.nix) {}; grab = self.callPackage (import ./overrides/grab.nix) {}; diff --git a/nix/haskell/overrides/diagrams-core.nix b/nix/haskell/overrides/diagrams-core.nix new file mode 100644 index 00000000..a2c95a4c --- /dev/null +++ b/nix/haskell/overrides/diagrams-core.nix @@ -0,0 +1,21 @@ +{ mkDerivation, adjunctions, base, containers, distributive +, dual-tree, fetchgit, lens, linear, monoid-extras, mtl +, profunctors, semigroups, stdenv, unordered-containers +}: +mkDerivation { + pname = "diagrams-core"; + version = "1.4.2"; + src = fetchgit { + url = "https://github.com/chris-martin/diagrams-core"; + sha256 = "1x335pwvw6m44w2ykxdjq9dfck7pqyi1271qrwpfvq9g75j2871a"; + rev = "1cb7e0a1745053c37def2f09b0e68268583dada4"; + fetchSubmodules = true; + }; + libraryHaskellDepends = [ + adjunctions base containers distributive dual-tree lens linear + monoid-extras mtl profunctors semigroups unordered-containers + ]; + homepage = "http://projects.haskell.org/diagrams"; + description = "Core libraries for diagrams EDSL"; + license = stdenv.lib.licenses.bsd3; +}