Skip to content

Adding extra build information to executables. #35

Answered by shanesveller
TheNeikos asked this question in Q&A
Discussion options

You must be logged in to vote

I can't seem to run your app on the flake-provided devShell on my hardware (6900XT GPU, NixOS 21.11.20220520.cbd40c7), so I can't get to a fully working solution, but I think something like this is a helpful incremental step:

diff --git a/flake.nix b/flake.nix
index a7e4883..415fe52 100644
--- a/flake.nix
+++ b/flake.nix
@@ -50,6 +50,18 @@
         galleria = craneLib.buildPackage {
           inherit cargoArtifacts src;
         };
+
+        wrappedGalleria = pkgs.symlinkJoin {
+          name = "galleria";
+          paths = [ galleria ];
+
+          buildInputs = [ pkgs.makeWrapper ];
+
+          postBuild = ''
+            wrapProgram $out/bin/galleria \
+              --prefix LD_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheNeikos
Comment options

Answer selected by TheNeikos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants