about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2017-09-15 20:51:22 +0200
committerGitHub <noreply@github.com>2017-09-15 20:51:22 +0200
commitd2f206c06199b8c4df3df1a8e8e125a702e1e4f5 (patch)
tree8438973db350c63dd8eb3739f80840b52499dbc5 /pkgs
parent6b7a9376f17deb2adb2b010e8022bea5e43042e9 (diff)
parent8119e48c2d90bb8252004389676d18501f0af4b7 (diff)
downloadnixlib-d2f206c06199b8c4df3df1a8e8e125a702e1e4f5.tar
nixlib-d2f206c06199b8c4df3df1a8e8e125a702e1e4f5.tar.gz
nixlib-d2f206c06199b8c4df3df1a8e8e125a702e1e4f5.tar.bz2
nixlib-d2f206c06199b8c4df3df1a8e8e125a702e1e4f5.tar.lz
nixlib-d2f206c06199b8c4df3df1a8e8e125a702e1e4f5.tar.xz
nixlib-d2f206c06199b8c4df3df1a8e8e125a702e1e4f5.tar.zst
nixlib-d2f206c06199b8c4df3df1a8e8e125a702e1e4f5.zip
Merge pull request #29328 from therealpxc/tldr-hs
haskellPackages.tldr: fix build, add as a top-level package
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix10
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 77c94f9f2502..85a5f961485c 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -104,6 +104,10 @@ self: super: {
   # Fix test trying to access /home directory
   shell-conduit = (overrideCabal super.shell-conduit (drv: {
     postPatch = "sed -i s/home/tmp/ test/Spec.hs";
+
+    # the tests for shell-conduit on Darwin illegitimatey assume non-GNU echo
+    # see: https://github.com/psibi/shell-conduit/issues/12
+    doCheck = !pkgs.stdenv.hostPlatform.isDarwin;
   }));
 
   # https://github.com/froozen/kademlia/issues/2
@@ -400,6 +404,12 @@ self: super: {
   th-printf = dontCheck super.th-printf;
   thumbnail-plus = dontCheck super.thumbnail-plus;
   tickle = dontCheck super.tickle;
+  tldr = super.tldr.override {
+    # shell-conduit determines what commands are available at compile-time, so
+    # that tldr will not compile unless the shell-conduit it uses is compiled
+    # with git in its environment.
+    shell-conduit = addBuildTool self.shell-conduit pkgs.git;
+  };
   tpdb = dontCheck super.tpdb;
   translatable-intset = dontCheck super.translatable-intset;
   ua-parser = dontCheck super.ua-parser;
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e02b240612f0..61c35ca93b14 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4568,6 +4568,8 @@ with pkgs;
 
   tldr = callPackage ../tools/misc/tldr { };
 
+  tldr-hs = haskellPackages.tldr;
+
   tlspool = callPackage ../tools/networking/tlspool { };
 
   tmate = callPackage ../tools/misc/tmate { };