1 { lib, stdenv, fetchurl, makeWrapper, binutils-unwrapped }:
3 stdenv.mkDerivation rec {
8 url = "ftp://ftp.chkrootkit.org/pub/seg/pac/${pname}-${version}.tar.gz";
9 sha256 = "sha256-de0qzoHw+j6cP7ZNqw6IV+1ZJH6nVfWJhBb+ssZoB7k=";
12 # TODO: a lazy work-around for linux build failure ...
13 makeFlags = [ "STATIC=" ];
15 nativeBuildInputs = [ makeWrapper ];
18 substituteInPlace chkrootkit \
19 --replace " ./" " $out/bin/"
24 cp check_wtmpx chkdirs chklastlog chkproc chkrootkit chkutmp chkwtmp ifpromisc strings-static $out/sbin
26 wrapProgram $out/sbin/chkrootkit \
27 --prefix PATH : "${lib.makeBinPath [ binutils-unwrapped ]}"
31 description = "Locally checks for signs of a rootkit";
32 homepage = "https://www.chkrootkit.org/";
33 license = licenses.bsd2;
34 platforms = with platforms; linux;