!XXmPwxJAJXDQzaElMj:matrix.org

Nix

941 Members
General discussion pertaining to Nix/NixOS. | NixOS: nixos.org | Nix: nixos.org/nix | Freenode IRC: #freenode_#nixos:matrix.org139 Servers

Load older messages


Timestamp Message
9 Apr 2020
22:27:40@balsoft:balsoft.rubalsoft

Also, I don't think buildFHSUserEnv makes any sense here, I don't even understand what you're trying to do

22:28:14@oj:d0.eeOJMaybe. I got pointed this way because I wanted something in /usr/bin and /usr/lib.
22:28:41@balsoft:balsoft.rubalsoft

(1) Why would you want stuff there (2) why are you trying to do it this way with overrideAttrs even though it makes 0 sense?

22:28:54@balsoft:balsoft.rubalsoft

Maybe you should explain what you need first

22:29:40@oj:d0.eeOJEstonian ID card software in Firefox.
22:30:14@oj:d0.eeOJDefault behaviour would be chrome-token-signing in /usr/bin and some opencs lib in /usr/lib.
22:30:44@balsoft:balsoft.rubalsoft

Can you patch the sources for your software?

22:31:59@oj:d0.eeOJI think patching is a bit crazy here.
22:33:26@oj:d0.eeOJI just want Firefox to have access to two little things in FHS location.
22:34:10@balsoft:balsoft.rubalsoft

Patching is usually how we do it in nixos land.

22:34:22@balsoft:balsoft.rubalsoft

Kill hardcoded paths with fire!

22:34:39@balsoft:balsoft.rubalsoft

But if you aren't in the mood for that, you can use buildFHSUserEnv, just not in the way you did it

22:34:59@oj:d0.eeOJYeah, not in the mood. Need a quick and dirty and get back in action.
22:35:00@balsoft:balsoft.rubalsoft

I'll be back in a second

22:36:51@balsoft:balsoft.rubalsoftRedacted or Malformed Event
22:37:02@balsoft:balsoft.rubalsoft

Use firefox-env instead of firefox wherever you're installing it.

22:37:20@balsoft:balsoft.rubalsoft

Although do note that I recommend you to eventually patch your software.

22:37:48@balsoft:balsoft.rubalsoft

And maybe even ping developers of said software so that they don't hardcode shit.

22:38:08@balsoft:balsoft.rubalsoft

$PATH and $LD_LIBRARY_PATH exist for a good reason.

22:38:35@balsoft:balsoft.rubalsoft

oops

22:39:47@balsoft:balsoft.rubalsoft
self: super: {
  firefox = super.firefox.override {
    extraNativeMessagingHosts = with super; [ chrome-token-signing ];
  };
  firefox-env = self.buildFHSUserEnv {
    name = "firefox";
    targetPkgs = _: with self; [ chrome-token-signing opensc firefox ];
    runScript = "firefox \"$@\"";
  };
}

22:40:44@balsoft:balsoft.rubalsoft

If it doesn't work, come back here or to #freenode_#nixos:matrix.org

22:40:53@balsoft:balsoft.rubalsoft

But it should

22:40:54@oj:d0.eeOJWell, you definitely have a better understanding of the syntax.
22:41:01@oj:d0.eeOJI'll test it.
22:41:34@balsoft:balsoft.rubalsoft

Yeah, writing (and understanding) nix is literally my job

22:41:46@balsoft:balsoft.rubalsoft

So I better have an understanding of its syntax.

10 Apr 2020
08:34:00@nicolaspetton:matrix.orgNicolas Petton joined the room.
08:57:11@archer72:matrix.orgarcher72 set a profile picture.
08:57:42@archer72:matrix.orgarcher72 changed their profile picture.

There are no newer messages yet.


Back to Room List