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

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

39 lines
952 B
Nix
Raw Normal View History

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