@@ -1,28 +1,24 @@
1−{stdenv, fetchurl, libX11, libXt, libXext, libXaw }:
1+{ stdenv, fetchurl, libX11, libXt, libXext, libXaw }:
22
3−assert stdenv.system == "i686-linux";
3+stdenv.mkDerivation rec {
4+ name = "darcnes-${version}";
5+ version = "9b0401";
46
5−stdenv.mkDerivation {
6− name = "darcnes-9b0401";
77 src = fetchurl {
8− url = http://www.dridus.com/~nyef/darcnes/download/dn9b0401.tgz;
8+ url = "https://web.archive.org/web/20130511081532/http://www.dridus.com/~nyef/darcnes/download/dn${version}.tgz";
99 sha256 = "05a7mh51rg7ydb414m3p5mm05p4nz2bgvspqzwm3bhbj7zz543k3";
1010 };
1111
12− buildInputs = [ libX11 libXt libXext libXaw ];
13−
14− installPhase = ''
15− mkdir -p $out/bin
16− cp darcnes $out/bin
17− '';
18−
1912 patches = [ ./label.patch ];
2013
14+ buildInputs = [ libX11 libXt libXext libXaw ];
15+ installPhase = "install -Dt $out/bin darcnes";
16+
2117 meta = {
22− homepage = http://www.dridus.com/~nyef/darcnes/;
23− description = "Multi-System emulator, specially for NES";
24− /* Prohibited commercial use, credit required. */
18+ homepage = https://web.archive.org/web/20130502171725/http://www.dridus.com/~nyef/darcnes/;
19+ description = "Sega Master System, Game Gear, SG-1000, NES, ColecoVision and Apple II emulator";
20+ # Prohibited commercial use, credit required.
2521 license = stdenv.lib.licenses.free;
22+ platforms = [ "i686-linux" ];
2623 };
27−
2824}