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