Merge pull request #86391 from kwohlfahrt/gpio-utils
This commit is contained in:
commit
ee8cde8d1c
24
pkgs/os-specific/linux/kernel/gpio-utils.nix
Normal file
24
pkgs/os-specific/linux/kernel/gpio-utils.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
@ -26482,4 +26482,5 @@ in
|
||||
|
||||
vpsfree-client = callPackage ../tools/virtualization/vpsfree-client {};
|
||||
|
||||
gpio-utils = callPackage ../os-specific/linux/kernel/gpio-utils.nix { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user