summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/gpio-utils.nix
blob: e28d838efb3fe99b0e5abd1ffe6515c0a5417c4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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";
    maintainers = with maintainers; [ kwohlfahrt ];
    platforms = platforms.linux;
    license = licenses.gpl2;
  };
}