Skip to content

Commit

Permalink
Remove obsolete groff overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
bryango committed Jan 14, 2024
1 parent 352d042 commit b3e4f85
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -185,24 +185,6 @@ in {

programs.man = {
enable = true; ## `disable` to use system manpage
package = pkgs.man.override {
groff = pkgs.groff.overrideAttrs (prevAttrs: let
site-tmac = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/afh/nixpkgs/groff-man-compat-staging/pkgs/tools/text/groff/site.tmac";
hash = "sha256-IOiTr1KF1Y4QiLTGdzaJXdpGxSzlj5dXqoTVhHJXBQQ=";
};
in {
postInstall = ''
for f in 'man.local' 'mdoc.local'; do
cat '${site-tmac}' >> "$out/share/groff/site-tmac/$f"
## lock these files to prevent overrides:
chmod a-w "$out/share/groff/site-tmac/$f"
set +e ## do not panic when later overrides fail
done
'' + prevAttrs.postInstall;
});
};
};

disabledModules = [
Expand Down

0 comments on commit b3e4f85

Please sign in to comment.