2021-12-31 21:58:57 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeDesktopItem, cmake, pkg-config
|
|
|
|
, freefont_ttf, spice-protocol, nettle, libbfd, fontconfig, libffi, expat
|
|
|
|
, libxkbcommon, libGL, libXext, libXrandr, libXi, libXScrnSaver, libXinerama
|
|
|
|
, libXcursor, libXpresent, wayland, wayland-protocols
|
2018-01-28 14:08:37 +00:00
|
|
|
}:
|
|
|
|
|
2021-07-18 03:22:17 +00:00
|
|
|
let
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "looking-glass-client";
|
|
|
|
desktopName = "Looking Glass Client";
|
|
|
|
type = "Application";
|
|
|
|
exec = "looking-glass-client";
|
|
|
|
icon = "lg-logo";
|
|
|
|
terminal = true;
|
|
|
|
};
|
|
|
|
in
|
2018-01-28 14:08:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "looking-glass-client";
|
2021-12-31 21:58:57 +00:00
|
|
|
version = "B5.0.1";
|
2018-01-28 14:08:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnif";
|
|
|
|
repo = "LookingGlass";
|
|
|
|
rev = version;
|
2021-12-31 21:58:57 +00:00
|
|
|
sha256 = "sha256-UzZQU5SzJ2mo9QBweQB0VJSnKfzgTG5QaKpIQN/6LCE=";
|
2020-11-07 08:41:16 +00:00
|
|
|
fetchSubmodules = true;
|
2018-01-28 14:08:37 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-01-28 14:08:37 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-12-31 21:58:57 +00:00
|
|
|
libGL
|
|
|
|
freefont_ttf
|
|
|
|
spice-protocol
|
|
|
|
expat
|
|
|
|
libbfd
|
|
|
|
nettle
|
|
|
|
fontconfig
|
|
|
|
libffi
|
|
|
|
libxkbcommon
|
|
|
|
libXi
|
|
|
|
libXScrnSaver
|
|
|
|
libXinerama
|
|
|
|
libXcursor
|
|
|
|
libXpresent
|
|
|
|
libXext
|
|
|
|
libXrandr
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
2021-04-18 01:37:17 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 00:38:54 +00:00
|
|
|
cmakeFlags = [ "-DOPTIMIZE_FOR_NATIVE=OFF" ];
|
2018-01-28 14:08:37 +00:00
|
|
|
|
2021-07-18 03:22:17 +00:00
|
|
|
postUnpack = ''
|
2021-12-31 21:58:57 +00:00
|
|
|
echo ${src.rev} > source/VERSION
|
2021-07-18 03:22:17 +00:00
|
|
|
export sourceRoot="source/client"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
ln -s ${desktopItem}/share/applications $out/share/
|
|
|
|
cp $src/resources/lg-logo.png $out/share/pixmaps
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-28 14:08:37 +00:00
|
|
|
description = "A KVM Frame Relay (KVMFR) implementation";
|
|
|
|
longDescription = ''
|
|
|
|
Looking Glass is an open source application that allows the use of a KVM
|
|
|
|
(Kernel-based Virtual Machine) configured for VGA PCI Pass-through
|
|
|
|
without an attached physical monitor, keyboard or mouse. This is the final
|
|
|
|
step required to move away from dual booting with other operating systems
|
|
|
|
for legacy programs that require high performance graphics.
|
|
|
|
'';
|
2020-11-07 08:41:16 +00:00
|
|
|
homepage = "https://looking-glass.io/";
|
2018-01-28 14:08:37 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-07-18 03:22:17 +00:00
|
|
|
maintainers = with maintainers; [ alexbakker babbaj ];
|
2018-02-09 20:48:18 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-01-28 14:08:37 +00:00
|
|
|
};
|
|
|
|
}
|