2020-05-15 21:57:56 +00:00
|
|
|
{ lib, stdenv, linux }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-01-25 03:21:06 +00:00
|
|
|
pname = "gpio-utils";
|
|
|
|
version = linux.version;
|
2020-05-15 21:57:56 +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-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ kwohlfahrt ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|