Unverified Commit 37fdcd12 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

Merge pull request #224796 from bzizou/libusbp

libusbp: init at 1.3.0 AND pololu-tic: init at 1.8.1
parents 590e8139 1fdb3bb1
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, udev
, cmake
, pkg-config
}:

stdenv.mkDerivation(finalAttrs: {
  pname = "libusbp";
  version = "1.3.0";

  src = fetchFromGitHub {
    owner = "pololu";
    repo = "libusbp";
    rev = finalAttrs.version;
    hash = "sha256-60xpJ97GlqEcy2+pxGNGPfWDnbIFGoPXJijaErOBXQs=";
  };

  outputs = [ "out" "dev" ];

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  propagatedBuildInputs = [
    udev
  ];

  meta = with lib; {
    homepage = "https://github.com/pololu/libusbp";
    description = "Pololu USB Library (also known as libusbp)";
    longDescription = ''
      libusbp is a cross-platform C library for accessing USB devices
    '';
    platforms = platforms.all;
    license = licenses.cc-by-sa-30;
    maintainers = with maintainers; [ bzizou ];
  };
})
+47 −0
Original line number Diff line number Diff line
{ 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 ];
  };
})