From 033c799bb5f1fdd40c2cec8f1a4f6fa699bdd72d Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 12:40:00 +0000 Subject: [PATCH] th-orphans: init at 0.13.14 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/th-orphans.nix | 48 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 pkgs/th-orphans.nix diff --git a/manifest.dhall b/manifest.dhall index b135ba5f..2c6a18d8 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -576,6 +576,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "th-expand-syns" "0.4.10.0" , callHackage "th-extras" "0.0.0.6" , callHackage "th-lift-instances" "0.1.20" + , callHackage "th-orphans" "0.13.14" , callHackage "th-reify-many" "0.1.10" , callHackage "tidal" "1.8.1" , callHackage "time-compat" "1.9.6.1" diff --git a/overlay.nix b/overlay.nix index 92eb2d1b..9c16194c 100644 --- a/overlay.nix +++ b/overlay.nix @@ -779,6 +779,8 @@ final: prev: with pkgs.haskell.lib; { th-lift-instances = prev.callPackage (./pkgs/th-lift-instances.nix) { }; + th-orphans = prev.callPackage (./pkgs/th-orphans.nix) { }; + th-reify-many = prev.callPackage (./pkgs/th-reify-many.nix) { }; these = prev.callPackage (./pkgs/these.nix) { }; diff --git a/pkgs/th-orphans.nix b/pkgs/th-orphans.nix new file mode 100644 index 00000000..375a8789 --- /dev/null +++ b/pkgs/th-orphans.nix @@ -0,0 +1,48 @@ +{ mkDerivation +, base +, bytestring +, ghc-prim +, hspec +, hspec-discover +, lib +, mtl +, template-haskell +, th-compat +, th-lift +, th-reify-many +}: +mkDerivation { + pname = "th-orphans"; + version = "0.13.14"; + sha256 = "9ddb2a1a0f6afeb8b6697256bfa5930f1f75e99624e370931c4b48bd16c3077c"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + mtl + template-haskell + th-compat + th-lift + th-reify-many + ]; + testHaskellDepends = [ + base + bytestring + ghc-prim + hspec + template-haskell + th-lift + ]; + testToolDepends = [ hspec-discover ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Orphan instances for TH datatypes"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab