66604c92c1
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
24 lines
506 B
Nix
24 lines
506 B
Nix
{ 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 stdenv.lib.maintainers; [ kwohlfahrt ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|