2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, SDL2, SDL2_ttf, spice-protocol
|
2020-11-07 08:41:16 +00:00
|
|
|
, fontconfig, libX11, freefont_ttf, nettle, libpthreadstubs, libXau, libXdmcp
|
|
|
|
, libXi, libXext, wayland, libffi, libGLU, expat, libbfd
|
2018-01-28 14:08:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "looking-glass-client";
|
2020-11-07 08:41:16 +00:00
|
|
|
version = "B2";
|
2018-01-28 14:08:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnif";
|
|
|
|
repo = "LookingGlass";
|
|
|
|
rev = version;
|
2020-11-07 08:41:16 +00:00
|
|
|
sha256 = "100b5kzh8gr81kzw5fdqz2jsms25hv3815d31vy3qd6lrlm5gs3d";
|
|
|
|
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 = [
|
2020-11-07 08:41:16 +00:00
|
|
|
SDL2 SDL2_ttf spice-protocol fontconfig libX11 freefont_ttf nettle
|
|
|
|
libpthreadstubs libXau libXdmcp libXi libXext wayland libffi libGLU expat
|
|
|
|
libbfd
|
2019-05-03 04:04:46 +01:00
|
|
|
];
|
|
|
|
|
2018-01-28 14:08:37 +00:00
|
|
|
sourceRoot = "source/client";
|
2020-11-07 08:41:16 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-mavx"; # Fix some sort of AVX compiler problem.
|
2018-01-28 14:08:37 +00:00
|
|
|
|
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;
|
2020-11-07 08:41:16 +00:00
|
|
|
maintainers = with maintainers; [ alexbakker ];
|
2018-02-09 20:48:18 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-01-28 14:08:37 +00:00
|
|
|
};
|
|
|
|
}
|