mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
linuxPackages.r8125: cleanup
switch to finalAttrs replace -> replace-fail sha256 -> hash Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
parent
c794e90ebb
commit
d8ba36e42d
1 changed files with 6 additions and 6 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue