3
0
Fork 0
forked from mirrors/nixpkgs

Adding the Microchip software for the PICKit2 programmer: pk2cmd

svn path=/nixpkgs/trunk/; revision=21726
This commit is contained in:
Lluís Batlle i Rossell 2010-05-11 16:17:26 +00:00
parent f19a35aeeb
commit 001a74368f
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{stdenv, fetchurl, libusb, makeWrapper}:
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 = ''
ensureDir $out/bin $out/share/pk2
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;
license = "nonfree";
description = "Microchip PIC programming software for the PICKit2 programmer";
};
}

View file

@ -1386,6 +1386,10 @@ let
inherit (gnome) glib gtk;
};
pk2cmd = import ../tools/misc/pk2cmd {
inherit fetchurl stdenv libusb makeWrapper;
};
plan9port = import ../tools/system/plan9port {
inherit fetchurl stdenv;
inherit (xlibs) libX11 xproto libXt xextproto;