Compare commits
4 commits
8b6817a949
...
90d12289c5
Author | SHA1 | Date | |
---|---|---|---|
Joseph DiGiovanni | 90d12289c5 | ||
Joseph DiGiovanni | 5dcbe8b9e8 | ||
Joseph DiGiovanni | 761d9b43a6 | ||
Joseph DiGiovanni | bb41f4ca45 |
89
custom-pkgs/alvr.nix
Normal file
89
custom-pkgs/alvr.nix
Normal file
|
@ -0,0 +1,89 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchzip
|
||||
, fetchFromGitHub
|
||||
, alsa-lib
|
||||
, autoPatchelfHook
|
||||
, brotli
|
||||
, ffmpeg
|
||||
, libdrm
|
||||
, libGL
|
||||
, libunwind
|
||||
, libva
|
||||
, libvdpau
|
||||
, libxkbcommon
|
||||
, nix-update-script
|
||||
, openssl
|
||||
, SDL2
|
||||
, vulkan-loader
|
||||
, wayland
|
||||
, x264
|
||||
, xorg
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alvr";
|
||||
version = "20.9.1";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/alvr-org/ALVR/releases/download/v${version}/alvr_streamer_linux.tar.gz";
|
||||
hash = "sha256-S8GeUskAqxzPqKC5XDiRDezV++vestlHLAzK001wkXQ=";
|
||||
};
|
||||
|
||||
alvrSrc = fetchFromGitHub {
|
||||
owner = "alvr-org";
|
||||
repo = "ALVR";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-kw/UGh9nxZMVnvxyXV4CUm3HZegyjWolNoHHNindc5s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
libunwind
|
||||
libva
|
||||
libvdpau
|
||||
vulkan-loader
|
||||
SDL2
|
||||
];
|
||||
|
||||
runtimeDependencies = [
|
||||
brotli
|
||||
ffmpeg
|
||||
openssl
|
||||
libdrm
|
||||
libGL
|
||||
libxkbcommon
|
||||
wayland
|
||||
x264
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libxcb
|
||||
xorg.libXi
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/applications
|
||||
cp -r $src/* $out
|
||||
install -Dm444 $alvrSrc/alvr/xtask/resources/alvr.desktop -t $out/share/applications
|
||||
install -Dm444 $alvrSrc/resources/alvr.png -t $out/share/icons/hicolor/256x256/apps
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Stream VR games from your PC to your headset via Wi-Fi";
|
||||
homepage = "https://github.com/alvr-org/ALVR/";
|
||||
changelog = "https://github.com/alvr-org/ALVR/releases/tag/v${finalAttrs.version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ passivelemon ];
|
||||
platforms = platforms.linux;
|
||||
mainProgram = "alvr_dashboard";
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
let
|
||||
customPkgs = final: prev: with pkgs;{
|
||||
adwaita-for-steam = callPackage ./adwaita-for-steam.nix { };
|
||||
alvr = callPackage ./alvr.nix { };
|
||||
|
||||
gnomeExtensions = prev.gnomeExtensions // {
|
||||
monitor-brightness-and-volume = callPackage ./gnomeExtensions/monitor-brightness-and-volume.nix { };
|
||||
|
@ -23,6 +24,7 @@ let
|
|||
godot_4 = final.unstable.godot_4;
|
||||
icoextract = final.unstable.icoextract; #TODO: remove in next release
|
||||
proton-ge-bin = final.unstable.proton-ge-bin;
|
||||
sidequest = final.unstable.sidequest;
|
||||
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
inherit (final) config system;
|
||||
|
|
|
@ -13,7 +13,7 @@ in
|
|||
};
|
||||
|
||||
systemd.user.services.ddcutil-auto-brightness-gnome = {
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
|
||||
Service = {
|
||||
ExecStart = pkgs.writeShellScript "ddcutil-auto-brightness-gnome" ''
|
||||
|
@ -32,10 +32,7 @@ in
|
|||
RestartSec = 10;
|
||||
};
|
||||
|
||||
Unit = {
|
||||
After = [ "graphical-session.target" ];
|
||||
Description = "ddcutil auto brightness service for GNOME";
|
||||
};
|
||||
Unit.Description = "ddcutil auto brightness service for GNOME";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ gnomeExtensions.monitor-brightness-and-volume ];
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
unstable.alvr
|
||||
unstable.sidequest
|
||||
alvr
|
||||
sidequest
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue