nixpkgs/pkgs/os-specific/linux/pax-utils/default.nix
Sergei Trofimovich 1c66729c00 pax-utils: fix cross-compilation (missing native C compiler)
Without the change cross-compilation fails as:

    $ nix build -f. pkgsCross.ppc64.pax-utils -L
    ...
    meson.build:149:2: ERROR: Tried to access compiler for language "c", not specified for build machine.
2022-08-18 06:31:45 +01:00

51 lines
1.2 KiB
Nix

{ stdenv
, lib
, fetchurl
, buildPackages
, docbook_xml_dtd_44
, docbook_xsl
, libcap
, pkg-config
, meson
, ninja
, xmlto
, gitUpdater
}:
stdenv.mkDerivation rec {
pname = "pax-utils";
version = "1.3.5";
src = fetchurl {
url = "mirror://gentoo/distfiles/${pname}-${version}.tar.xz";
sha256 = "sha256-8KWwPfIwiqLdeq9TuewLK0hFW4YSnkd6FkPeYpBKuHQ=";
};
strictDeps = true;
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ docbook_xml_dtd_44 docbook_xsl meson ninja pkg-config xmlto ];
buildInputs = [ libcap ];
passthru.updateScript = gitUpdater {
inherit pname version;
url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
rev-prefix = "v";
};
meta = with lib; {
description = "ELF utils that can check files for security relevant properties";
longDescription = ''
A suite of ELF tools to aid auditing systems. Contains
various ELF related utils for ELF32, ELF64 binaries useful
for displaying PaX and security info on a large groups of
binary files.
'';
homepage = "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities";
license = licenses.gpl2Only;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice joachifm ];
};
}