acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / st / stardust-xr-flatland / package.nix
blob214c5636dfd957224fecc7cb68ce49f22ec93f11
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5   nix-update-script,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "stardust-xr-flatland";
10   version = "0-unstable-2024-04-13";
12   src = fetchFromGitHub {
13     owner = "stardustxr";
14     repo = "flatland";
15     rev = "b3b0f29c4ea1b82c96cf9de507837bf15a5e4c0e";
16     hash = "sha256-m7c6XpmpTM1URuqMG2KqtaWbL2Vt8vJFJtmvq123BmY=";
17   };
19   env.STARDUST_RES_PREFIXES = "${src}/res";
21   cargoLock = {
22     lockFile = ./Cargo.lock;
23     outputHashes = {
24       "stardust-xr-0.44.0" = "sha256-Gu/P78nFFVSpgwCcbMwyoqdEZO8zIcvP1ovU7Y0sXqg=";
25       "stardust-xr-molecules-0.44.0" = "sha256-TpgsmQnaAbtcp+veclGaht7f9hwEWEzMOpEIvdICTbc=";
26     };
27   };
29   passthru.updateScript = nix-update-script {
30     extraArgs = [ "--version=branch" ];
31   };
33   meta = {
34     description = "A flat window for Stardust XR";
35     homepage = "https://stardustxr.org";
36     license = lib.licenses.mit;
37     mainProgram = "flatland";
38     maintainers = with lib.maintainers; [
39       pandapip1
40       technobaboo
41     ];
42     platforms = lib.platforms.linux;
43   };