Skip to content

Instantly share code, notes, and snippets.

@IvarWithoutBones
Created June 12, 2020 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IvarWithoutBones/f3b9c72c1fff7f05cb76407027d08875 to your computer and use it in GitHub Desktop.
Save IvarWithoutBones/f3b9c72c1fff7f05cb76407027d08875 to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitLab, pkg-config, libusb1 }:
stdenv.mkDerivation rec {
pname = "minipro";
version = "0.4";
src = fetchFromGitLab {
owner = "DavidGriffith";
repo = "minipro";
rev = version;
sha256 = "17k2vanz0xrmvl5sa12jr1n4x5m2s7292qs79mvj40bxbhrcmaci";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ];
makeFlags = [ "-e minipro" ];
PKG_CONFIG = "${pkg-config}/bin/pkg-config";
installPhase = ''
mkdir -p $out/bin
cp minipro $out/bin
'';
meta = with stdenv.lib; {
description = "An open source program for controlling the MiniPRO TL866xx series of chip programmers";
homepage = "https://gitlab.com/DavidGriffith/minipro";
maintainers = with maintainers; [ kalium ];
license = licenses.gpl3;
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment