mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 20:44:12 +00:00
Merge pull request #311400 from RaghavSood/dim/fix-build
dim: add missing darwin dependencies
This commit is contained in:
commit
1e91d30398
@ -4,6 +4,7 @@
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
buildNpmPackage,
|
||||
darwin,
|
||||
makeWrapper,
|
||||
ffmpeg_5,
|
||||
git,
|
||||
@ -66,9 +67,14 @@ rustPlatform.buildRustPackage rec {
|
||||
git
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
] ++ lib.optional libvaSupport libva;
|
||||
buildInputs =
|
||||
[ sqlite ]
|
||||
++ lib.optional stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
]
|
||||
++ lib.optional libvaSupport libva;
|
||||
|
||||
buildFeatures = lib.optional libvaSupport "vaapi";
|
||||
|
||||
@ -95,7 +101,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/dim \
|
||||
--prefix PATH : ${lib.makeBinPath [ffmpeg_5]}
|
||||
--prefix PATH : ${lib.makeBinPath [ ffmpeg_5 ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user