rizin-nix-plugins/jsdec.nix

16 lines
492 B
Nix
Raw Normal View History

2022-07-28 18:42:08 +02:00
{ lib, stdenv, fetchFromGitHub, meson, pkg-config, cmake, ninja, openssl, rizin }: stdenv.mkDerivation {
name = "jsdec";
src = fetchFromGitHub {
owner = "rizinorg";
repo = "jsdec";
rev = "5ef437d181ad73fc74e406d922f02d09904ae047";
sha256 = "sha256-Z5QU7IdMGk5IcWbmOVeblfWlo1hfulaYVt3qWRmmYjc=";
};
preConfigure = ''
cd p
'';
mesonFlags = [ "-Djsc_folder=/build/source/" ];
buildInputs = [ rizin openssl ];
nativeBuildInputs = [ meson pkg-config ninja ];
}