diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-05-06 04:44:28 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-05-06 04:45:20 +0200 |
commit | 06dab09f016794d347208c541d92016ce0a48162 (patch) | |
tree | 3ad8278e14114ee0c85b55de7400a08f2235acfb | |
parent | 68329aa4f4474354e7ef1ac73186ce3aa763cb57 (diff) |
overrides: Include manpages in erlang package.
These manpages are intentionally _not_ within manpath, because they conflict with other manpages. In order to view those manpages you have to run erl -man instead. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | overrides/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/overrides/default.nix b/overrides/default.nix index 309be7f0..898613d3 100644 --- a/overrides/default.nix +++ b/overrides/default.nix @@ -69,6 +69,18 @@ let scripts/gajim.in ''; }; + + erlang = o: let + manpages = pkgs.fetchurl { + url = "http://www.erlang.org/download/otp_doc_man_${o.version}.tar.gz"; + sha256 = "16dkz3w1q4ahy37c8a8r2h8zjcr7cxz7pd9z38chbxf6frc2pxxc"; + }; + in { + postInstall = (o.postInstall or "") + '' + ensureDir "$out/lib/erlang" + tar xf "${manpages}" -C "$out/lib/erlang" + ''; + }; }; # new packages |