mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-23 09:00:51 +00:00
linuxPackages.iio-utils: init (#280523)
This commit is contained in:
19
pkgs/os-specific/linux/iio-utils/default.nix
Normal file
19
pkgs/os-specific/linux/iio-utils/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib, stdenv, kernel }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "iio-utils";
|
||||
inherit (kernel) src version;
|
||||
|
||||
makeFlags = [ "bindir=${placeholder "out"}/bin" ];
|
||||
|
||||
postPatch = ''
|
||||
cd tools/iio
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Userspace tool for interacting with Linux IIO";
|
||||
homepage = "https://www.kernel.org/";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -375,6 +375,8 @@ in {
|
||||
|
||||
e1000e = if lib.versionOlder kernel.version "4.10" then callPackage ../os-specific/linux/e1000e {} else null;
|
||||
|
||||
iio-utils = if lib.versionAtLeast kernel.version "4.1" then callPackage ../os-specific/linux/iio-utils { } else null;
|
||||
|
||||
intel-speed-select = if lib.versionAtLeast kernel.version "5.3" then callPackage ../os-specific/linux/intel-speed-select { } else null;
|
||||
|
||||
ipu6-drivers = callPackage ../os-specific/linux/ipu6-drivers {};
|
||||
|
||||
Reference in New Issue
Block a user