mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
40 lines
813 B
Nix
40 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;
|
|
};
|
|
})
|