nixpkgs/pkgs/by-name/li/libdwarf-lite/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
813 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libdwarf-lite";
2024-08-19 01:46:08 +00:00
version = "0.11.0";
src = fetchFromGitHub {
owner = "jeremy-rifkin";
repo = "libdwarf-lite";
rev = "v${finalAttrs.version}";
2024-08-19 01:46:08 +00:00
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;
};
})