17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitHub {
25 sha256 = "sha256-ggePJH2kKJ17aOWRKUnLyolIdSzlc6Axf5Iw74iFfek=";
29 lockFile = ./Cargo.lock;
31 "bevy_egui-0.21.0" = "sha256-hu55tZQppw1NajwqIsYsw6de0IAwQwgra3D9OFzSSLc=";
32 "bones_asset-0.3.0" = "sha256-1UeOXW6O/gMQBBUnHxRreJgmiUTPC5SJB+uLn9V8aa4=";
33 "kira-0.8.5" = "sha256-z4R5aIaoRQQprL6JsVrFI69rwTOsW5OH01+jORS+hBQ=";
44 ] ++ lib.optionals stdenv.isLinux [
54 ] ++ lib.optionals stdenv.isDarwin [
55 darwin.apple_sdk_11_0.frameworks.Cocoa
56 rustPlatform.bindgenHook
59 cargoBuildFlags = [ "--bin" "jumpy" ];
62 ZSTD_SYS_USE_PKG_CONFIG = true;
65 # jumpy only loads assets from the current directory
66 # https://github.com/fishfolk/bones/blob/f84d07c2f2847d9acd5c07098fe1575abc496400/framework_crates/bones_asset/src/io.rs#L50
69 cp -r assets $out/share
70 wrapProgram $out/bin/jumpy --chdir $out/share
73 postFixup = lib.optionalString stdenv.isLinux ''
74 patchelf $out/bin/.jumpy-wrapped \
75 --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}
79 description = "A tactical 2D shooter played by up to 4 players online or on a shared screen";
80 mainProgram = "jumpy";
81 homepage = "https://fishfight.org/";
82 changelog = "https://github.com/fishfolk/jumpy/releases/tag/v${version}";
83 license = with licenses; [ mit /* or */ asl20 ];
84 maintainers = with maintainers; [ figsoda ];