about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/po/pololu-tic/package.nix
blob: f34f8d27affac645789285e5de82f79ad918afb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, stdenv
, fetchFromGitHub
, libusbp
, cmake
, pkg-config
, qt5
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "pololu-tic";
  version = "1.8.1";

  src = fetchFromGitHub {
    owner = "pololu";
    repo = "pololu-tic-software";
    rev = "refs/tags/${finalAttrs.version}";
    sha256 = "sha256-C/v5oaC5zZwm+j9CbFaDW+ebzHxPVb8kZLg9c0HyPbc=";
  };

  outputs = [
    "out"
    "dev"
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
    qt5.wrapQtAppsHook
  ];

  propagatedBuildInputs = [
    libusbp
  ];

  buildInputs = [
    qt5.qtbase
  ];

  meta = with lib; {
    homepage = "https://github.com/pololu/pololu-tic-software";
    description = "Pololu Tic stepper motor controller software";
    platforms = platforms.all;
    license = licenses.cc-by-sa-30;
    maintainers = with maintainers; [ bzizou ];
  };
})