Skip to content

Citeproc executable not available without override #196469

@LoganWalls

Description

@LoganWalls

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

  1. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: haskellGeneral-purpose, statically typed, purely functional programming language
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions