Skip to main content
25 events
when toggle format what by license comment
Dec 20, 2024 at 19:20 comment added tobiasBora @Elias this is not a good solution as it will propagate to other libs and the loading order may cause issues. It is recommended instead to patch the binary with rpath as I explained it here unix.stackexchange.com/questions/522822/… if your program is already wrapped, e.g. by Qt, you should pass the rpath to the wrapper args to avoid having 2 wrappers.
Dec 20, 2024 at 19:06 comment added Elias Is this the correct way: LD_LIBRARY_PATH = "${lib.makeLibraryPath [ pkgs.libayatana-appindicator ]}";?
Dec 20, 2024 at 18:57 comment added Elias How do I deal with programs that utilize dlopen to load libraries?
Aug 10, 2024 at 1:33 comment added toraritte I wish I could upvote this every time I come back to Nix and rediscover this thread. Thank you!
May 20, 2024 at 7:38 comment added hallundbæk I refer to this post every time I have to package something on nix, It's a great reference! Though it is hard to discover, so I hope you would consider reposting/migrating it to the nixos wiki. Thanks again!
Apr 11, 2024 at 18:15 comment added tobiasBora @aktivb well, pkgs.callPackage ./derivation.nix {} is a literal replacement for pkgs.gawk, so you can just write ${pkgs.callPackage ./derivation.nix {}}/bin/yourapp. Another option is to add the package in the nixpkgs overlay (like myapp = pkgs.callPackage ./derivation.nix {};) and then use ${pkgs.myapp}/bin/foo.
Apr 11, 2024 at 11:55 comment added aktivb How can I then reference the custom derivation in nix? so I can do stuff like ${pkgs.gawk}/bin/awk
Feb 28, 2024 at 11:31 history edited tobiasBora CC BY-SA 4.0
added 200 characters in body
Nov 22, 2023 at 14:54 history edited tobiasBora CC BY-SA 4.0
added 974 characters in body
Nov 22, 2023 at 9:23 history edited tobiasBora CC BY-SA 4.0
added 56 characters in body
Nov 22, 2023 at 9:14 history edited tobiasBora CC BY-SA 4.0
added 440 characters in body
S Feb 13, 2023 at 9:31 history suggested Zxmon CC BY-SA 4.0
Fixed a typo where a path was .../.../PACKAGE/ but was Mentioned as PROGRAM
Feb 12, 2023 at 17:10 review Suggested edits
S Feb 13, 2023 at 9:31
Dec 9, 2022 at 22:25 vote accept tobiasBora
Sep 14, 2022 at 23:36 history edited tobiasBora CC BY-SA 4.0
added 4143 characters in body
Sep 14, 2022 at 23:19 history edited tobiasBora CC BY-SA 4.0
added 4143 characters in body
Sep 14, 2022 at 7:05 history edited tobiasBora CC BY-SA 4.0
deleted 70 characters in body
Sep 14, 2022 at 1:08 history edited tobiasBora CC BY-SA 4.0
added 154 characters in body
Sep 14, 2022 at 1:01 history edited tobiasBora CC BY-SA 4.0
added 6913 characters in body
Sep 14, 2022 at 0:22 history edited tobiasBora CC BY-SA 4.0
added 6913 characters in body
Sep 13, 2022 at 23:23 history edited tobiasBora CC BY-SA 4.0
added 2894 characters in body
Sep 13, 2022 at 22:04 history edited tobiasBora CC BY-SA 4.0
added 1513 characters in body
Sep 13, 2022 at 20:42 history edited tobiasBora CC BY-SA 4.0
added 1513 characters in body
Sep 13, 2022 at 19:29 history edited tobiasBora CC BY-SA 4.0
added 1513 characters in body
Sep 13, 2022 at 19:06 history answered tobiasBora CC BY-SA 4.0