nixpkgs-suyu/pkgs/tools/misc/minipro/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
923 B
Nix
Raw Normal View History

2021-05-12 01:53:37 +02:00
{ lib
, stdenv
, fetchFromGitLab
, pkg-config
, libusb1
}:
stdenv.mkDerivation rec {
pname = "minipro";
version = "0.6";
2021-05-12 01:53:37 +02:00
src = fetchFromGitLab {
owner = "DavidGriffith";
repo = "minipro";
rev = version;
sha256 = "sha256-6i4PYzSm6lcO/Nb6n3holrNe4TtAnG2o81ZIMAIGqOE=";
2021-05-12 01:53:37 +02:00
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ];
makeFlags = [
"VERSION=${version}"
2021-05-12 01:53:37 +02: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"
"CFLAGS=-O2"
2021-05-12 01:53:37 +02: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 ];
};
}