1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/tools/misc/pk2cmd/default.nix
Daniel Schaefer bac4d95aa2 treewide: Change URLs to HTTPS
Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them
if there's actual content. Inspired by
https://github.com/NixOS/nixpkgs/issues/60004
2019-04-22 10:19:54 +02:00

27 lines
765 B
Nix

{stdenv, fetchurl, libusb, makeWrapper}:
stdenv.mkDerivation {
name = "pk2cmd-1.20";
src = fetchurl {
url = https://ww1.microchip.com/downloads/en/DeviceDoc/pk2cmdv1.20LinuxMacSource.tar.gz;
sha256 = "1yjpi2qshnqfpan4w3ggakkr3znfrx5cxkny92ka7v9na3g2fc4h";
};
makeFlags = [ "LIBUSB=${libusb.dev}" "linux" ];
installPhase = ''
mkdir -p $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 = https://www.microchip.com/pickit2;
license = stdenv.lib.licenses.unfree; #MicroChip-PK2
description = "Microchip PIC programming software for the PICKit2 programmer";
};
}