mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
Merge pull request #191582 from risicle/ris-rizin-0.4.1
rizin: 0.4.0 -> 0.4.1
This commit is contained in:
commit
36658b21b8
|
@ -1,4 +1,9 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, fixDarwinDylibNames
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "capstone";
|
||||
|
@ -31,6 +36,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
fixDarwinDylibNames
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
|
@ -18,16 +18,15 @@
|
|||
, ninja
|
||||
, capstone
|
||||
, tree-sitter
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rizin";
|
||||
version = "0.4.0";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/rizinorg/rizin/releases/download/v${version}/rizin-src-v${version}.tar.xz";
|
||||
sha256 = "sha256-CeuoaE/oE89Cpxa1mobT1lr84BPX6LJ14UXoSdM2a1o=";
|
||||
sha256 = "sha256-Zp2Va5l4IKNuQjzzXUgqqZhJJUuWWM72hERZkS39v7g=";
|
||||
};
|
||||
|
||||
mesonFlags = [
|
||||
|
@ -41,7 +40,13 @@ stdenv.mkDerivation rec {
|
|||
"-Duse_sys_tree_sitter=enabled"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config meson ninja cmake (python3.withPackages (ps: [ ps.setuptools ])) ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
meson.python3.pkgs.pyyaml
|
||||
ninja
|
||||
cmake
|
||||
];
|
||||
|
||||
# meson's find_library seems to not use our compiler wrapper if static parameter
|
||||
# is either true/false... We work around by also providing LIBRARY_PATH
|
||||
|
@ -53,6 +58,9 @@ stdenv.mkDerivation rec {
|
|||
fi
|
||||
done
|
||||
export LIBRARY_PATH
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace binrz/rizin/macos_sign.sh \
|
||||
--replace 'codesign' '# codesign'
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
|
@ -76,6 +84,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = "https://rizin.re/";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ raskin makefu mic92 ];
|
||||
platforms = with lib.platforms; linux;
|
||||
platforms = with lib.platforms; unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -103,6 +103,10 @@ python3.pkgs.buildPythonApplication rec {
|
|||
installShellCompletion --bash data/shell-completions/bash/meson
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit python3;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://mesonbuild.com";
|
||||
description = "An open source, fast and friendly build system made in Python";
|
||||
|
|
Loading…
Reference in a new issue