2010-05-11 17:17:26 +01:00
|
|
|
{stdenv, fetchurl, libusb, makeWrapper}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "pk2cmd-1.20";
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://ww1.microchip.com/downloads/en/DeviceDoc/pk2cmdv1.20LinuxMacSource.tar.gz";
|
2010-05-11 17:17:26 +01:00
|
|
|
sha256 = "1yjpi2qshnqfpan4w3ggakkr3znfrx5cxkny92ka7v9na3g2fc4h";
|
|
|
|
};
|
|
|
|
|
2016-04-16 18:39:51 +01:00
|
|
|
makeFlags = [ "LIBUSB=${libusb.dev}" "linux" ];
|
2010-05-11 17:17:26 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin $out/share/pk2
|
2010-05-11 17:17:26 +01:00
|
|
|
cp pk2cmd $out/bin
|
|
|
|
cp PK2DeviceFile.dat $out/share/pk2
|
|
|
|
wrapProgram $out/bin/pk2cmd --prefix PATH : $out/share/pk2
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libusb makeWrapper ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.microchip.com/pickit2";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.unfree; #MicroChip-PK2
|
2010-05-11 17:17:26 +01:00
|
|
|
description = "Microchip PIC programming software for the PICKit2 programmer";
|
|
|
|
};
|
|
|
|
}
|