mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
binocle: fix build on Darwin
This commit is contained in:
parent
3580e419ea
commit
3c695f159a
@ -3,6 +3,13 @@
|
|||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, AppKit
|
||||||
|
, CoreFoundation
|
||||||
|
, CoreGraphics
|
||||||
|
, CoreVideo
|
||||||
|
, Foundation
|
||||||
|
, Metal
|
||||||
|
, QuartzCore
|
||||||
, xorg
|
, xorg
|
||||||
, vulkan-loader
|
, vulkan-loader
|
||||||
}:
|
}:
|
||||||
@ -24,7 +31,11 @@ rustPlatform.buildRustPackage rec {
|
|||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
|
AppKit CoreFoundation CoreGraphics CoreVideo Foundation Metal QuartzCore
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (!stdenv.isDarwin) ''
|
||||||
wrapProgram $out/bin/binocle \
|
wrapProgram $out/bin/binocle \
|
||||||
--suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with xorg; [ libX11 libXcursor libXi libXrandr ] ++ [ vulkan-loader ])}
|
--suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with xorg; [ libX11 libXcursor libXi libXrandr ] ++ [ vulkan-loader ])}
|
||||||
'';
|
'';
|
||||||
@ -34,6 +45,5 @@ rustPlatform.buildRustPackage rec {
|
|||||||
homepage = "https://github.com/sharkdp/binocle";
|
homepage = "https://github.com/sharkdp/binocle";
|
||||||
license = with licenses; [ asl20 /* or */ mit ];
|
license = with licenses; [ asl20 /* or */ mit ];
|
||||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2044,7 +2044,9 @@ with pkgs;
|
|||||||
|
|
||||||
betterdiscord-installer = callPackage ../tools/misc/betterdiscord-installer { };
|
betterdiscord-installer = callPackage ../tools/misc/betterdiscord-installer { };
|
||||||
|
|
||||||
binocle = callPackage ../applications/misc/binocle { };
|
binocle = callPackage ../applications/misc/binocle {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) AppKit CoreFoundation CoreGraphics CoreVideo Foundation Metal QuartzCore;
|
||||||
|
};
|
||||||
|
|
||||||
bitwise = callPackage ../tools/misc/bitwise { };
|
bitwise = callPackage ../tools/misc/bitwise { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user