68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
makeDesktopItem,
|
|
copyDesktopItems,
|
|
fetchFromGitHub,
|
|
qt6,
|
|
libusb1,
|
|
}:
|
|
let
|
|
version = "0.0.5";
|
|
description = "Openterface mini-KVM host application for linux";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "openterface-qt";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TechxArtisanStudio";
|
|
repo = "Openterface_QT";
|
|
rev = "v${version}";
|
|
hash = "sha256-pe7idedtlxGGlNUvXQjIF57m2wW+WlWVM0BYOR+CxBU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
copyDesktopItems
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
buildInputs = [
|
|
libusb1
|
|
qt6.qtbase
|
|
qt6.qtmultimedia
|
|
qt6.qtserialport
|
|
qt6.qtsvg
|
|
qt6.qmake
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp ./openterfaceQT $out/bin/
|
|
mkdir -p $out/share/pixmaps
|
|
cp images/icon_256.png $out/share/pixmaps/openterfaceQT.png
|
|
runHook postInstall
|
|
'';
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
name = "openterfaceQT";
|
|
exec = "openterfaceQT";
|
|
icon = "openterfaceQT";
|
|
comment = description;
|
|
desktopName = "Openterface QT";
|
|
categories = [ "Utility" ];
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
inherit description;
|
|
homepage = "https://github.com/TechxArtisanStudio/Openterface_QT";
|
|
license = lib.licenses.agpl3Only;
|
|
mainProgram = "openterfaceQT";
|
|
maintainers = with lib.maintainers; [ samw ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|