60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
wayland-scanner,
|
|
fontconfig,
|
|
expat,
|
|
wayland,
|
|
libxkbcommon,
|
|
libGL,
|
|
pipewire,
|
|
libsamplerate,
|
|
spice-protocol,
|
|
nettle,
|
|
libffi,
|
|
libx11,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "looking-glass";
|
|
version = "4bb2c58fb6d0df9e863ad45924dd4decc7e9cf4e";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gnif";
|
|
repo = "LookingGlass";
|
|
rev = "4bb2c58fb6d0df9e863ad45924dd4decc7e9cf4e";
|
|
hash = "sha256-Dc0sFnJVM0xJ0FfIQqGQKxFUj6mhp3qgB772h3Dgowc";
|
|
fetchSubmodules = true;
|
|
leaveDotGit = false;
|
|
};
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wayland-scanner ];
|
|
buildInputs = [
|
|
fontconfig
|
|
expat
|
|
wayland
|
|
libxkbcommon
|
|
libGL
|
|
pipewire
|
|
libsamplerate
|
|
spice-protocol
|
|
nettle
|
|
libffi
|
|
libx11
|
|
];
|
|
|
|
cmakeDir = "../client";
|
|
|
|
cmakeFlags = [
|
|
"-DENABLE_BACKTRACE=no"
|
|
"-DENABLE_WAYLAND=yes"
|
|
"-DENABLE_PIPEWIRE=yes"
|
|
"-DENABLE_PULSEAUDIO=no"
|
|
"-DENABLE_X11=no"
|
|
"-DOPTIMIZE_FOR_NATIVE=x86-64-v3"
|
|
];
|
|
}
|