linuxPackages.r8125: 9.014.01 -> 9.015.00

The package has been updated to use the debian repo.

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

authored by

alper-han and committed by
Masum Reza
c794e90e 96dbe3b4

+18 -23
+18 -23
pkgs/os-specific/linux/r8125/default.nix
··· 1 1 { 2 2 stdenv, 3 3 lib, 4 - fetchFromGitHub, 4 + fetchFromGitLab, 5 5 kernel, 6 6 }: 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "r8125"; 10 - # On update please verify (using `diff -r`) that the source matches the 11 - # realtek version. 12 - version = "9.014.01"; 10 + version = "9.015.00"; 13 11 14 - # This is a mirror. The original website[1] doesn't allow non-interactive 15 - # downloads, instead emailing you a download link. 16 - # [1] https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software 17 - src = fetchFromGitHub { 18 - owner = "louistakepillz"; 12 + src = fetchFromGitLab { 13 + domain = "salsa.debian.org"; 14 + owner = "debian"; 19 15 repo = "r8125"; 20 - rev = version; 21 - sha256 = "sha256-vYgAOmKFQZDKrZsS3ynXB0DrT3wU0JWzNTYO6FyMG9M="; 16 + rev = "upstream/${version}"; 17 + sha256 = "sha256-RA7rvvF2Ngeu+hSACBbKfAJgLbPqhaXG14DH2NmztTE="; 22 18 }; 23 19 24 20 hardeningDisable = [ "pic" ]; ··· 36 32 37 33 buildFlags = [ "modules" ]; 38 34 39 - meta = with lib; { 40 - homepage = "https://github.com/louistakepillz/r8125"; 41 - downloadPage = "https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software"; 42 - description = "Realtek r8125 driver"; 43 - longDescription = '' 44 - A kernel module for Realtek 8125 2.5G network cards. 45 - ''; 46 - # r8125 has been integrated into the kernel as of v5.9.1 47 - broken = lib.versionAtLeast kernel.version "5.9.1"; 48 - license = licenses.gpl2Plus; 49 - platforms = platforms.linux; 50 - maintainers = with maintainers; [ peelz ]; 35 + installPhase = '' 36 + mkdir -p $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/ethernet/realtek 37 + cp src/r8125.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/ethernet/realtek/ 38 + ''; 39 + 40 + meta = { 41 + homepage = "https://salsa.debian.org/debian/r8125"; 42 + description = "Realtek r8125 2.5G Ethernet driver"; 43 + license = lib.licenses.gpl2Plus; 44 + platforms = lib.platforms.linux; 45 + maintainers = [ lib.maintainers.peelz ]; 51 46 }; 52 47 }