2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, pkg-config
|
|
|
|
, libusb1
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "minipro";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.7";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "DavidGriffith";
|
|
|
|
repo = "minipro";
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-suMGR1vgM2tXsPHInZ6HEDKhDSPlC1ss+wCgbION/rE=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
makeFlags = [
|
2022-10-06 18:32:54 +00:00
|
|
|
"VERSION=${version}"
|
2021-05-20 23:08:51 +00:00
|
|
|
"PREFIX=$(out)"
|
|
|
|
"UDEV_DIR=$(out)/lib/udev"
|
|
|
|
"COMPLETIONS_DIR=$(out)/share/bash-completion/completions"
|
|
|
|
"PKG_CONFIG=${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config"
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
2022-10-06 18:32:54 +00:00
|
|
|
"CFLAGS=-O2"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.com/DavidGriffith/minipro";
|
|
|
|
description = "An open source program for controlling the MiniPRO TL866xx series of chip programmers";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.bmwalters ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "minipro";
|
2024-05-15 15:35:15 +00:00
|
|
|
platforms = platforms.unix;
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|