NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.3k stars 14.27k forks source link

Calf package does not set `LV2_PATH` #45663

Open smondet opened 6 years ago

smondet commented 6 years ago

Issue description

Should a package like Calf, add its path to the LV2_PATH variable? (https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/audio/calf/default.nix)

Steps to reproduce

Run a nix-shell with -p ardour -p calf, start ardour5 → it doesn't find the calf plugins.

Add this before starting Ardour:

export LV2_PATH=$LV2_PATH:"$(dirname $(which calfjackhost))/../lib/lv2/"

and then it finds them.

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the results.

jtojnar commented 6 years ago

A setup hook for LV2 plugins would be nice. It would allow us to simplify pulseeffects expression

https://github.com/NixOS/nixpkgs/blob/c2c13157bb4339069874206fa9588e75d106c808/pkgs/applications/audio/pulseeffects/default.nix#L95

to

  --set LV2_PATH "$LV2_PATH"
stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
yurkobb commented 4 years ago

I see that this path is not package-specific and in musnix it is configured in environment.variables:

    environment.variables = {
      DSSI_PATH   = "$HOME/.dssi:$HOME/.nix-profile/lib/dssi:/run/current-system/sw/lib/dssi";
      LADSPA_PATH = "$HOME/.ladspa:$HOME/.nix-profile/lib/ladspa:/run/current-system/sw/lib/ladspa";
      LV2_PATH    = "$HOME/.lv2:$HOME/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2";
      LXVST_PATH  = "$HOME/.lxvst:$HOME/.nix-profile/lib/lxvst:/run/current-system/sw/lib/lxvst";
      VST_PATH    = "$HOME/.vst:$HOME/.nix-profile/lib/vst:/run/current-system/sw/lib/vst";
    };

May this can be solved system-wide (and perhaps be the default for nixos)?

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

miniBill commented 2 years ago

I would love to see this fixed

nixos-discourse commented 2 years ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/creating-a-standardized-audio-production-environment-with-flakes/22191/2

SuperSandro2000 commented 1 year ago

Please create a nixosModule probably named programs.ardour setting those envs.