6 stdenv.mkDerivation rec {
7 pname = "micronucleus";
10 sourceRoot = "${src.name}/commandline";
12 src = fetchFromGitHub {
13 owner = "micronucleus";
14 repo = "micronucleus";
16 sha256 = "14msy9amlbflw5mqrbs57b7bby3nsgx43srr7215zyhfdgsla0in";
19 buildInputs = [ libusb-compat-0_1 ];
20 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
24 mkdir -p $out/lib/udev
25 cp micronucleus $out/bin
26 cp 49-micronucleus.rules $out/lib/udev
30 description = "Upload tool for micronucleus";
31 mainProgram = "micronucleus";
32 homepage = "https://github.com/micronucleus/micronucleus";
33 license = licenses.gpl3;
34 maintainers = [ maintainers.cab404 ];