nxpmicro-mfgtools: add udev rules
This commit is contained in:
parent
c7d0dbe094
commit
5c51cf3559
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ stdenv.mkDerivation rec {
|
|||
|
||||
preConfigure = "echo ${version} > .tarball-version";
|
||||
|
||||
postInstall = ''
|
||||
# rules printed by the following invocation are static,
|
||||
# they come from hardcoded configs in libuuu/config.cpp:48
|
||||
$out/bin/uuu -udev > udev-rules 2>stderr.txt
|
||||
rules_file="$(cat stderr.txt|grep '1: put above udev run into'|sed 's|^.*/||')"
|
||||
install -D udev-rules "$out/lib/udev/rules.d/$rules_file"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Freescale/NXP I.MX chip image deploy tools";
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue