commit
6761fff266
2 changed files with 16 additions and 11 deletions
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
# FIXME: Compare revision with
|
# FIXME: Compare revision with
|
||||||
# https://github.com/radareorg/radare2/blob/master/libr/asm/arch/arm/v35arm64/Makefile#L26-L27
|
# https://github.com/radareorg/radare2/blob/master/libr/arch/p/arm/v35arm64/Makefile#L26-L27
|
||||||
arm64 = fetchFromGitHub {
|
arm64 = fetchFromGitHub {
|
||||||
owner = "radareorg";
|
owner = "radareorg";
|
||||||
repo = "vector35-arch-arm64";
|
repo = "vector35-arch-arm64";
|
||||||
|
@ -47,21 +47,23 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "radare2";
|
pname = "radare2";
|
||||||
version = "5.7.8";
|
version = "5.8.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "radare";
|
owner = "radare";
|
||||||
repo = "radare2";
|
repo = "radare2";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-+/9SeILuDCUaYwPhhN6z3vQFicd1Bh8N/yicZTybR5o=";
|
hash = "sha256-9bDwtMNru7tG0L735y+Vrcg7Htk/TV9SVZn7WP4Ap4c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
cp -r ${arm64} ../libr/asm/arch/arm/v35arm64/arch-arm64
|
pushd ../libr/arch/p/arm/v35arm64
|
||||||
chmod -R +w ../libr/asm/arch/arm/v35arm64/arch-arm64
|
cp -r ${arm64} arch-arm64
|
||||||
|
chmod -R +w arch-arm64
|
||||||
|
|
||||||
cp -r ${armv7} ../libr/asm/arch/arm/v35arm64/arch-armv7
|
cp -r ${armv7} arch-armv7
|
||||||
chmod -R +w ../libr/asm/arch/arm/v35arm64/arch-armv7
|
chmod -R +w arch-armv7
|
||||||
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = lib.optionalString stdenv.isDarwin ''
|
postFixup = lib.optionalString stdenv.isDarwin ''
|
||||||
|
|
|
@ -13,21 +13,21 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "iaito";
|
pname = "iaito";
|
||||||
version = "5.7.8";
|
version = "5.8.0";
|
||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
(fetchFromGitHub rec {
|
(fetchFromGitHub rec {
|
||||||
owner = "radareorg";
|
owner = "radareorg";
|
||||||
repo = "iaito";
|
repo = "iaito";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-c36WLpVUnffeY6cXSEHvguo8BHyxaLAluN9hBKsQc0s=";
|
hash = "sha256-LqJu30Bp+JgB+y3MDyPVuFmEoXTpfA7K2pxv1ZCABx0=";
|
||||||
name = repo;
|
name = repo;
|
||||||
})
|
})
|
||||||
(fetchFromGitHub rec {
|
(fetchFromGitHub rec {
|
||||||
owner = "radareorg";
|
owner = "radareorg";
|
||||||
repo = "iaito-translations";
|
repo = "iaito-translations";
|
||||||
rev = "ab923335409fa298c39f0014588d78d926c6f3a2";
|
rev = "e66b3a962a7fc7dfd730764180011ecffbb206bf";
|
||||||
hash = "sha256-qkIC67a6YRwOa2Sr16Vg6If1TmAiSKUV7hw13Wxwl/w=";
|
hash = "sha256-6NRTZ/ydypsB5TwbivvwOH9TEMAff/LH69hCXTvMPp8=";
|
||||||
name = repo;
|
name = repo;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
@ -56,6 +56,9 @@ stdenv.mkDerivation rec {
|
||||||
radare2
|
radare2
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# the radare2 binary package seems to not install all necessary headers.
|
||||||
|
NIX_CFLAGS_COMPILE = [ "-I" "${radare2.src}/shlr/sdb/include/sdb" ];
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
pushd ../../../iaito-translations
|
pushd ../../../iaito-translations
|
||||||
make build PREFIX=$out
|
make build PREFIX=$out
|
||||||
|
|
Loading…
Reference in a new issue