mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "stardust-xr-flatland";
|
|
version = "0-unstable-2024-04-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stardustxr";
|
|
repo = "flatland";
|
|
rev = "b3b0f29c4ea1b82c96cf9de507837bf15a5e4c0e";
|
|
hash = "sha256-m7c6XpmpTM1URuqMG2KqtaWbL2Vt8vJFJtmvq123BmY=";
|
|
};
|
|
|
|
env.STARDUST_RES_PREFIXES = "${src}/res";
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"stardust-xr-0.44.0" = "sha256-Gu/P78nFFVSpgwCcbMwyoqdEZO8zIcvP1ovU7Y0sXqg=";
|
|
"stardust-xr-molecules-0.44.0" = "sha256-TpgsmQnaAbtcp+veclGaht7f9hwEWEzMOpEIvdICTbc=";
|
|
};
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [ "--version=branch" ];
|
|
};
|
|
|
|
meta = {
|
|
description = "A flat window for Stardust XR";
|
|
homepage = "https://stardustxr.org";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "flatland";
|
|
maintainers = with lib.maintainers; [
|
|
pandapip1
|
|
technobaboo
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|