From aa6ed7b071c7f570569503524ddfc4b8c566976d Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 27 Oct 2020 18:13:53 -0600 Subject: [PATCH] override dual-tree https://github.com/diagrams/dual-tree/pull/13 --- nix/haskell/overrides.nix | 1 + nix/haskell/overrides/dual-tree.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 nix/haskell/overrides/dual-tree.nix diff --git a/nix/haskell/overrides.nix b/nix/haskell/overrides.nix index 1f102456..8444edd0 100644 --- a/nix/haskell/overrides.nix +++ b/nix/haskell/overrides.nix @@ -2,6 +2,7 @@ self: super: { aeson-optics = self.callPackage (import ./overrides/aeson-optics.nix) {}; dsv = self.callPackage (import ./overrides/dsv.nix) {}; +dual-tree = self.callPackage (import ./overrides/dual-tree.nix) {}; grab = self.callPackage (import ./overrides/grab.nix) {}; grab-form = self.callPackage (import ./overrides/grab-form.nix) {}; hs-nix-modules = self.callPackage (import ./overrides/hs-nix-modules.nix) {}; diff --git a/nix/haskell/overrides/dual-tree.nix b/nix/haskell/overrides/dual-tree.nix new file mode 100644 index 00000000..897192e4 --- /dev/null +++ b/nix/haskell/overrides/dual-tree.nix @@ -0,0 +1,21 @@ +{ mkDerivation, base, fetchgit, monoid-extras, newtype-generics +, QuickCheck, semigroups, stdenv, testing-feat +}: +mkDerivation { + pname = "dual-tree"; + version = "0.2.2.1"; + src = fetchgit { + url = "https://github.com/chris-martin/dual-tree.git"; + sha256 = "1xlxr248sjvh6yv2nswivdg4qsm5530i8dp0h2pzqpxns04inqg9"; + rev = "f8bfbe9226f277004ac8a3af781175ad8207684f"; + fetchSubmodules = true; + }; + libraryHaskellDepends = [ + base monoid-extras newtype-generics semigroups + ]; + testHaskellDepends = [ + base monoid-extras QuickCheck semigroups testing-feat + ]; + description = "Rose trees with cached and accumulating monoidal annotations"; + license = stdenv.lib.licenses.bsd3; +}