From 262ba041ecd2cee1264c553e044daff373fba6cc Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 15:00:19 +0000 Subject: [PATCH] th-env: init at 0.1.1 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/th-env.nix | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 pkgs/th-env.nix diff --git a/manifest.dhall b/manifest.dhall index 6edfeef2..48051c38 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -609,6 +609,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "these" "1.1.1.1" , callHackage "these-skinny" "0.7.5" , callHackage "tf-random" "0.5" + , callHackage "th-env" "0.1.1" , callHackage "th-expand-syns" "0.4.10.0" , callHackage "th-extras" "0.0.0.6" , callHackage "th-lift-instances" "0.1.20" diff --git a/overlay.nix b/overlay.nix index 00e61ed0..6e3724fe 100644 --- a/overlay.nix +++ b/overlay.nix @@ -845,6 +845,8 @@ final: prev: with pkgs.haskell.lib; { tf-random = prev.callPackage (./pkgs/tf-random.nix) { }; + th-env = prev.callPackage (./pkgs/th-env.nix) { }; + th-expand-syns = prev.callPackage (./pkgs/th-expand-syns.nix) { }; th-extras = prev.callPackage (./pkgs/th-extras.nix) { }; diff --git a/pkgs/th-env.nix b/pkgs/th-env.nix new file mode 100644 index 00000000..601cf7ad --- /dev/null +++ b/pkgs/th-env.nix @@ -0,0 +1,29 @@ +{ mkDerivation +, base +, lib +, markdown-unlit +, template-haskell +, th-compat +}: +mkDerivation { + pname = "th-env"; + version = "0.1.1"; + sha256 = "fc01b166df6ba45f6ce157165eb786da208dbab41252fd81134f8ba02cf3f505"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base template-haskell th-compat ]; + testHaskellDepends = [ base markdown-unlit ]; + testToolDepends = [ markdown-unlit ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/dzhus/th-env#readme"; + description = "Template Haskell splices that expand to an environment variable"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab