Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf0796b3cf44
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ee8cde8d1cc4
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on May 4, 2020

  1. 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.
    kwohlfahrt committed May 4, 2020
    Copy the full SHA
    89d3a60 View commit details

Commits on May 6, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ee8cde8 View commit details
Showing with 25 additions and 0 deletions.
  1. +24 −0 pkgs/os-specific/linux/kernel/gpio-utils.nix
  2. +1 −0 pkgs/top-level/all-packages.nix
24 changes: 24 additions & 0 deletions pkgs/os-specific/linux/kernel/gpio-utils.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -26482,4 +26482,5 @@ in

vpsfree-client = callPackage ../tools/virtualization/vpsfree-client {};

gpio-utils = callPackage ../os-specific/linux/kernel/gpio-utils.nix { };
}