2024-07-27 10:49:07 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "libdwarf-lite";
|
2024-08-19 01:46:08 +00:00
|
|
|
version = "0.11.0";
|
2024-07-27 10:49:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeremy-rifkin";
|
|
|
|
repo = "libdwarf-lite";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-08-19 01:46:08 +00:00
|
|
|
hash = "sha256-S2KDfWqqdQfK5+eQny2X5k0A5u9npkQ8OFRLBmTulao=";
|
2024-07-27 10:49:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"dev"
|
|
|
|
"lib"
|
|
|
|
"out"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "BUILD_DWARFDUMP" false)
|
|
|
|
(lib.cmakeBool "PIC_ALWAYS" true)
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Minimal libdwarf mirror for faster cloning and configuration";
|
|
|
|
homepage = "https://github.com/jeremy-rifkin/libdwarf-lite";
|
|
|
|
license = lib.licenses.lgpl21Only;
|
|
|
|
maintainers = [ ];
|
|
|
|
mainProgram = "libdwarf-lite";
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
})
|