Describe the bug
haskellPackages.citeproc does not provide an executable (for example, entering a nix shell and calling citeproc -h fails with citeproc: command not found
Steps To Reproduce
- Run
nix-shell -p 'haskell.lib.justStaticExecutables haskellPackages.citeproc' --run 'citeproc -h'
Expected behavior
The citeproc executable should be available without an override.
Additional context
I posted about this issue in the discourse. @sternenseemann was very helpful and pointed out that upstream has disabled the executable by default – placing it behind a cabal flag.
He shared the following workaround (which works for me):
nix-shell -p "with haskell.lib.compose; justStaticExecutables (addBuildDepends [ haskellPackages.aeson-pretty haskellPackages.text-icu ] (enableCabalFlag \"executable\" haskellPackages.citeproc))"
It would be nice if the executable were accessible without needing to alter the build dependencies and the flags, though. So I've opened this issue.
Notify maintainers
@NixOS/haskell
Metadata
❯ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
- host os: `Darwin 21.6.0, macOS 12.6`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.9.1`
- channels(logan): `"home-manager, nixpkgs"`
- channels(root): `"nixpkgs"`
- nixpkgs: `/Users/logan/.nix-defexpr/channels/nixpkgs`
Thank you!
Describe the bug
haskellPackages.citeprocdoes not provide an executable (for example, entering a nix shell and callingciteproc -hfails withciteproc: command not foundSteps To Reproduce
nix-shell -p 'haskell.lib.justStaticExecutables haskellPackages.citeproc' --run 'citeproc -h'Expected behavior
The
citeprocexecutable should be available without an override.Additional context
I posted about this issue in the discourse. @sternenseemann was very helpful and pointed out that upstream has disabled the executable by default – placing it behind a cabal flag.
He shared the following workaround (which works for me):
nix-shell -p "with haskell.lib.compose; justStaticExecutables (addBuildDepends [ haskellPackages.aeson-pretty haskellPackages.text-icu ] (enableCabalFlag \"executable\" haskellPackages.citeproc))"It would be nice if the executable were accessible without needing to alter the build dependencies and the flags, though. So I've opened this issue.
Notify maintainers
@NixOS/haskell
Metadata
Thank you!