7 # The patch exploits the fact that the download part is enclosed with "# ---"
8 # To use this module you will need to pass the CMake variable MIMALLOC_LIB
9 # example: -DMIMALLOC_LIB=${pkgs.mimalloc}/lib/mimalloc.o
11 # Direct link for the original CMakeLists.txt: https://raw.githubusercontent.com/media-kit/media-kit/main/libs/linux/media_kit_libs_linux/linux/CMakeLists.txt
13 { version, src, ... }:
16 pname = "media_kit_libs_linux";
18 inherit (src) passthru;
23 awk -i inplace 'BEGIN {opened = 0}; /# --*[^$]*/ { print (opened ? "]===]" : "#[===["); opened = !opened }; {print $0}' linux/CMakeLists.txt