Merge pull request #144146 from jraygauthier/jrg/nxpmicro-mfgtools-up-to-1-4-165

This commit is contained in:
Sandro 2021-11-01 21:11:55 +01:00 committed by GitHub
commit b07533d824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
, cmake , cmake
, pkg-config , pkg-config
, bzip2 , bzip2
, installShellFiles
, libusb1 , libusb1
, libzip , libzip
, openssl , openssl
@ -10,16 +11,16 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nxpmicro-mfgtools"; pname = "nxpmicro-mfgtools";
version = "1.4.72"; version = "1.4.165";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "NXPmicro"; owner = "NXPmicro";
repo = "mfgtools"; repo = "mfgtools";
rev = "uuu_${version}"; rev = "uuu_${version}";
sha256 = "1s3wlz4yb2p8by5p66vr0z72n84mxkrmda63x9yr6pinqinsyrvv"; sha256 = "0k309lp27d4k6x4qq0badbk8i47xsc6f3fffz73650iyfs4hcniw";
}; };
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config installShellFiles ];
buildInputs = [ bzip2 libusb1 libzip openssl ]; buildInputs = [ bzip2 libusb1 libzip openssl ];
@ -31,6 +32,8 @@ stdenv.mkDerivation rec {
$out/bin/uuu -udev > udev-rules 2>stderr.txt $out/bin/uuu -udev > udev-rules 2>stderr.txt
rules_file="$(cat stderr.txt|grep '1: put above udev run into'|sed 's|^.*/||')" 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" install -D udev-rules "$out/lib/udev/rules.d/$rules_file"
installShellCompletion --cmd uuu \
--bash ../snap/local/bash-completion/universal-update-utility
''; '';
meta = with lib; { meta = with lib; {
@ -48,7 +51,7 @@ stdenv.mkDerivation rec {
''; '';
homepage = "https://github.com/NXPmicro/mfgtools"; homepage = "https://github.com/NXPmicro/mfgtools";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.bmilanov ]; maintainers = with maintainers; [ bmilanov jraygauthier ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }