linuxPackages.iio-utils: init

This commit is contained in:
Chuang Zhu 2024-01-12 23:10:30 +08:00
parent 317484b1ea
commit 2b0aab5850
2 changed files with 21 additions and 0 deletions

View 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;
};
}

View file

@ -357,6 +357,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 {};