vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / tools / misc / minipro / default.nix
blobb60e886f47c522cb18a341e7eda8ffa2380726a9
1 { lib
2 , stdenv
3 , fetchFromGitLab
4 , pkg-config
5 , libusb1
6 }:
8 stdenv.mkDerivation rec {
9   pname = "minipro";
10   version = "0.7";
12   src = fetchFromGitLab {
13     owner = "DavidGriffith";
14     repo = "minipro";
15     rev = version;
16     hash = "sha256-suMGR1vgM2tXsPHInZ6HEDKhDSPlC1ss+wCgbION/rE=";
17   };
19   nativeBuildInputs = [ pkg-config ];
20   buildInputs = [ libusb1 ];
21   makeFlags = [
22     "VERSION=${version}"
23     "PREFIX=$(out)"
24     "UDEV_DIR=$(out)/lib/udev"
25     "COMPLETIONS_DIR=$(out)/share/bash-completion/completions"
26     "PKG_CONFIG=${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config"
27     "CC=${stdenv.cc.targetPrefix}cc"
28     "CFLAGS=-O2"
29   ];
31   meta = with lib; {
32     homepage = "https://gitlab.com/DavidGriffith/minipro";
33     description = "Open source program for controlling the MiniPRO TL866xx series of chip programmers";
34     license = licenses.gpl3Plus;
35     maintainers = [ maintainers.bmwalters ];
36     mainProgram = "minipro";
37     platforms = platforms.unix;
38   };