diff --git a/pkgs/by-name/li/libusbp/package.nix b/pkgs/by-name/li/libusbp/package.nix new file mode 100644 index 000000000000..7502ee17490f --- /dev/null +++ b/pkgs/by-name/li/libusbp/package.nix @@ -0,0 +1,41 @@ +{ 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 ]; + }; +}) diff --git a/pkgs/by-name/po/pololu-tic/package.nix b/pkgs/by-name/po/pololu-tic/package.nix new file mode 100644 index 000000000000..f34f8d27affa --- /dev/null +++ b/pkgs/by-name/po/pololu-tic/package.nix @@ -0,0 +1,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 ]; + }; +})