From a6955fd8d9198433ff636c709bf9aca6606e0987 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 09:24:59 +0000 Subject: [PATCH] either: init at 5.0.2 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/either.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 pkgs/either.nix diff --git a/manifest.dhall b/manifest.dhall index c3a2f6ba..278e93f7 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -180,6 +180,7 @@ in [ callHackage "Cabal" "3.8.1.0" "https://gitlab.homotopic.tech/horizon/adopted/ed25519" (None Text) (None Text) + , callHackage "either" "5.0.2" , callHackage "email-validate" "2.3.2.16" , callCabal2nix "effectful-cache" diff --git a/overlay.nix b/overlay.nix index e1785ff5..37d511d1 100644 --- a/overlay.nix +++ b/overlay.nix @@ -179,6 +179,8 @@ final: prev: with pkgs.haskell.lib; { effectful-th = prev.callPackage (./pkgs/effectful-th.nix) { }; + either = prev.callPackage (./pkgs/either.nix) { }; + email-validate = prev.callPackage (./pkgs/email-validate.nix) { }; extra = prev.callPackage (./pkgs/extra.nix) { }; diff --git a/pkgs/either.nix b/pkgs/either.nix new file mode 100644 index 00000000..52ab1cbc --- /dev/null +++ b/pkgs/either.nix @@ -0,0 +1,43 @@ +{ mkDerivation +, base +, bifunctors +, lib +, mtl +, profunctors +, QuickCheck +, semigroupoids +, test-framework +, test-framework-quickcheck2 +}: +mkDerivation { + pname = "either"; + version = "5.0.2"; + sha256 = "bfa45b967fd77b1c7c952e156377441e3c42b6dc873ab1f06a7421a3222287be"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + bifunctors + mtl + profunctors + semigroupoids + ]; + testHaskellDepends = [ + base + QuickCheck + test-framework + test-framework-quickcheck2 + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://github.com/ekmett/either/"; + description = "Combinators for working with sums"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab