summary refs log blame commit diff
path: root/pkgs/os-specific/linux/kernel/gpio-utils.nix
blob: 40e282bbf541d3d16d4e1e8ebd0f265537eb50cd (plain) (tree)
1
2
3
4
5
6
7



                       
                     

                          











                                                                  


                                                   

    
{ lib, stdenv, linux }:

with lib;

stdenv.mkDerivation {
  pname = "gpio-utils";
  version = 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;
  };
}