Fix meganekko double-compile

This commit is contained in:
Greg Shuflin committed 2026-09-15 03:11:14 -07:00
1 parent 50f0db2420
commit d3c523e84e
2 files changed
+4 -4

No files matched your search

-4
View File
@@ -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"
+4
View File
@@ -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
'';
};
});