From 15849548a0787ad092393e9e9c46ce04eeb8d328 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 13 Jan 2026 21:05:13 +0100 Subject: [PATCH] linuxPackages.system76: add pname and version --- pkgs/os-specific/linux/system76/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/system76/default.nix b/pkgs/os-specific/linux/system76/default.nix index 191167473ce7..aaf33eb2eff4 100644 --- a/pkgs/os-specific/linux/system76/default.nix +++ b/pkgs/os-specific/linux/system76/default.nix @@ -6,18 +6,19 @@ kernelModuleMakeFlags, }: let - version = "1.0.17"; hash = "sha256-9/t+Mvfnq0KkPbe1mnrVy4mzNaK7vAgLuhUnOeEvBfI="; in -stdenv.mkDerivation { - name = "system76-module-${version}-${kernel.version}"; +stdenv.mkDerivation (finalAttrs: { + name = "${finalAttrs.pname}-${finalAttrs.version}-${kernel.version}"; + pname = "system76-module"; + version = "1.0.17"; passthru.moduleName = "system76"; src = fetchFromGitHub { owner = "pop-os"; repo = "system76-dkms"; - rev = version; + rev = finalAttrs.version; inherit hash; }; @@ -51,4 +52,4 @@ stdenv.mkDerivation { some of the hotkeys and allows for custom fan control. ''; }; -} +})