2021-07-18 05:22:17 +02:00
|
|
|
|
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, makeDesktopItem, cmake, pkg-config
|
|
|
|
, SDL, SDL2_ttf, freefont_ttf, spice-protocol, nettle, libbfd, fontconfig
|
|
|
|
, libXi, libXScrnSaver, libXinerama
|
|
|
|
, wayland, wayland-protocols
|
2018-01-28 15:08:37 +01:00
|
|
|
}:
|
|
|
|
|
2021-07-18 05:22:17 +02: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 15:08:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "looking-glass-client";
|
2021-07-18 05:22:17 +02:00
|
|
|
version = "B4";
|
2018-01-28 15:08:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnif";
|
|
|
|
repo = "LookingGlass";
|
|
|
|
rev = version;
|
2021-07-18 05:22:17 +02:00
|
|
|
sha256 = "0fwmz0l1dcfwklgvxmv0galgj2q3nss90kc3jwgf6n80x27rsnhf";
|
2020-11-07 09:41:16 +01:00
|
|
|
fetchSubmodules = true;
|
2018-01-28 15:08:37 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-01-28 15:08:37 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-18 05:22:17 +02:00
|
|
|
SDL SDL2_ttf freefont_ttf spice-protocol
|
|
|
|
libbfd nettle fontconfig
|
|
|
|
libXi libXScrnSaver libXinerama
|
|
|
|
wayland wayland-protocols
|
2021-04-18 03:37:17 +02:00
|
|
|
];
|
|
|
|
|
2020-11-07 09:41:16 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-mavx"; # Fix some sort of AVX compiler problem.
|
2018-01-28 15:08:37 +01:00
|
|
|
|
2021-07-18 05:22:17 +02:00
|
|
|
postUnpack = ''
|
|
|
|
echo $version > source/VERSION
|
|
|
|
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 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-01-28 15:08:37 +01: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 09:41:16 +01:00
|
|
|
homepage = "https://looking-glass.io/";
|
2018-01-28 15:08:37 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2021-07-18 05:22:17 +02:00
|
|
|
maintainers = with maintainers; [ alexbakker babbaj ];
|
2018-02-09 21:48:18 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-01-28 15:08:37 +01:00
|
|
|
};
|
|
|
|
}
|