From 06dab09f016794d347208c541d92016ce0a48162 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 6 May 2014 04:44:28 +0200 Subject: 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 --- overrides/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'overrides/default.nix') 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 -- cgit 1.4.1