Skip to content

Commit

Permalink
wayvr-dashboard: init at 0.2.2
Browse files Browse the repository at this point in the history
Co-authored-by: nanoyaki <[email protected]>

Signed-off-by: Sefa Eyeoglu <[email protected]>
  • Loading branch information
Scrumplex committed Feb 23, 2025
1 parent 05338c7 commit 6b0e937
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions pkgs/by-name/wa/wayvr-dashboard/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# SPDX-FileCopyrightText: 2025 Hana Kretzer <[email protected]>
#
# SPDX-License-Identifier: MIT
{
lib,
rustPlatform,
fetchNpmDeps,
npmHooks,
pkg-config,
cargo-tauri,
nodejs,
glib,
gtk3,
gtk4,
webkitgtk_4_1,
libsoup_3,
alsa-lib,

fetchFromGitHub,
}:

let
cargoRoot = "src-tauri";
in

rustPlatform.buildRustPackage rec {
pname = "wayvr-dashboard";
version = "0.2.2";

src = fetchFromGitHub {
owner = "olekolek1000";
repo = "wayvr-dashboard";
tag = version;
hash = "sha256-vs4lk0B/D51WsHWOgqpTcPHf8WFaRJCkJyHZImDsdqk=";
};

useFetchCargoVendor = true;
cargoHash = "sha256-/Lik6Hy80h5BL4rquVa3J9Fzqg2cOZKsRsLFzTgMle4=";

npmDeps = fetchNpmDeps {
inherit src;
hash = "sha256-W2X9g0LFIgkLbZBdr4OqodeN7U/h3nVfl3mKV9dsZTg=";
};

nativeBuildInputs = [
pkg-config

cargo-tauri.hook

nodejs
npmHooks.npmConfigHook
];

buildInputs = [
glib
gtk3
gtk4
webkitgtk_4_1
libsoup_3
alsa-lib
];

preBuild = ''
# using sass-embedded fails at executing node_modules/sass-embedded-linux-x64/dart-sass/src/dart
rm -r node_modules/sass-embedded*
'';

inherit cargoRoot;
buildAndTestSubdir = cargoRoot;

meta = {
description = "A work-in-progress overlay application for launching various applications and games directly into a VR desktop environment";
homepage = "https://github.com/olekolek1000/wayvr-dashboard";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nanoyaki Scrumplex ];
platforms = lib.platforms.linux;
mainProgram = "wayvr_dashboard";
};
}

0 comments on commit 6b0e937

Please sign in to comment.