diff options
author | Kai Wohlfahrt <kai.wohlfahrt@gmail.com> | 2020-04-29 23:10:03 +0100 |
---|---|---|
committer | Kai Wohlfahrt <kai.wohlfahrt@gmail.com> | 2020-05-04 15:02:55 +0100 |
commit | 89d3a605e31b5e4efbe1b28b08206da4e75fd689 (patch) | |
tree | 484c405eda3c5d853e35751b522f8d117a8bd19d /pkgs/os-specific | |
parent | d59cc0f9cd18de2b0407b5071e6a16b38aabaef9 (diff) | |
download | nixlib-89d3a605e31b5e4efbe1b28b08206da4e75fd689.tar nixlib-89d3a605e31b5e4efbe1b28b08206da4e75fd689.tar.gz nixlib-89d3a605e31b5e4efbe1b28b08206da4e75fd689.tar.bz2 nixlib-89d3a605e31b5e4efbe1b28b08206da4e75fd689.tar.lz nixlib-89d3a605e31b5e4efbe1b28b08206da4e75fd689.tar.xz nixlib-89d3a605e31b5e4efbe1b28b08206da4e75fd689.tar.zst nixlib-89d3a605e31b5e4efbe1b28b08206da4e75fd689.zip |
gpio-tools: init in kernel 5.4
Linux provides some tools to interact with the gpiochip interface (which replaces the deprecated sysfs GPIO interface). Expose these as a package. The tool has not changed much recently, so there is no need to package a version for each kernel.
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/kernel/gpio-utils.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/gpio-utils.nix b/pkgs/os-specific/linux/kernel/gpio-utils.nix new file mode 100644 index 000000000000..447704eedc8d --- /dev/null +++ b/pkgs/os-specific/linux/kernel/gpio-utils.nix @@ -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; + }; +} |