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>
This commit is contained in:
@@ -1,24 +1,20 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchFromGitLab,
|
||||
kernel,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "r8125";
|
||||
# On update please verify (using `diff -r`) that the source matches the
|
||||
# realtek version.
|
||||
version = "9.014.01";
|
||||
version = "9.015.00";
|
||||
|
||||
# This is a mirror. The original website[1] doesn't allow non-interactive
|
||||
# downloads, instead emailing you a download link.
|
||||
# [1] https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
|
||||
src = fetchFromGitHub {
|
||||
owner = "louistakepillz";
|
||||
src = fetchFromGitLab {
|
||||
domain = "salsa.debian.org";
|
||||
owner = "debian";
|
||||
repo = "r8125";
|
||||
rev = version;
|
||||
sha256 = "sha256-vYgAOmKFQZDKrZsS3ynXB0DrT3wU0JWzNTYO6FyMG9M=";
|
||||
rev = "upstream/${version}";
|
||||
sha256 = "sha256-RA7rvvF2Ngeu+hSACBbKfAJgLbPqhaXG14DH2NmztTE=";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
@@ -36,17 +32,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildFlags = [ "modules" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/louistakepillz/r8125";
|
||||
downloadPage = "https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software";
|
||||
description = "Realtek r8125 driver";
|
||||
longDescription = ''
|
||||
A kernel module for Realtek 8125 2.5G network cards.
|
||||
'';
|
||||
# r8125 has been integrated into the kernel as of v5.9.1
|
||||
broken = lib.versionAtLeast kernel.version "5.9.1";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ peelz ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/ethernet/realtek
|
||||
cp src/r8125.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/ethernet/realtek/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://salsa.debian.org/debian/r8125";
|
||||
description = "Realtek r8125 2.5G Ethernet driver";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.peelz ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user