glrnvim: fix build on darwin
This commit is contained in:
parent
e689d11166
commit
00095ffa60
@ -3,6 +3,7 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
|
darwin,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -18,6 +19,11 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoHash = "sha256-cHEse+pXwgPTL8GJyY4s1mhWXGTY8Fnn2rFpA5SNerY=";
|
cargoHash = "sha256-cHEse+pXwgPTL8GJyY4s1mhWXGTY8Fnn2rFpA5SNerY=";
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||||
|
DiskArbitration
|
||||||
|
Foundation
|
||||||
|
]);
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 glrnvim.desktop -t $out/share/applications
|
install -Dm644 glrnvim.desktop -t $out/share/applications
|
||||||
install -Dm644 glrnvim.svg $out/share/icons/hicolor/scalable/apps/glrnvim.svg
|
install -Dm644 glrnvim.svg $out/share/icons/hicolor/scalable/apps/glrnvim.svg
|
||||||
|
Loading…
Reference in New Issue
Block a user