From 9fba4534d53e0c0cc0a8d9ee803a4c8d1469f25a Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 7 Nov 2022 11:27:27 +0000 Subject: [PATCH] text-conversions: init at 0.3.1.1 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/text-conversions.nix | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 pkgs/text-conversions.nix diff --git a/manifest.dhall b/manifest.dhall index ffd1da26..b01f7a8f 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -665,6 +665,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "test-framework-hunit" "0.3.0.2" , callHackage "test-framework-quickcheck2" "0.3.0.5" , callHackage "texmath" "0.12.5.4" + , callHackage "text-conversions" "0.3.1.1" , callHackage "text-display" "0.0.3.0" , callHackage "text-manipulate" "0.3.1.0" , callHackage "text-metrics" "0.3.2" diff --git a/overlay.nix b/overlay.nix index ffae17e4..f63034f9 100644 --- a/overlay.nix +++ b/overlay.nix @@ -981,6 +981,8 @@ self: with pkgs.haskell.lib; { texmath = self.callPackage (./pkgs/texmath.nix) { }; + text-conversions = self.callPackage (./pkgs/text-conversions.nix) { }; + text-display = self.callPackage (./pkgs/text-display.nix) { }; text-manipulate = self.callPackage (./pkgs/text-manipulate.nix) { }; diff --git a/pkgs/text-conversions.nix b/pkgs/text-conversions.nix new file mode 100644 index 00000000..ebc28f46 --- /dev/null +++ b/pkgs/text-conversions.nix @@ -0,0 +1,38 @@ +{ mkDerivation +, base +, base16-bytestring +, base64-bytestring +, bytestring +, hspec +, hspec-discover +, lib +, text +}: +mkDerivation { + pname = "text-conversions"; + version = "0.3.1.1"; + sha256 = "c8770fba789ce80334cae628285103c49abec0fa074773cbb5a88e26f5a7725d"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + base16-bytestring + base64-bytestring + bytestring + text + ]; + testHaskellDepends = [ base bytestring hspec text ]; + testToolDepends = [ hspec-discover ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/cjdev/text-conversions"; + description = "Safe conversions between textual types"; + license = lib.licenses.isc; + broken = false; +} -- GitLab