linuxPackages.r8125: cleanup

switch to finalAttrs
replace -> replace-fail
sha256 -> hash

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>

John Titor d8ba36e4 c794e90e

+6 -6
+6 -6
pkgs/os-specific/linux/r8125/default.nix
··· 5 kernel, 6 }: 7 8 - stdenv.mkDerivation rec { 9 pname = "r8125"; 10 version = "9.015.00"; 11 ··· 13 domain = "salsa.debian.org"; 14 owner = "debian"; 15 repo = "r8125"; 16 - rev = "upstream/${version}"; 17 - sha256 = "sha256-RA7rvvF2Ngeu+hSACBbKfAJgLbPqhaXG14DH2NmztTE="; 18 }; 19 20 hardeningDisable = [ "pic" ]; ··· 22 nativeBuildInputs = kernel.moduleBuildDependencies; 23 24 preBuild = '' 25 - substituteInPlace src/Makefile --replace "BASEDIR :=" "BASEDIR ?=" 26 - substituteInPlace src/Makefile --replace "modules_install" "INSTALL_MOD_PATH=$out modules_install" 27 ''; 28 29 makeFlags = [ ··· 44 platforms = lib.platforms.linux; 45 maintainers = [ lib.maintainers.peelz ]; 46 }; 47 - }
··· 5 kernel, 6 }: 7 8 + stdenv.mkDerivation (finalAttrs: { 9 pname = "r8125"; 10 version = "9.015.00"; 11 ··· 13 domain = "salsa.debian.org"; 14 owner = "debian"; 15 repo = "r8125"; 16 + tag = "upstream/${finalAttrs.version}"; 17 + hash = "sha256-RA7rvvF2Ngeu+hSACBbKfAJgLbPqhaXG14DH2NmztTE="; 18 }; 19 20 hardeningDisable = [ "pic" ]; ··· 22 nativeBuildInputs = kernel.moduleBuildDependencies; 23 24 preBuild = '' 25 + substituteInPlace src/Makefile --replace-fail "BASEDIR :=" "BASEDIR ?=" 26 + substituteInPlace src/Makefile --replace-fail "modules_install" "INSTALL_MOD_PATH=$out modules_install" 27 ''; 28 29 makeFlags = [ ··· 44 platforms = lib.platforms.linux; 45 maintainers = [ lib.maintainers.peelz ]; 46 }; 47 + })