c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
35 lines
687 B
Nix
35 lines
687 B
Nix
{ 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 ];
|
|
};
|
|
}
|