linuxPackages.system76-io: add pname and version

This commit is contained in:
jopejoe1
2026-01-13 21:05:13 +01:00
parent da4f38543c
commit 7c28d97d28
@@ -6,18 +6,19 @@
kernelModuleMakeFlags,
}:
let
version = "1.0.4";
hash = "sha256-VE6sCehjXlRuOVcK4EN2H+FhaVaBi/jrAYx4TZjbreA=";
in
stdenv.mkDerivation {
name = "system76-io-module-${version}-${kernel.version}";
stdenv.mkDerivation (finalAttrs: {
name = "${finalAttrs.pname}-${finalAttrs.version}-${kernel.version}";
pname = "system76-io-module";
version = "1.0.4";
passthru.moduleName = "system76_io";
src = fetchFromGitHub {
owner = "pop-os";
repo = "system76-io-dkms";
rev = version;
rev = finalAttrs.version;
inherit hash;
};
@@ -48,4 +49,4 @@ stdenv.mkDerivation {
description = "DKMS module for controlling System76 Io board";
homepage = "https://github.com/pop-os/system76-io-dkms";
};
}
})