mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
rizinPlugins.jsdec: 0.6.0 -> 0.7.0
This commit is contained in:
parent
8d5d9861bd
commit
5d7d7957fd
@ -8,28 +8,41 @@
|
||||
, openssl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
libquickjs = fetchFromGitHub {
|
||||
owner = "frida";
|
||||
repo = "quickjs";
|
||||
rev = "c81f05c9859cea5f83a80057416a0c7affe9b876";
|
||||
hash = "sha256-nAws0ae9kAwvCFcw/yR7XRMwU8EbHoq7kp7iBFpZEZc=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "jsdec";
|
||||
version = "0.6.0";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rizinorg";
|
||||
repo = "jsdec";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-iVaxxPBIJRhZrmejAOL/Fb4k66mGsZOBs7UikgMj5WA=";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-UuFA0YKH+0n4Ec3CTiSUFlKXMY4k+tooaEFJYrj6Law=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||
preConfigure = ''
|
||||
cd p
|
||||
postUnpack = ''
|
||||
cp -r --no-preserve=mode ${libquickjs} $sourceRoot/subprojects/libquickjs
|
||||
'';
|
||||
mesonFlags = [ "-Djsc_folder=.." ];
|
||||
|
||||
postPatch = ''
|
||||
cp subprojects/packagefiles/libquickjs/* subprojects/libquickjs
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||
buildInputs = [ openssl rizin ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple decompiler for Rizin";
|
||||
homepage = src.meta.homepage;
|
||||
homepage = finalAttrs.src.meta.homepage;
|
||||
changelog = "${finalAttrs.src.meta.homepage}/releases/tag/${finalAttrs.src.rev}";
|
||||
license = with licenses; [ asl20 bsd3 mit ];
|
||||
maintainers = with maintainers; [ chayleaf ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user