glrnvim: fix build on darwin

This commit is contained in:
aleksana 2024-07-02 18:05:14 +08:00
parent e689d11166
commit 00095ffa60

View File

@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
}:
rustPlatform.buildRustPackage rec {
@ -18,6 +19,11 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-cHEse+pXwgPTL8GJyY4s1mhWXGTY8Fnn2rFpA5SNerY=";
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
DiskArbitration
Foundation
]);
postInstall = ''
install -Dm644 glrnvim.desktop -t $out/share/applications
install -Dm644 glrnvim.svg $out/share/icons/hicolor/scalable/apps/glrnvim.svg