159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
39 lines
813 B
Nix
39 lines
813 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libdwarf-lite";
|
|
version = "0.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jeremy-rifkin";
|
|
repo = "libdwarf-lite";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-S2KDfWqqdQfK5+eQny2X5k0A5u9npkQ8OFRLBmTulao=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|