Merge pull request #76621 from cab404/micronucleus

Added micronucleus
This commit is contained in:
Florian Klink 2020-01-02 22:54:32 +01:00 committed by GitHub
commit 1c9af6e7c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View File

@ -1075,6 +1075,21 @@
githubId = 510553;
name = "Jos van Bakel";
};
cab404 = {
email = "cab404@mailbox.org";
github = "cab404";
githubId = 6453661;
name = "Vladimir Serov";
keys = [
# compare with https://keybase.io/cab404
{ longkeyid = "1BB96810926F4E715DEF567E6BA7C26C3FDF7BB3";
fingerprint = "rsa3072/0xCBDECF658C38079E";
}
{ longkeyid = "1EBC648C64D6045463013B3EB7EFFC271D55DB8A";
fingerprint = "ed25519/0xB7EFFC271D55DB8A";
}
];
};
calbrecht = {
email = "christian.albrecht@mayflower.de";
github = "calbrecht";

View File

@ -0,0 +1,38 @@
{
pkgs
, stdenv
, libusb
, fetchFromGitHub
, lib
}:
stdenv.mkDerivation rec {
pname = "micronucleus";
version = "2.04";
sourceRoot = "source/commandline";
src = fetchFromGitHub {
owner = "micronucleus";
repo = "micronucleus";
rev = version;
sha256 = "14msy9amlbflw5mqrbs57b7bby3nsgx43srr7215zyhfdgsla0in";
};
buildInputs = [ libusb ];
makeFlags = stdenv.lib.optionals stdenv.isDarwin [ "CC=cc" ];
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/lib/udev
cp micronucleus $out/bin
cp 49-micronucleus.rules $out/lib/udev
'';
meta = with lib; {
description = "Upload tool for micronucleus";
homepage = "https://github.com/micronucleus/micronucleus";
license = licenses.gpl3;
maintainers = [ maintainers.cab404 ];
};
}

View File

@ -13217,6 +13217,8 @@ in
microsoft_gsl = callPackage ../development/libraries/microsoft_gsl { };
micronucleus = callPackage ../development/tools/misc/micronucleus { };
mimalloc = callPackage ../development/libraries/mimalloc { };
minizip = callPackage ../development/libraries/minizip { };