diff --git a/pkgs/os-specific/linux/system76-io/default.nix b/pkgs/os-specific/linux/system76-io/default.nix index 06c37a1475f2..c3c6bd0c7dce 100644 --- a/pkgs/os-specific/linux/system76-io/default.nix +++ b/pkgs/os-specific/linux/system76-io/default.nix @@ -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"; }; -} +})