@@ -0,0 +1,35 @@
1+{ lib
2+, stdenv
3+, fetchFromGitLab
4+, pkg-config
5+, libusb1
6+}:
7+
8+stdenv.mkDerivation rec {
9+ pname = "minipro";
10+ version = "0.5";
11+
12+ src = fetchFromGitLab {
13+ owner = "DavidGriffith";
14+ repo = "minipro";
15+ rev = version;
16+ sha256 = "sha256-Hyj2LyY7W8opjigH+QLHHbDyelC0LMgGgdN+u3nNoJc=";
17+ };
18+
19+ nativeBuildInputs = [ pkg-config ];
20+ buildInputs = [ libusb1 ];
21+ makeFlags = [
22+ "PREFIX=$(out)"
23+ "UDEV_DIR=$(out)/lib/udev"
24+ "COMPLETIONS_DIR=$(out)/share/bash-completion/completions"
25+ "PKG_CONFIG=${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config"
26+ "CC=${stdenv.cc.targetPrefix}cc"
27+ ];
28+
29+ meta = with lib; {
30+ homepage = "https://gitlab.com/DavidGriffith/minipro";
31+ description = "An open source program for controlling the MiniPRO TL866xx series of chip programmers";
32+ license = licenses.gpl3Plus;
33+ maintainers = [ maintainers.bmwalters ];
34+ };
35+}