1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 02:14:36 +00:00

Merge pull request #113682 from alesguzik/update_nxpmicro-mfgtools_plus_udev

nxpmicro-mfgtools: add udev rules
This commit is contained in:
Sandro 2021-03-03 14:49:49 +01:00 committed by GitHub
commit 9c7fcca72e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = ''