1{
2 lib,
3 stdenv,
4 linux,
5}:
6
7stdenv.mkDerivation {
8 pname = "gpio-utils";
9 version = linux.version;
10
11 inherit (linux) src makeFlags;
12
13 preConfigure = ''
14 cd tools/gpio
15 '';
16
17 separateDebugInfo = true;
18 installFlags = [
19 "install"
20 "DESTDIR=$(out)"
21 "bindir=/bin"
22 ];
23
24 meta = with lib; {
25 description = "Linux tools to inspect the gpiochip interface";
26 maintainers = with maintainers; [ kwohlfahrt ];
27 platforms = platforms.linux;
28 license = licenses.gpl2Only;
29 };
30}