rizinPlugins.jsdec: init at 0.6.0

This commit is contained in:
chayleaf 2023-08-09 17:09:10 +07:00
parent 916648f5b8
commit 92615041a2
2 changed files with 38 additions and 0 deletions

View File

@ -106,6 +106,9 @@ let rizin = stdenv.mkDerivation rec {
passthru = rec {
plugins = {
jsdec = pkgs.callPackage ./jsdec.nix {
inherit rizin openssl;
};
# sigdb isn't a real plugin, but it's separated from the main rizin
# derivation so that only those who need it will download it
sigdb = pkgs.callPackage ./sigdb.nix { };

View File

@ -0,0 +1,35 @@
{ lib
, stdenv
, fetchFromGitHub
, meson
, pkg-config
, ninja
, rizin
, openssl
}:
stdenv.mkDerivation rec {
pname = "jsdec";
version = "0.6.0";
src = fetchFromGitHub {
owner = "rizinorg";
repo = "jsdec";
rev = "v${version}";
hash = "sha256-iVaxxPBIJRhZrmejAOL/Fb4k66mGsZOBs7UikgMj5WA=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
preConfigure = ''
cd p
'';
mesonFlags = [ "-Djsc_folder=.." ];
buildInputs = [ openssl rizin ];
meta = with lib; {
description = "Simple decompiler for Rizin";
homepage = src.meta.homepage;
license = with licenses; [ asl20 bsd3 mit ];
maintainers = with maintainers; [ chayleaf ];
};
}