-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
wireguard: 1.0.20200401 -> 1.0.20200413 #85984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm ✨.
Just for my understanding, what is the issue with calling depmod
as part of the install process?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing on this branch for me with babmn015k8ymmnb4v973bmv3shpd20zd-unit-script-wireguard-wg0-start[678]: modprobe: FATAL: Module wireguard not found in directory /run/current-system/kernel-modules/lib/modules/5.4.35
.
Tests are passing on master
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are failing since the kernel module isn't installed into $out
here.
I fixed it locally with the following changes on top of your branch:
diff --git a/pkgs/os-specific/linux/wireguard/default.nix b/pkgs/os-specific/linux/wireguard/default.nix
index 2781a8279d9..28dc4c7beb7 100644
--- a/pkgs/os-specific/linux/wireguard/default.nix
+++ b/pkgs/os-specific/linux/wireguard/default.nix
@@ -14,17 +14,19 @@ stdenv.mkDerivation rec {
sha256 = "11dpw1inszbc3qjcfnap74kgjxkyyrx90vxv6wmsgkbp8lsl4p66";
};
+ preConfigure = ''
+ cd src
+ sed -i '/depmod/,+1d' Makefile
+ '';
+
hardeningDisable = [ "pic" ];
KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
nativeBuildInputs = [ perl bc ] ++ kernel.moduleBuildDependencies;
- preBuild = "cd src";
buildFlags = [ "module" ];
- installFlags = [ "-C" KERNELDIR "M=$(PWD)" "WIREGUARD_VERSION=${version}"];
- installTargets = [ "modules_install" ];
INSTALL_MOD_PATH = placeholder "out";
meta = with stdenv.lib; {
The sed patch did not work for me. I found a different way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests passing for me now. 👍 😺 ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be mergable now. @Mic92 should we backport this?
@Ma27 yes. |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)