gradm: ensure that udev rules are actually installed

Another regression on my part: gradm won't install the rules unless
$(DESTDIR)/etc/udev/rules.d exists.
This commit is contained in:
Joachim Fasting 2016-07-23 17:00:22 +02:00
parent 88138d43fa
commit f1187c4605
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
--replace "/sbin/gradm_pam" "$out/bin/gradm_pam"
echo 'inherit-learn /nix/store' >>learn_config
mkdir -p "$out/etc/udev/rules.d"
'';
postInstall = ''rmdir $out/dev'';