nixpkgs-suyu/pkgs/os-specific/linux/kernel/gpio-utils.nix

26 lines
513 B
Nix
Raw Normal View History

{ 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";
2020-06-30 21:02:50 +02:00
maintainers = with maintainers; [ kwohlfahrt ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}