0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

openterface-qt: init at 0.0.6

This commit is contained in:
Sam Willcocks 2024-12-15 23:54:28 +00:00
parent 72855b751a
commit 5d580a39ed

View file

@ -0,0 +1,59 @@
{
lib,
stdenv,
makeDesktopItem,
copyDesktopItems,
fetchFromGitHub,
qt6,
libusb1,
}:
stdenv.mkDerivation (final: {
pname = "openterface-qt";
version = "0.0.6";
src = fetchFromGitHub {
owner = "TechxArtisanStudio";
repo = "Openterface_QT";
rev = "v${final.version}";
hash = "sha256-orSOEzyplV0d+faaaRpXeMOhwbnOFxir7DG3LdErCdI=";
};
nativeBuildInputs = [
copyDesktopItems
qt6.wrapQtAppsHook
qt6.qmake
];
buildInputs = [
libusb1
qt6.qtbase
qt6.qtmultimedia
qt6.qtserialport
qt6.qtsvg
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ./openterfaceQT $out/bin/
mkdir -p $out/share/pixmaps
cp ./images/icon_256.png $out/share/pixmaps/${final.pname}.png
runHook postInstall
'';
desktopItems = [
(makeDesktopItem {
name = "openterfaceQT";
exec = "openterfaceQT";
icon = final.pname;
comment = final.meta.description;
desktopName = "Openterface QT";
categories = [ "Utility" ];
})
];
meta = {
description = "Openterface mini-KVM host application for linux";
homepage = "https://github.com/TechxArtisanStudio/Openterface_QT";
license = lib.licenses.agpl3Only;
mainProgram = "openterfaceQT";
maintainers = with lib.maintainers; [ samw ];
platforms = lib.platforms.linux;
};
})