mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
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
|
||||
, fetchFromGitHub
|
||||
, stdenv
|
||||
, makeWrapper
|
||||
, pkg-config
|
||||
, alsa-lib
|
||||
, libGL
|
||||
, xorg
|
||||
, libxkbcommon
|
||||
, udev
|
||||
, Cocoa
|
||||
, OpenGL
|
||||
, vulkan-loader
|
||||
, wayland
|
||||
, xorg
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "jumpy";
|
||||
version = "0.4.3";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fishfolks";
|
||||
owner = "fishfolk";
|
||||
repo = pname;
|
||||
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
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isLinux [
|
||||
alsa-lib
|
||||
libGL
|
||||
xorg.libX11
|
||||
xorg.libXi
|
||||
libxkbcommon
|
||||
udev
|
||||
vulkan-loader
|
||||
wayland
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXi
|
||||
xorg.libXrandr
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Cocoa
|
||||
OpenGL
|
||||
darwin.apple_sdk.frameworks.Cocoa
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/main.rs \
|
||||
--replace ./assets $out/share/assets \
|
||||
--replace ./mods $out/share/mods
|
||||
touch ../$(stripHash $cargoDeps)/taffy/README.md
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
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; {
|
||||
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 ];
|
||||
};
|
||||
|
@ -34272,9 +34272,7 @@ with pkgs;
|
||||
|
||||
fish-fillets-ng = callPackage ../games/fish-fillets-ng { };
|
||||
|
||||
jumpy = callPackage ../games/jumpy {
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
|
||||
};
|
||||
jumpy = callPackage ../games/jumpy { };
|
||||
|
||||
flightgear = libsForQt5.callPackage ../games/flightgear { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user