diff options
author | flurie <flurie@gmail.com> | 2021-11-17 23:06:01 -0500 |
---|---|---|
committer | flurie <flurie@gmail.com> | 2021-11-17 23:06:01 -0500 |
commit | 12157af2ecb46383c0c6c0f8c3d7dceaaf9aa664 (patch) | |
tree | 2aabd423e646520aa213c01e982a379f9fe81765 /pkgs/applications/video/ccextractor | |
parent | 15cef1392105e63d1aa327525a915c50019c6f59 (diff) |
ccextractor: fix build on x86_64-darwin
Diffstat (limited to 'pkgs/applications/video/ccextractor')
-rw-r--r-- | pkgs/applications/video/ccextractor/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/video/ccextractor/default.nix b/pkgs/applications/video/ccextractor/default.nix index 5bb13e116174a..905034091a297 100644 --- a/pkgs/applications/video/ccextractor/default.nix +++ b/pkgs/applications/video/ccextractor/default.nix @@ -23,7 +23,12 @@ stdenv.mkDerivation rec { sha256 = "sha256-usVAKBkdd8uz9cD5eLd0hnwGonOJLscRdc+iWDlNXVc="; }; - sourceRoot = "source/src"; + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace src/CMakeLists.txt \ + --replace 'add_definitions(-DGPAC_CONFIG_LINUX)' 'add_definitions(-DGPAC_CONFIG_DARWIN)' + ''; + + cmakeDir = "../src"; nativeBuildInputs = [ pkg-config cmake makeWrapper ]; |