summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific/linux/crda
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-12-27 20:03:47 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-12-27 21:43:26 +0100
commit330b89c68b17f24cbe1f1f4a4b53e2e687715bbd (patch)
treea8e4212d1a72886bfd9a6a584f20eb648592be22 /pkgs/os-specific/linux/crda
parentf50a719a4d163991dcac200a38ef16d07f0b6318 (diff)
crda: use PREFIX instead of DESTDIR
Otherwise, `$out/lib/udev/rules.d/85-regulatory.rules` will still refer to a non-existent `/sbin/crda`.
Diffstat (limited to 'pkgs/os-specific/linux/crda')
-rw-r--r--pkgs/os-specific/linux/crda/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/crda/default.nix b/pkgs/os-specific/linux/crda/default.nix
index 542fcae562de..488a6ce1a0fa 100644
--- a/pkgs/os-specific/linux/crda/default.nix
+++ b/pkgs/os-specific/linux/crda/default.nix
@@ -23,8 +23,9 @@ stdenv.mkDerivation {
'';
makeFlags = [
- "DESTDIR=$(out)"
- "PREFIX="
+ "PREFIX=$(out)"
+ "SBINDIR=$(out)/bin/"
+ "UDEV_RULE_DIR=$(out)/lib/udev/rules.d/"
"REG_BIN=${wireless-regdb}/lib/crda/regulatory.bin"
];