3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/virtualization/looking-glass-client/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
2 KiB
Nix
Raw Normal View History

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 04:22:17 +01: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 {
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
};
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 02:37:17 +01:00
];
cmakeFlags = [ "-DOPTIMIZE_FOR_NATIVE=OFF" ];
2018-01-28 14:08:37 +00:00
2021-07-18 04:22:17 +01:00
postUnpack = ''
2021-12-31 21:58:57 +00:00
echo ${src.rev} > source/VERSION
2021-07-18 04:22:17 +01: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
'';
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 04:22:17 +01:00
maintainers = with maintainers; [ alexbakker babbaj ];
platforms = [ "x86_64-linux" ];
2018-01-28 14:08:37 +00:00
};
}