depot/third_party/nixpkgs/pkgs/by-name/li/libdwarf-lite/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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;
};
})