2020-04-29 22:10:03 +00:00
|
|
|
{ lib, stdenv, linux }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-01-22 17:13:29 +00:00
|
|
|
pname = "gpio-utils";
|
|
|
|
version = linux.version;
|
2020-04-29 22:10:03 +00:00
|
|
|
|
|
|
|
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 19:02:50 +00:00
|
|
|
maintainers = with maintainers; [ kwohlfahrt ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2020-04-29 22:10:03 +00:00
|
|
|
};
|
|
|
|
}
|