!kjdutkOsheZdjqYmqp:nixos.org

Empty Room

1912 Members
400 Servers

Load older messages


SenderMessageTime
14 Jan 2025
@niklaskorz:korz.devNiklas 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:0upti.meK900
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:matrix.orgl1npengtulIt will only want to read its resources from $HOME/.local/share/program10:48:00
@niklaskorz:korz.devNiklas Korzthat sounds like a job for a patch, and ideally an upstream PR10:48:13
@k900:0upti.meK900Then a fhsenv won't help you10:48:14
@k900:0upti.meK900You'll want some sort of custom wrapper with bwrap probably10:48:31
@k900:0upti.meK900But also that's insane10:48:35
@k900:0upti.meK900And the application should be fixed10:48:38
@niklaskorz:korz.devNiklas Korzwould you mind sharing what application this is about?10:49:05
@l1npengtul:matrix.orgl1npengtulProprietary applications, amirite /s10:49:17
@niklaskorz:korz.devNiklas Korzoh, well10:49:25
@l1npengtul:matrix.orgl1npengtulIts an proprietary JUCE audio plugin from AudioThing10:49:35
@niklaskorz:korz.devNiklas Korzin that case you could also make a wrapper that symlinks the resources into home on start10:49:41
@niklaskorz:korz.devNiklas Korzand then starts the application itself10:49:51
@l1npengtul:matrix.orgl1npengtulThat could work too10:49:51
@l1npengtul:matrix.orgl1npengtulI'll try that10:50:02
@niklaskorz:korz.devNiklas Korzgood luck :D10:51:17
@niklaskorz:korz.devNiklas Korzalso10:51:50
@l1npengtul:matrix.orgl1npengtulThanks, although this is probably not the craziest thing I had to do to get a JUCE plugin running properly :p10:51:53
@niklaskorz:korz.devNiklas Korzdoes it by chance respect xdg data dirs10:51:55
@niklaskorz:korz.devNiklas KorzI doubt it does but might be worth a try10:52:01
@l1npengtul:matrix.orgl1npengtulI 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 shot10:52:52
@niklaskorz:korz.devNiklas Korzor XDG_DATA_HOME10:53:03
@niklaskorz:korz.devNiklas Korzbut only if it does not try to write anything in there10:53:12
@l1npengtul:matrix.orgl1npengtul(for context, to get MIDI working properly in JUCE I had to patch JUCE itself with substituteInPlace)10:53:55
@toonn:matrix.orgtoonn 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:matrix.orgtoonn *pattern, not package 10:54:11
@l1npengtul:matrix.orgl1npengtuloh it definately does :p10:54:29
@l1npengtul:matrix.orgl1npengtulill just symlink10:54:33
@niklaskorz:korz.devNiklas Korz
In reply to @toonn:matrix.org
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.
rec packages are hard to overrideAttrs, so I wonder what problem that finalAttrs pattern has?
10:55:34

Show newer messages


Back to Room ListRoom Version: 6