jumpy: 0.4.3 -> 0.5.1
Diff: https://github.com/fishfolk/jumpy/compare/v0.4.3...v0.5.1 Changelog: https://github.com/fishfolk/jumpy/releases/tag/v0.5.1
This commit is contained in:
parent
41c8ece32f
commit
446bfd7430
@ -2,57 +2,72 @@
|
|||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, makeWrapper
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, alsa-lib
|
, alsa-lib
|
||||||
, libGL
|
, libxkbcommon
|
||||||
, xorg
|
|
||||||
, udev
|
, udev
|
||||||
, Cocoa
|
, vulkan-loader
|
||||||
, OpenGL
|
, wayland
|
||||||
|
, xorg
|
||||||
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "jumpy";
|
pname = "jumpy";
|
||||||
version = "0.4.3";
|
version = "0.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "fishfolks";
|
owner = "fishfolk";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-01zhiQi6v/8ZajsdBU+4hKUCj+PRJ/vUHluOIzy/Gi8=";
|
sha256 = "sha256-5hgd4t9ZKHmv8wzED7Tn+ykzUM0EbQqRX15HBHzXtJY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-AXaGuRqSFiq+Uiy+UaqPdPVyDhCogC64KZZ0Ah1Yo7A=";
|
cargoSha256 = "sha256-cK5n75T+Kkd6F4q4MFZNn0R6W6Nk2/H23AGhIe2FCig=";
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
nativeBuildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isLinux [
|
buildInputs = lib.optionals stdenv.isLinux [
|
||||||
alsa-lib
|
alsa-lib
|
||||||
libGL
|
libxkbcommon
|
||||||
xorg.libX11
|
|
||||||
xorg.libXi
|
|
||||||
udev
|
udev
|
||||||
|
vulkan-loader
|
||||||
|
wayland
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libXrandr
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
Cocoa
|
darwin.apple_sdk.frameworks.Cocoa
|
||||||
OpenGL
|
rustPlatform.bindgenHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/main.rs \
|
touch ../$(stripHash $cargoDeps)/taffy/README.md
|
||||||
--replace ./assets $out/share/assets \
|
|
||||||
--replace ./mods $out/share/mods
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir $out/share
|
mkdir $out/share
|
||||||
cp -r assets mods $out/share
|
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 ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A tactical 2D shooter played by up to 4 players online or on a shared screen";
|
description = "A tactical 2D shooter played by up to 4 players online or on a shared screen";
|
||||||
homepage = "https://fishfight.org/";
|
homepage = "https://fishfight.org/";
|
||||||
|
changelog = "https://github.com/fishfolk/jumpy/releases/tag/v${version}";
|
||||||
license = with licenses; [ mit /* or */ asl20 ];
|
license = with licenses; [ mit /* or */ asl20 ];
|
||||||
maintainers = with maintainers; [ figsoda ];
|
maintainers = with maintainers; [ figsoda ];
|
||||||
};
|
};
|
||||||
|
@ -34272,9 +34272,7 @@ with pkgs;
|
|||||||
|
|
||||||
fish-fillets-ng = callPackage ../games/fish-fillets-ng { };
|
fish-fillets-ng = callPackage ../games/fish-fillets-ng { };
|
||||||
|
|
||||||
jumpy = callPackage ../games/jumpy {
|
jumpy = callPackage ../games/jumpy { };
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
|
|
||||||
};
|
|
||||||
|
|
||||||
flightgear = libsForQt5.callPackage ../games/flightgear { };
|
flightgear = libsForQt5.callPackage ../games/flightgear { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user