jacinda: init at 0.2.0.0

Expose from haskell.packages.ghc921 (which is the only GHC version that
can build it easily atm) and additionally install man page, language
guide and code examples.
main
sternenseemann 2 years ago committed by sterni
parent 452f76cfaf
commit c6923ee0d9
  1. 1
      pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix
  2. 18
      pkgs/development/haskell-modules/configuration-nix.nix
  3. 2
      pkgs/top-level/all-packages.nix
  4. 1
      pkgs/top-level/release-haskell.nix

@ -244,4 +244,5 @@ self: super: {
# need bytestring >= 0.11 which is only bundled with GHC >= 9.2
regex-rure = doDistribute (markUnbroken super.regex-rure);
jacinda = doDistribute super.jacinda;
}

@ -1054,4 +1054,22 @@ self: super: builtins.intersectAttrs super {
"-p" "!/Can be used with http-client/"
] ++ drv.testFlags or [];
}) super.http-api-data-qq;
# Additionally install documentation
jacinda = overrideCabal (drv: {
enableSeparateDocOutput = true;
postInstall = ''
${drv.postInstall or ""}
docDir="$doc/share/doc/${drv.pname}-${drv.version}"
# man page goes to $out, it's small enough and haskellPackages has no
# support for a man output at the moment and $doc requires downloading
# a full PDF
install -Dm644 man/ja.1 -t "$out/share/man/man1"
# language guide and examples
install -Dm644 doc/guide.pdf -t "$docDir"
install -Dm644 test/examples/*.jac -t "$docDir/examples"
'';
}) super.jacinda;
}

@ -13518,6 +13518,8 @@ with pkgs;
stdenv = clangStdenv;
};
jacinda = haskell.lib.compose.justStaticExecutables haskell.packages.ghc921.jacinda;
janet = callPackage ../development/interpreters/janet {};
jelly = callPackage ../development/interpreters/jelly {};

@ -188,6 +188,7 @@ let
icepeak
idris
ihaskell
jacinda
jl
koka
krank

Loading…
Cancel
Save