Skip to content

Commit

Permalink
cabal2nix: don't emit man postInstall script for pandoc >= 3.1.10
Browse files Browse the repository at this point in the history
The man page was moved from the pandoc release tarball to the pandoc-cli
tar ball. We'll just stop emitting this postInstall portion as soon as
the pandoc release tar ball no longer has the man page files. Instead
we'll just manually have this code in nixpkgs as an override, so we are
slowly working towards #504.
  • Loading branch information
sternenseemann committed Jan 4, 2024
1 parent 5551800 commit e394e96
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ hooks =
, ("opencv", opencvOverrides)
, ("pandoc >= 1.16.0.2 && < 2.5", set doCheck False) -- https://github.com/jgm/pandoc/issues/2709 and https://github.com/fpco/stackage/issues/1332
, ("pandoc < 2.6", pandocPre26Overrides)
, ("pandoc >= 2.6", pandocOverrides)
, ("pandoc >= 2.6 && < 3.1.10", pandocPre3110Overrides) -- https://github.com/jgm/pandoc/commit/55227a20273267c236ec039c3e6559287a1dca45
, ("pandoc-citeproc", set doCheck False) -- https://github.com/jgm/pandoc-citeproc/issues/369
, ("purescript", set doCheck False) -- test suite doesn't cope with Nix build env
, ("proto-lens-protobuf-types", set (libraryDepends . tool . contains (pkg "protobuf")) True)
Expand Down Expand Up @@ -389,8 +389,8 @@ pandocPre26Overrides = set phaseOverrides postInstall
, "'';"
]

pandocOverrides :: Derivation -> Derivation
pandocOverrides = set phaseOverrides postInstall
pandocPre3110Overrides :: Derivation -> Derivation
pandocPre3110Overrides = set phaseOverrides postInstall
where
postInstall = unlines [ "postInstall = ''"
, " mkdir -p $out/share/man/man1"
Expand Down

0 comments on commit e394e96

Please sign in to comment.