14 Jan 2025 |
@rnhmjoj:eurofusion.eu | In reply to @toonn:matrix.org A much nicer pattern IMO is `let inherit (set) value; in <body>`. for with lib; , but for with lib.maintainers it completely defeats the point | 10:46:42 |
l1npengtul | A binary application I'm dealing doesn't want to respect the HOME envvar. I'm assuming I have to make a FHS at this point. | 10:47:11 |
Niklas Korz | In reply to @niklaskorz:korz.dev I'd also love stdenv.mkDerivation rec to be catched by a linter... especially because it still is used by the nix-init template | 10:47:15 |
K900 | In reply to@l1npengtul:matrix.org A binary application I'm dealing doesn't want to respect the HOME envvar. I'm assuming I have to make a FHS at this point. Why does it need HOME inside a derivation? | 10:47:32 |
l1npengtul | It will only want to read its resources from $HOME/.local/share/program | 10:48:00 |
Niklas Korz | that sounds like a job for a patch, and ideally an upstream PR | 10:48:13 |
K900 | Then a fhsenv won't help you | 10:48:14 |
K900 | You'll want some sort of custom wrapper with bwrap probably | 10:48:31 |
K900 | But also that's insane | 10:48:35 |
K900 | And the application should be fixed | 10:48:38 |
Niklas Korz | would you mind sharing what application this is about? | 10:49:05 |
l1npengtul | Proprietary applications, amirite /s | 10:49:17 |
Niklas Korz | oh, well | 10:49:25 |
l1npengtul | Its an proprietary JUCE audio plugin from AudioThing | 10:49:35 |
Niklas Korz | in that case you could also make a wrapper that symlinks the resources into home on start | 10:49:41 |
Niklas Korz | and then starts the application itself | 10:49:51 |
l1npengtul | That could work too | 10:49:51 |
l1npengtul | I'll try that | 10:50:02 |
Niklas Korz | good luck :D | 10:51:17 |
Niklas Korz | also | 10:51:50 |
l1npengtul | Thanks, although this is probably not the craziest thing I had to do to get a JUCE plugin running properly :p | 10:51:53 |
Niklas Korz | does it by chance respect xdg data dirs | 10:51:55 |
Niklas Korz | I doubt it does but might be worth a try | 10:52:01 |
l1npengtul | I see when I strings the binary, but I tried changing the envvar manually within a distrobox and it didn't seem to do anything, but worth a shot | 10:52:52 |
Niklas Korz | or XDG_DATA_HOME | 10:53:03 |
Niklas Korz | but only if it does not try to write anything in there | 10:53:12 |
l1npengtul | (for context, to get MIDI working properly in JUCE I had to patch JUCE itself with substituteInPlace) | 10:53:55 |
toonn | NiklasKorz: The finalAttrs package is not without its problems. I'd really rather people stop complaining about rec unless the need to replace it shows up TBH. | 10:54:04 |
toonn | *pattern, not package | 10:54:11 |
l1npengtul | oh it definately does :p | 10:54:29 |