about summary refs log tree commit diff
path: root/pkgs/games/torus-trooper
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2024-02-19 16:42:09 +0100
committerFrancesco Gazzetta <fgaz@fgaz.me>2024-03-05 09:50:17 +0100
commit57489ed071d7cd45deb9e832c83863612f2e141e (patch)
treebe4e95521cb2559943b0d2c84b1eca9fc84615a9 /pkgs/games/torus-trooper
parent0d502d2c17419c45e722dce3dbd065f6f65a0e66 (diff)
torus-trooper: use finalAttrs pattern
Diffstat (limited to 'pkgs/games/torus-trooper')
-rw-r--r--pkgs/games/torus-trooper/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/games/torus-trooper/default.nix b/pkgs/games/torus-trooper/default.nix
index 645abc76c8075..6e39aac63ff62 100644
--- a/pkgs/games/torus-trooper/default.nix
+++ b/pkgs/games/torus-trooper/default.nix
@@ -16,12 +16,12 @@ debianPatch = patchname: hash: fetchpatch {
   sha256 = hash;
 };
 
-in stdenv.mkDerivation rec {
+in stdenv.mkDerivation (finalAttrs: {
   pname = "torus-trooper";
   version = "0.22";
 
   src = fetchurl {
-    url = "http://abagames.sakura.ne.jp/windows/tt${lib.replaceStrings ["."] ["_"] version}.zip";
+    url = "http://abagames.sakura.ne.jp/windows/tt${lib.replaceStrings ["."] ["_"] finalAttrs.version}.zip";
     sha256 = "1yhki1fdp3fi4y2iq12vca69f6k38dqjaw9z4lwcxky5kbgb7jvg";
   };
 
@@ -101,4 +101,4 @@ in stdenv.mkDerivation rec {
     maintainers = with maintainers; [ fgaz ];
     platforms = platforms.all;
   };
-}
+})