about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/analysis/rizin/jsdec.nix
blob: df291d169eb558bdf03984b85565cc55b94cc786 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 ];
  };
}