Fix meganekko double-compile
This commit is contained in:
1 parent
50f0db2420
commit
d3c523e84e
2 files changed
+4
-4
No files matched your search
@@ -7,10 +7,6 @@ edition = "2024"
|
||||
name = "meganekko"
|
||||
path = "src/main.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "mg"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
gpui = { version = "*"}
|
||||
image = "0.25"
|
||||
|
||||
@@ -51,6 +51,10 @@
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/${pname} \
|
||||
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtimeLibs}
|
||||
# `mg` is a short alias for the same program, not a second binary:
|
||||
# a symlink to the wrapper keeps LD_LIBRARY_PATH and saves cargo
|
||||
# compiling and linking src/main.rs a second time.
|
||||
ln -s ${pname} $out/bin/mg
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user