fb4a93a913
fetchzip is more efficient, because it doesn't do a full git clone, so it should be preferred where possible. Where hashes have not been changed, I have verified that they don't need to be. Where hashes have changed, in all cases this is because of .gitattributes files that exclude certain files from the tarball, and in these cases I have verified that the packages still build. sbsigntool still uses fetchgit because it has a submodule, and ell and iwd still use fetchgit because git.kernel.org does not provide snapshot links for them. Apparently this is intentional.
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchzip
|
|
, pkg-config
|
|
, libtraceevent
|
|
, asciidoc
|
|
, xmlto
|
|
, docbook_xml_dtd_45
|
|
, docbook_xsl
|
|
, coreutils
|
|
, valgrind
|
|
, sourceHighlight
|
|
, meson
|
|
, flex
|
|
, bison
|
|
, ninja
|
|
, cunit
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libtracefs";
|
|
version = "1.7.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-libtracefs-${version}.tar.gz";
|
|
hash = "sha256-64eXFFdnZHHf4C3vbADtPuIMsfJ85VZ6t8A1gIc1CW0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
chmod +x samples/extract-example.sh
|
|
patchShebangs --build check-manpages.sh samples/extract-example.sh Documentation/install-docs.sh.in
|
|
'';
|
|
|
|
outputs = [ "out" "dev" "devman" "doc" ];
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
asciidoc
|
|
xmlto
|
|
docbook_xml_dtd_45
|
|
docbook_xsl
|
|
valgrind
|
|
sourceHighlight
|
|
flex
|
|
bison
|
|
];
|
|
buildInputs = [ libtraceevent ];
|
|
|
|
ninjaFlags = [ "all" "docs" ];
|
|
|
|
doCheck = true;
|
|
checkInputs = [ cunit ];
|
|
|
|
meta = with lib; {
|
|
description = "Linux kernel trace file system library";
|
|
homepage = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/";
|
|
license = licenses.lgpl21Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ wentasah ];
|
|
};
|
|
}
|