lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #194596 from wegank/unrardll-darwin

python310Packages.unrardll: fix build on darwin

authored by

Stanisław Pitucha and committed by
GitHub
155badcd 0dd0204e

+8 -1
+8 -1
pkgs/development/python-modules/unrardll/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, unrar }: 1 + { lib, stdenv, buildPythonPackage, fetchPypi, unrar }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "unrardll"; ··· 10 10 }; 11 11 12 12 buildInputs = [ unrar ]; 13 + 14 + NIX_CFLAGS_LINK = lib.optionalString stdenv.isDarwin "-headerpad_max_install_names"; 15 + 16 + postInstall = lib.optionalString stdenv.isDarwin '' 17 + install_name_tool -change libunrar.so ${unrar}/lib/libunrar.so $out/lib/python*/site-packages/unrardll/unrar.*-darwin.so 18 + install_name_tool -change libunrar.so ${unrar}/lib/libunrar.so build/lib.*/unrardll/unrar.*-darwin.so 19 + ''; 13 20 14 21 pythonImportsCheck = [ "unrardll" ]; 15 22