Loading pkgs/development/libraries/capstone/default.nix +5 −3 Original line number Diff line number Diff line Loading @@ -7,16 +7,18 @@ stdenv.mkDerivation rec { pname = "capstone"; version = "5.0.1"; version = "5.0.3"; src = fetchFromGitHub { owner = "capstone-engine"; repo = "capstone"; rev = version; sha256 = "sha256-kKmL5sae9ruWGu1gas1mel9qM52qQOD+zLj8cRE3isg="; hash = "sha256-LZ10czBn5oaKMHQ8xguC6VZa7wvEgPRu6oWt/22QaDs="; }; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" true) ] ++ lib.optionals stdenv.isDarwin [ (lib.cmakeBool "CAPSTONE_BUILD_MACOS_THIN" true) ]; nativeBuildInputs = [ cmake Loading pkgs/development/python-modules/capstone/default.nix +4 −12 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ capstone, stdenv, setuptools, fetchpatch, }: buildPythonPackage rec { Loading @@ -13,15 +12,6 @@ buildPythonPackage rec { src = capstone.src; sourceRoot = "${src.name}/bindings/python"; patches = [ # Drop distutils in python binding (PR 2271) (fetchpatch { name = "drop-distutils-in-python-binding.patch"; url = "https://github.com/capstone-engine/capstone/commit/d63211e3acb64fceb8b1c4a0d804b4b027f4ef71.patch"; hash = "sha256-zUGeFmm3xH5dzfPJE8nnHwqwFBrsZ7w8LBJAy20/3RI="; stripLen = 2; }) ]; # libcapstone.a is not built with BUILD_SHARED_LIBS. For some reason setup.py # checks if it exists but it is not really needed. Most likely a bug in setup.py. Loading @@ -42,8 +32,10 @@ buildPythonPackage rec { checkPhase = '' mv capstone capstone.hidden pushd tests patchShebangs test_* make check make -f ../Makefile check popd ''; meta = with lib; { Loading Loading
pkgs/development/libraries/capstone/default.nix +5 −3 Original line number Diff line number Diff line Loading @@ -7,16 +7,18 @@ stdenv.mkDerivation rec { pname = "capstone"; version = "5.0.1"; version = "5.0.3"; src = fetchFromGitHub { owner = "capstone-engine"; repo = "capstone"; rev = version; sha256 = "sha256-kKmL5sae9ruWGu1gas1mel9qM52qQOD+zLj8cRE3isg="; hash = "sha256-LZ10czBn5oaKMHQ8xguC6VZa7wvEgPRu6oWt/22QaDs="; }; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" true) ] ++ lib.optionals stdenv.isDarwin [ (lib.cmakeBool "CAPSTONE_BUILD_MACOS_THIN" true) ]; nativeBuildInputs = [ cmake Loading
pkgs/development/python-modules/capstone/default.nix +4 −12 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ capstone, stdenv, setuptools, fetchpatch, }: buildPythonPackage rec { Loading @@ -13,15 +12,6 @@ buildPythonPackage rec { src = capstone.src; sourceRoot = "${src.name}/bindings/python"; patches = [ # Drop distutils in python binding (PR 2271) (fetchpatch { name = "drop-distutils-in-python-binding.patch"; url = "https://github.com/capstone-engine/capstone/commit/d63211e3acb64fceb8b1c4a0d804b4b027f4ef71.patch"; hash = "sha256-zUGeFmm3xH5dzfPJE8nnHwqwFBrsZ7w8LBJAy20/3RI="; stripLen = 2; }) ]; # libcapstone.a is not built with BUILD_SHARED_LIBS. For some reason setup.py # checks if it exists but it is not really needed. Most likely a bug in setup.py. Loading @@ -42,8 +32,10 @@ buildPythonPackage rec { checkPhase = '' mv capstone capstone.hidden pushd tests patchShebangs test_* make check make -f ../Makefile check popd ''; meta = with lib; { Loading