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