Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
pkg-config,
|
|
ninja,
|
|
rizin,
|
|
openssl,
|
|
}:
|
|
|
|
let
|
|
version = "0.8.0";
|
|
|
|
libquickjs = fetchFromGitHub {
|
|
owner = "quickjs-ng";
|
|
repo = "quickjs";
|
|
tag = "v${version}";
|
|
hash = "sha256-o0Cpy+20EqNdNENaYlasJcKIGU7W4RYBcTMsQwFTUNc=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "jsdec";
|
|
version = version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rizinorg";
|
|
repo = "jsdec";
|
|
rev = "v${version}";
|
|
hash = "sha256-Xc8FMKSGdjrp288u49R6YC0xiynwHeoZe2P/UqnfsFU=";
|
|
};
|
|
|
|
postUnpack = ''
|
|
cp -r --no-preserve=mode ${libquickjs} $sourceRoot/subprojects/libquickjs
|
|
'';
|
|
|
|
postPatch = ''
|
|
cp subprojects/packagefiles/libquickjs/* subprojects/libquickjs
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
openssl
|
|
rizin
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple decompiler for Rizin";
|
|
homepage = finalAttrs.src.meta.homepage;
|
|
changelog = "${finalAttrs.src.meta.homepage}/releases/tag/${finalAttrs.src.rev}";
|
|
license = with licenses; [
|
|
asl20
|
|
bsd3
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [ chayleaf ];
|
|
};
|
|
})
|