git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29328 from therealpxc/tldr-hs

haskellPackages.tldr: fix build, add as a top-level package

commitd2f206c06199b8c4df3df1a8e8e125a702e1e4f5 authorPeter Simons <simons@cryp.to> dateFri 15 Sep 2017, 20:51 (9 years ago) parent6b7a9378119e48
2 files changed+12
pkgs/development/haskell-modules/configuration-common.nix+10 pkgs/top-level/all-packages.nix+2
pkgs/development/haskell-modules/configuration-common.nix+10
@@ -104,6 +104,10 @@ self: super: {
104104 # Fix test trying to access /home directory
105105 shell-conduit = (overrideCabal super.shell-conduit (drv: {
106106 postPatch = "sed -i s/home/tmp/ test/Spec.hs";
107+
108+ # the tests for shell-conduit on Darwin illegitimatey assume non-GNU echo
109+ # see: https://github.com/psibi/shell-conduit/issues/12
110+ doCheck = !pkgs.stdenv.hostPlatform.isDarwin;
107111 }));
108112
109113 # https://github.com/froozen/kademlia/issues/2
@@ -400,6 +404,12 @@ self: super: {
400404 th-printf = dontCheck super.th-printf;
401405 thumbnail-plus = dontCheck super.thumbnail-plus;
402406 tickle = dontCheck super.tickle;
407+ tldr = super.tldr.override {
408+ # shell-conduit determines what commands are available at compile-time, so
409+ # that tldr will not compile unless the shell-conduit it uses is compiled
410+ # with git in its environment.
411+ shell-conduit = addBuildTool self.shell-conduit pkgs.git;
412+ };
403413 tpdb = dontCheck super.tpdb;
404414 translatable-intset = dontCheck super.translatable-intset;
405415 ua-parser = dontCheck super.ua-parser;
pkgs/top-level/all-packages.nix+2
@@ -4568,6 +4568,8 @@ with pkgs;
45684568
45694569 tldr = callPackage ../tools/misc/tldr { };
45704570
4571+ tldr-hs = haskellPackages.tldr;
4572+
45714573 tlspool = callPackage ../tools/networking/tlspool { };
45724574
45734575 tmate = callPackage ../tools/misc/tmate { };