mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
25 lines
513 B
Nix
25 lines
513 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 maintainers; [ kwohlfahrt ];
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
};
|
|
}
|