···
rustPlatform.buildRustPackage rec {
-
sha256 = "sha256-01zhiQi6v/8ZajsdBU+4hKUCj+PRJ/vUHluOIzy/Gi8=";
-
cargoSha256 = "sha256-AXaGuRqSFiq+Uiy+UaqPdPVyDhCogC64KZZ0Ah1Yo7A=";
-
nativeBuildInputs = lib.optionals stdenv.isLinux [
buildInputs = lib.optionals stdenv.isLinux [
] ++ lib.optionals stdenv.isDarwin [
-
substituteInPlace src/main.rs \
-
--replace ./assets $out/share/assets \
-
--replace ./mods $out/share/mods
-
cp -r assets mods $out/share
description = "A tactical 2D shooter played by up to 4 players online or on a shared screen";
homepage = "https://fishfight.org/";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];
···
rustPlatform.buildRustPackage rec {
+
sha256 = "sha256-5hgd4t9ZKHmv8wzED7Tn+ykzUM0EbQqRX15HBHzXtJY=";
+
cargoSha256 = "sha256-cK5n75T+Kkd6F4q4MFZNn0R6W6Nk2/H23AGhIe2FCig=";
+
] ++ lib.optionals stdenv.isLinux [
buildInputs = lib.optionals stdenv.isLinux [
] ++ lib.optionals stdenv.isDarwin [
+
darwin.apple_sdk.frameworks.Cocoa
+
rustPlatform.bindgenHook
+
touch ../$(stripHash $cargoDeps)/taffy/README.md
+
cp -r assets $out/share
+
wrapProgram $out/bin/jumpy \
+
--set-default JUMPY_ASSET_DIR $out/share/assets
+
postFixup = lib.optionalString stdenv.isLinux ''
+
patchelf $out/bin/.jumpy-wrapped \
+
--add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}
description = "A tactical 2D shooter played by up to 4 players online or on a shared screen";
homepage = "https://fishfight.org/";
+
changelog = "https://github.com/fishfolk/jumpy/releases/tag/v${version}";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];