rizinPlugins.jsdec: init at 0.6.0

chayleaf 92615041 916648f5

+38
+3
pkgs/development/tools/analysis/rizin/default.nix
··· 106 106 107 107 passthru = rec { 108 108 plugins = { 109 + jsdec = pkgs.callPackage ./jsdec.nix { 110 + inherit rizin openssl; 111 + }; 109 112 # sigdb isn't a real plugin, but it's separated from the main rizin 110 113 # derivation so that only those who need it will download it 111 114 sigdb = pkgs.callPackage ./sigdb.nix { };
+35
pkgs/development/tools/analysis/rizin/jsdec.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , meson 5 + , pkg-config 6 + , ninja 7 + , rizin 8 + , openssl 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "jsdec"; 13 + version = "0.6.0"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "rizinorg"; 17 + repo = "jsdec"; 18 + rev = "v${version}"; 19 + hash = "sha256-iVaxxPBIJRhZrmejAOL/Fb4k66mGsZOBs7UikgMj5WA="; 20 + }; 21 + 22 + nativeBuildInputs = [ meson ninja pkg-config ]; 23 + preConfigure = '' 24 + cd p 25 + ''; 26 + mesonFlags = [ "-Djsc_folder=.." ]; 27 + buildInputs = [ openssl rizin ]; 28 + 29 + meta = with lib; { 30 + description = "Simple decompiler for Rizin"; 31 + homepage = src.meta.homepage; 32 + license = with licenses; [ asl20 bsd3 mit ]; 33 + maintainers = with maintainers; [ chayleaf ]; 34 + }; 35 + }