diff options
author | h7x4 <h7x4@nani.wtf> | 2024-02-02 11:36:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 11:36:08 +0100 |
commit | 7ac5d2ce0c4ad9534688c9c7f6e52feb995a649d (patch) | |
tree | 0e61337d2778dd65e17d0b86d8c0ae88026653ef /pkgs/by-name/al | |
parent | 381d7ada6d7ff6d8e4ee625a990acba090fdf6e8 (diff) | |
parent | 1d3e2a92bc516a1ead80dafbd48a07fb935f684d (diff) |
Merge pull request #284154 from PassiveLemon/ALVR
alvr: init at 20.6.1
Diffstat (limited to 'pkgs/by-name/al')
-rw-r--r-- | pkgs/by-name/al/alvr/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/al/alvr/package.nix b/pkgs/by-name/al/alvr/package.nix new file mode 100644 index 0000000000000..803f352ae4e6f --- /dev/null +++ b/pkgs/by-name/al/alvr/package.nix @@ -0,0 +1,36 @@ +{ lib, + appimageTools, + fetchurl, +}: +let + pname = "alvr"; + version = "20.6.1"; + src = fetchurl { + url = "https://github.com/alvr-org/ALVR/releases/download/v${version}/ALVR-x86_64.AppImage"; + hash = "sha256-IYw3D18xUGWiFu74c4d8d4tohZztAD6mmZCYsDNxR+A="; + }; + + appimageContents = appimageTools.extractType2 { inherit pname version src; }; +in +appimageTools.wrapType2 { + inherit pname version src; + + extraInstallCommands = '' + mv $out/bin/alvr-${version} $out/bin/alvr + + install -Dm444 ${appimageContents}/alvr.desktop -t $out/share/applications + substituteInPlace $out/share/applications/alvr.desktop \ + --replace 'Exec=alvr_dashboard' 'Exec=alvr' + cp -r ${appimageContents}/usr/share/icons $out/share + ''; + + 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${version}"; + license = licenses.mit; + mainProgram = "alvr"; + maintainers = with maintainers; [ passivelemon ]; + platforms = [ "x86_64-linux" ]; + }; +} |