summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2022-03-18 16:58:34 +0800
committerPeter Hoeg <peter@hoeg.com>2022-03-18 16:58:34 +0800
commit3320a62eb3a90a1bca4bdac5c7a2c220842e2568 (patch)
treec48439e42b2e8246230ce2e4b6f7f6f2c656628c /pkgs/games
parent73ad5f9e147c0d2a2061f1d4bd91e05078dc0b58 (diff)
downloadnixpkgs-3320a62eb3a90a1bca4bdac5c7a2c220842e2568.tar
nixpkgs-3320a62eb3a90a1bca4bdac5c7a2c220842e2568.tar.gz
nixpkgs-3320a62eb3a90a1bca4bdac5c7a2c220842e2568.tar.bz2
nixpkgs-3320a62eb3a90a1bca4bdac5c7a2c220842e2568.tar.lz
nixpkgs-3320a62eb3a90a1bca4bdac5c7a2c220842e2568.tar.xz
nixpkgs-3320a62eb3a90a1bca4bdac5c7a2c220842e2568.tar.zst
nixpkgs-3320a62eb3a90a1bca4bdac5c7a2c220842e2568.zip
airshipper: work around deprecated names
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/airshipper/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/games/airshipper/default.nix b/pkgs/games/airshipper/default.nix
index bc6f2a8dc71..4474d09659e 100644
--- a/pkgs/games/airshipper/default.nix
+++ b/pkgs/games/airshipper/default.nix
@@ -1,6 +1,7 @@
 { lib
 , rustPlatform
 , fetchFromGitLab
+, fetchpatch
 , openssl
 , vulkan-loader
 , wayland
@@ -25,6 +26,14 @@ rustPlatform.buildRustPackage rec {
     sha256 = "sha256-nOE9ZNHxLEAnMkuBSpxmeq3DxkRIlcoase6AxU+eFug=";
   };
 
+  patches = [
+    # this *should* be merged in time for the release following 0.7.0
+    (fetchpatch {
+      url = "https://github.com/veloren/Airshipper/commit/97fc986ab4cbf59f2c764f647710f19db86031b4.patch";
+      hash = "sha256-Sg5et+yP6Z44wV/t9zqKLpg1C0cq6rV+3WrzAH4Za3U=";
+    })
+  ];
+
   cargoSha256 = "sha256-s3seKVEhXyOVlt3a8cubzRWoB4SVQpdCmq12y0FpDUw=";
 
   buildInputs = [
@@ -57,7 +66,8 @@ rustPlatform.buildRustPackage rec {
         libXi
         libXcursor
       ];
-    in ''
+    in
+    ''
       patchelf --set-rpath "${libPath}" "$out/bin/airshipper"
     '';