diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-09-11 21:51:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 21:51:14 +0200 |
commit | eb8003fcea521c10a0d4661f81a975055e7980a4 (patch) | |
tree | 1e1abd8ef7d26d9ca90830a5d94ee7a474cc9994 /pkgs/games | |
parent | 89d6af5c1d6ba1887c01bc161a77fdff33dd7b7a (diff) | |
parent | 3935d8a9d2497424d72d4c774c4851d5c5e19fdc (diff) |
Merge pull request #137315 from yusdacra/add-airshipper
airshipper: init at 0.6.0
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/airshipper/default.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/pkgs/games/airshipper/default.nix b/pkgs/games/airshipper/default.nix new file mode 100644 index 0000000000000..1fe33a86f9780 --- /dev/null +++ b/pkgs/games/airshipper/default.nix @@ -0,0 +1,74 @@ +{ lib +, rustPlatform +, fetchFromGitLab +, openssl +, vulkan-loader +, wayland +, wayland-protocols +, libxkbcommon +, libX11 +, libXrandr +, libXi +, libXcursor +, pkg-config +, makeWrapper +}: + +rustPlatform.buildRustPackage rec { + pname = "airshipper"; + version = "0.6.0"; + + src = fetchFromGitLab { + owner = "Veloren"; + repo = "airshipper"; + rev = "v${version}"; + sha256 = "sha256-m3H2FE1DoV/uk9PGgf9PCagwmWWSQO/gCi7zpS02/WY="; + }; + + cargoSha256 = "sha256-ddy4TjT/ia+sLBnpwcXBVUzAS07ar+Jjc04KS5/arlU="; + + buildInputs = [ + openssl + wayland + wayland-protocols + libxkbcommon + libX11 + libXrandr + libXi + libXcursor + ]; + nativeBuildInputs = [ pkg-config makeWrapper ]; + + postInstall = '' + mkdir -p "$out/share/applications" && mkdir -p "$out/share/icons" + cp "client/assets/net.veloren.airshipper.desktop" "$out/share/applications" + cp "client/assets/logo.ico" "$out/share/icons/net.veloren.airshipper.ico" + ''; + + postFixup = + let + libPath = lib.makeLibraryPath [ + vulkan-loader + wayland + wayland-protocols + libxkbcommon + libX11 + libXrandr + libXi + libXcursor + ]; + in '' + patchelf --set-rpath "${libPath}" "$out/bin/airshipper" + ''; + + doCheck = false; + cargoBuildFlags = [ "--package" "airshipper" ]; + cargoTestFlags = [ "--package" "airshipper" ]; + + meta = with lib; { + description = "Provides automatic updates for the voxel RPG Veloren."; + homepage = "https://www.veloren.net"; + license = licenses.gpl3; + maintainers = with maintainers; [ yusdacra ]; + }; +} |