dmrconfig: Install udev rules

This commit is contained in:
Elis Hirwing 2018-11-07 18:32:42 +01:00
parent c5e8ae3f0b
commit 9ec968fbf0
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F

View File

@ -20,8 +20,10 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace /usr/local/bin/dmrconfig $out/bin/dmrconfig
'';
preInstall = ''
mkdir -p $out/bin
installPhase = ''
mkdir -p $out/bin $out/lib/udev/rules.d
make install
install 99-dmr.rules $out/lib/udev/rules.d/99-dmr.rules
'';
meta = with stdenv.lib; {