Commit d8ba36e4 authored by John Titor's avatar John Titor Committed by Masum Reza
Browse files

linuxPackages.r8125: cleanup



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

Signed-off-by: default avatarJohn Titor <50095635+JohnRTitor@users.noreply.github.com>
parent c794e90e
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
  kernel,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "r8125";
  version = "9.015.00";

@@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
    domain = "salsa.debian.org";
    owner = "debian";
    repo = "r8125";
    rev = "upstream/${version}";
    sha256 = "sha256-RA7rvvF2Ngeu+hSACBbKfAJgLbPqhaXG14DH2NmztTE=";
    tag = "upstream/${finalAttrs.version}";
    hash = "sha256-RA7rvvF2Ngeu+hSACBbKfAJgLbPqhaXG14DH2NmztTE=";
  };

  hardeningDisable = [ "pic" ];
@@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = kernel.moduleBuildDependencies;

  preBuild = ''
    substituteInPlace src/Makefile --replace "BASEDIR :=" "BASEDIR ?="
    substituteInPlace src/Makefile --replace "modules_install" "INSTALL_MOD_PATH=$out modules_install"
    substituteInPlace src/Makefile --replace-fail "BASEDIR :=" "BASEDIR ?="
    substituteInPlace src/Makefile --replace-fail "modules_install" "INSTALL_MOD_PATH=$out modules_install"
  '';

  makeFlags = [
@@ -44,4 +44,4 @@ stdenv.mkDerivation rec {
    platforms = lib.platforms.linux;
    maintainers = [ lib.maintainers.peelz ];
  };
}
})