2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
appstream-glib,
|
|
|
|
cairo,
|
2024-09-19 14:19:46 +00:00
|
|
|
cargo,
|
2024-07-27 06:49:29 +00:00
|
|
|
desktop-file-utils,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitLab,
|
2024-07-27 06:49:29 +00:00
|
|
|
gdb,
|
|
|
|
gdk-pixbuf,
|
2024-09-19 14:19:46 +00:00
|
|
|
git,
|
2024-07-27 06:49:29 +00:00
|
|
|
glib,
|
|
|
|
gtk4,
|
|
|
|
gtksourceview5,
|
2024-09-19 14:19:46 +00:00
|
|
|
lib,
|
2024-07-27 06:49:29 +00:00
|
|
|
libadwaita,
|
|
|
|
libgit2,
|
|
|
|
libusb1,
|
2024-09-19 14:19:46 +00:00
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
nix-update-script,
|
2024-07-27 06:49:29 +00:00
|
|
|
openssl,
|
2024-09-19 14:19:46 +00:00
|
|
|
openxr-loader,
|
2024-07-27 06:49:29 +00:00
|
|
|
pango,
|
2024-09-19 14:19:46 +00:00
|
|
|
pkg-config,
|
|
|
|
rustPlatform,
|
|
|
|
rustc,
|
|
|
|
stdenv,
|
2024-07-27 06:49:29 +00:00
|
|
|
vte-gtk4,
|
2024-09-19 14:19:46 +00:00
|
|
|
wrapGAppsHook4,
|
2024-07-27 06:49:29 +00:00
|
|
|
zlib,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "envision-unwrapped";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0-unstable-2024-09-21";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gabmus";
|
|
|
|
repo = "envision";
|
2024-09-26 11:04:55 +00:00
|
|
|
rev = "41e9af1676d3cfd458939a34b5c8b06d84c3f764";
|
|
|
|
hash = "sha256-qk9xlHWbkCRpve3SZMtq5ojfS2tRwyXsckqu7fs/Lm0=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-09-19 14:19:46 +00:00
|
|
|
"libmonado-rs-0.1.0" = "sha256-xztevBUaYBm5G3A0ZTb+3GV3g1IAU3SzfSS5BBqfp1Y=";
|
|
|
|
"openxr-0.18.0" = "sha256-ktkbhmExstkNJDYM/HYOwAwv3acex7P9SP0KMAOKhQk=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
cargo
|
2024-09-19 14:19:46 +00:00
|
|
|
git
|
2024-07-27 06:49:29 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustc
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
|
|
|
libadwaita
|
|
|
|
libgit2
|
|
|
|
libusb1
|
|
|
|
openssl
|
2024-09-19 14:19:46 +00:00
|
|
|
openxr-loader
|
2024-07-27 06:49:29 +00:00
|
|
|
pango
|
|
|
|
vte-gtk4
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/envision \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ gdb ]}"
|
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch=main" ]; };
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "UI for building, configuring and running Monado, the open source OpenXR runtime";
|
|
|
|
homepage = "https://gitlab.com/gabmus/envision";
|
|
|
|
license = lib.licenses.agpl3Only;
|
|
|
|
mainProgram = "envision";
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
pandapip1
|
|
|
|
Scrumplex
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
})
|