2020-04-29 23:10:03 +01:00
|
|
|
{ lib, stdenv, linux }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
assert versionAtLeast linux.version "4.6";
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "gpio-utils-${linux.version}";
|
|
|
|
|
|
|
|
inherit (linux) src makeFlags;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd tools/gpio
|
|
|
|
'';
|
|
|
|
|
|
|
|
separateDebugInfo = true;
|
|
|
|
installFlags = [ "install" "DESTDIR=$(out)" "bindir=/bin" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Linux tools to inspect the gpiochip interface";
|
2020-06-30 20:02:50 +01:00
|
|
|
maintainers = with maintainers; [ kwohlfahrt ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2020-04-29 23:10:03 +01:00
|
|
|
};
|
|
|
|
}
|