about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/dwz/default.nix
blob: 852201cf71144c5e0dd215543029ed7c1e1f46f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchurl, elfutils }:

stdenv.mkDerivation rec {
  pname = "dwz";
  version = "0.14";

  src = fetchurl {
    url = "https://www.sourceware.org/ftp/${pname}/releases/${pname}-${version}.tar.gz";
    sha256 = "07qdvzfk4mvbqj5z3aff7vc195dxqn1mi27w2dzs1w2zhymnw01k";
  };

  nativeBuildInputs = [ elfutils ];

  makeFlags = [ "prefix=${placeholder "out"}" ];

  meta = with lib; {
    homepage = "https://sourceware.org/dwz/";
    description = "DWARF optimization and duplicate removal tool";
    mainProgram = "dwz";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ jbcrail ];
    platforms = platforms.linux;
  };
}