Skip to content

Commit

Permalink
Merge pull request #59 from MangoIV/mangoiv/remove-perl-override
Browse files Browse the repository at this point in the history
[chore] bump and remove cabal-install override of groff
  • Loading branch information
MangoIV authored Oct 23, 2024
2 parents 0e05362 + 426aa2b commit ed4bf6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 33 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 5 additions & 27 deletions nix/static.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
groff,
haskell,
haskellPackages,
lib,
makeWrapper,
perl536,
upx,
...
}: let
Expand All @@ -17,30 +14,11 @@
Cabal-syntax = hsuper.Cabal-syntax_3_10_3_0;
Cabal = hsuper.Cabal_3_10_3_0;
cabal-install-solver = hself.callHackage "cabal-install-solver" "3.10.3.0" {};
cabal-install =
hlib.overrideCabal {
postInstall = let
groffOldPerl = groff.override {
# perl 538 doesn't build in pkgsStatic at the moment
# https://github.com/NixOS/nixpkgs/issues/295608
perl = perl536;
};
in ''
mkdir -p "$out/share/man/man1"
"$out/bin/cabal" man --raw > "$out/share/man/man1/cabal.1"
wrapProgram "$out/bin/cabal" \
--prefix PATH : "${lib.makeBinPath [groffOldPerl]}"
'';
}
((hself.callHackage "cabal-install" "3.10.3.0" {
Cabal-QuickCheck = null;
Cabal-described = null;
Cabal-tree-diff = null;
})
.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs or [] ++ [makeWrapper];
}));
cabal-install = hself.callHackage "cabal-install" "3.10.3.0" {
Cabal-QuickCheck = null;
Cabal-described = null;
Cabal-tree-diff = null;
};
});
};
in
Expand Down

0 comments on commit ed4bf6d

Please sign in to comment.