diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2022-07-10 14:26:52 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2022-07-21 17:03:54 -0400 |
commit | 3c695f159a7124f5355c1b2ee58b39f7b594218c (patch) | |
tree | 09ad4e71fc822b2aa5443aca93a2e903d0e75669 /pkgs/applications/misc/binocle | |
parent | 3580e419eae9db9357b02ea35da0a0a7430abdbd (diff) |
binocle: fix build on Darwin
Diffstat (limited to 'pkgs/applications/misc/binocle')
-rw-r--r-- | pkgs/applications/misc/binocle/default.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/applications/misc/binocle/default.nix b/pkgs/applications/misc/binocle/default.nix index ccb748fe3a627..6a999790635ab 100644 --- a/pkgs/applications/misc/binocle/default.nix +++ b/pkgs/applications/misc/binocle/default.nix @@ -3,6 +3,13 @@ , rustPlatform , fetchFromGitHub , makeWrapper +, AppKit +, CoreFoundation +, CoreGraphics +, CoreVideo +, Foundation +, Metal +, QuartzCore , xorg , vulkan-loader }: @@ -24,7 +31,11 @@ rustPlatform.buildRustPackage rec { makeWrapper ]; - postInstall = '' + buildInputs = lib.optionals stdenv.isDarwin [ + AppKit CoreFoundation CoreGraphics CoreVideo Foundation Metal QuartzCore + ]; + + postInstall = lib.optionalString (!stdenv.isDarwin) '' wrapProgram $out/bin/binocle \ --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"; license = with licenses; [ asl20 /* or */ mit ]; maintainers = with maintainers; [ SuperSandro2000 ]; - broken = stdenv.isDarwin; }; } |