Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, elfutils }:
2
3stdenv.mkDerivation rec {
4 pname = "dwz";
5 version = "0.14";
6
7 src = fetchurl {
8 url = "https://www.sourceware.org/ftp/${pname}/releases/${pname}-${version}.tar.gz";
9 sha256 = "07qdvzfk4mvbqj5z3aff7vc195dxqn1mi27w2dzs1w2zhymnw01k";
10 };
11
12 nativeBuildInputs = [ elfutils ];
13
14 makeFlags = [ "prefix=${placeholder "out"}" ];
15
16 meta = with lib; {
17 homepage = "https://sourceware.org/dwz/";
18 description = "DWARF optimization and duplicate removal tool";
19 license = licenses.gpl2Plus;
20 maintainers = with maintainers; [ jbcrail ];
21 platforms = platforms.linux;
22 };
23}