29 # Patch for airshipper to install veloren
45 writeShellScript "patch" ''
46 echo "making binaries executable"
47 chmod +x {veloren-voxygen,veloren-server-cli}
48 echo "patching dynamic linkers"
49 ${patchelf}/bin/patchelf \
50 --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" \
52 ${patchelf}/bin/patchelf \
53 --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" \
54 --set-rpath "${lib.makeLibraryPath runtimeLibs}" \
58 rustPlatform.buildRustPackage {
62 src = fetchFromGitLab {
66 hash = "sha256-+ZU3WAjmPDAFAevebePcIlYcgSYSJJ3LyvwbTBKGUH4=";
69 cargoHash = "sha256-mwfYCVcOH2zFr76W9ZC4t/LmEwO5P2eGYXRVkwn6Fm4=";
82 nativeBuildInputs = [ cmake pkg-config makeWrapper ];
84 RUSTC_BOOTSTRAP = 1; # We need rust unstable features
87 install -Dm444 -t "$out/share/applications" "client/assets/net.veloren.airshipper.desktop"
88 install -Dm444 "client/assets/net.veloren.airshipper.png" "$out/share/icons/net.veloren.airshipper.png"
93 libPath = lib.makeLibraryPath [
109 patchelf --set-rpath "${libPath}" "$out/bin/airshipper"
110 wrapProgram "$out/bin/airshipper" --set VELOREN_PATCHER "${patch}"
114 cargoBuildFlags = [ "--package" "airshipper" ];
115 cargoTestFlags = [ "--package" "airshipper" ];
118 description = "Provides automatic updates for the voxel RPG Veloren";
119 mainProgram = "airshipper";
120 homepage = "https://www.veloren.net";
121 license = licenses.gpl3;
122 maintainers = with maintainers; [ yusdacra ];