summary refs log tree commit diff
path: root/pkgs/misc/emulators/darcnes
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@gmail.com>2017-09-27 15:06:34 +0000
committerYegor Timoshenko <yegortimoshenko@gmail.com>2017-09-30 23:50:51 +0000
commitc93c7752e9a4cf3b90f1c9e0692973ee131b0d6d (patch)
treee0e39239b84f79180761fa37f767ed669efe02ab /pkgs/misc/emulators/darcnes
parent37464fd42a2eb87ac106e38f18a921a481dd9a41 (diff)
downloadnixpkgs-c93c7752e9a4cf3b90f1c9e0692973ee131b0d6d.tar
nixpkgs-c93c7752e9a4cf3b90f1c9e0692973ee131b0d6d.tar.gz
nixpkgs-c93c7752e9a4cf3b90f1c9e0692973ee131b0d6d.tar.bz2
nixpkgs-c93c7752e9a4cf3b90f1c9e0692973ee131b0d6d.tar.lz
nixpkgs-c93c7752e9a4cf3b90f1c9e0692973ee131b0d6d.tar.xz
nixpkgs-c93c7752e9a4cf3b90f1c9e0692973ee131b0d6d.tar.zst
nixpkgs-c93c7752e9a4cf3b90f1c9e0692973ee131b0d6d.zip
darcnes: use web.archive.org links, clean up
Diffstat (limited to 'pkgs/misc/emulators/darcnes')
-rw-r--r--pkgs/misc/emulators/darcnes/default.nix28
1 files changed, 12 insertions, 16 deletions
diff --git a/pkgs/misc/emulators/darcnes/default.nix b/pkgs/misc/emulators/darcnes/default.nix
index 12c76c89790..70e7351e295 100644
--- a/pkgs/misc/emulators/darcnes/default.nix
+++ b/pkgs/misc/emulators/darcnes/default.nix
@@ -1,28 +1,24 @@
-{stdenv, fetchurl, libX11, libXt, libXext, libXaw }:
+{ stdenv, fetchurl, libX11, libXt, libXext, libXaw }:
 
-assert stdenv.system == "i686-linux";
+stdenv.mkDerivation rec {
+  name = "darcnes-${version}";
+  version = "9b0401";
 
-stdenv.mkDerivation {
-  name = "darcnes-9b0401";
   src = fetchurl {
-    url = http://www.dridus.com/~nyef/darcnes/download/dn9b0401.tgz;
+    url = "https://web.archive.org/web/20130511081532/http://www.dridus.com/~nyef/darcnes/download/dn${version}.tgz";
     sha256 = "05a7mh51rg7ydb414m3p5mm05p4nz2bgvspqzwm3bhbj7zz543k3";
   };
 
-  buildInputs = [ libX11 libXt libXext libXaw ];
-
-  installPhase = ''
-    mkdir -p $out/bin
-    cp darcnes $out/bin
-  '';
-
   patches = [ ./label.patch ];
 
+  buildInputs = [ libX11 libXt libXext libXaw ];
+  installPhase = "install -Dt $out/bin darcnes";
+
   meta = {
-    homepage = http://www.dridus.com/~nyef/darcnes/;
-    description = "Multi-System emulator, specially for NES";
-    /* Prohibited commercial use, credit required. */
+    homepage = https://web.archive.org/web/20130502171725/http://www.dridus.com/~nyef/darcnes/;
+    description = "Sega Master System, Game Gear, SG-1000, NES, ColecoVision and Apple II emulator";
+    # Prohibited commercial use, credit required.
     license = stdenv.lib.licenses.free;
+    platforms = [ "i686-linux" ];
   };
-
 }