summary refs log tree commit diff
path: root/pkgs/games/rogue/default.nix
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2021-06-22 23:44:58 +0200
committerFelix Buehler <account@buehler.rocks>2021-06-25 01:28:10 +0200
commitce3b463c7900a354775a35f8b75dbd2cd1ca2e7d (patch)
tree3c3d6efc864eaf1543b494bbf8d9c2bfda934151 /pkgs/games/rogue/default.nix
parentd26902aef932e80eb772026433af13ce662e7872 (diff)
downloadnixpkgs-ce3b463c7900a354775a35f8b75dbd2cd1ca2e7d.tar
nixpkgs-ce3b463c7900a354775a35f8b75dbd2cd1ca2e7d.tar.gz
nixpkgs-ce3b463c7900a354775a35f8b75dbd2cd1ca2e7d.tar.bz2
nixpkgs-ce3b463c7900a354775a35f8b75dbd2cd1ca2e7d.tar.lz
nixpkgs-ce3b463c7900a354775a35f8b75dbd2cd1ca2e7d.tar.xz
nixpkgs-ce3b463c7900a354775a35f8b75dbd2cd1ca2e7d.tar.zst
nixpkgs-ce3b463c7900a354775a35f8b75dbd2cd1ca2e7d.zip
games: /s/name/pname&version/
Diffstat (limited to 'pkgs/games/rogue/default.nix')
-rw-r--r--pkgs/games/rogue/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/games/rogue/default.nix b/pkgs/games/rogue/default.nix
index 1e215c813b5..127d65ff362 100644
--- a/pkgs/games/rogue/default.nix
+++ b/pkgs/games/rogue/default.nix
@@ -1,13 +1,14 @@
 {lib, stdenv, fetchurl, ncurses}:
 
-stdenv.mkDerivation {
-  name = "rogue-5.4.4";
+stdenv.mkDerivation rec {
+  pname = "rogue";
+  version = "5.4.4";
 
   src = fetchurl {
     urls = [
-      "https://src.fedoraproject.org/repo/pkgs/rogue/rogue5.4.4-src.tar.gz/033288f46444b06814c81ea69d96e075/rogue5.4.4-src.tar.gz"
-      "http://ftp.vim.org/ftp/pub/ftp/os/Linux/distr/slitaz/sources/packages-cooking/r/rogue5.4.4-src.tar.gz"
-      "http://rogue.rogueforge.net/files/rogue5.4/rogue5.4.4-src.tar.gz"
+      "https://src.fedoraproject.org/repo/pkgs/rogue/rogue${version}-src.tar.gz/033288f46444b06814c81ea69d96e075/rogue${version}-src.tar.gz"
+      "http://ftp.vim.org/ftp/pub/ftp/os/Linux/distr/slitaz/sources/packages-cooking/r/rogue${version}-src.tar.gz"
+      "http://rogue.rogueforge.net/files/rogue${lib.versions.majorMinor version}/rogue${version}-src.tar.gz"
     ];
     sha256 = "18g81274d0f7sr04p7h7irz0d53j6kd9j1y3zbka1gcqq0gscdvx";
   };