diff --git a/pkgs/applications/misc/cmatrix/default.nix b/pkgs/applications/misc/cmatrix/default.nix index 28f14cc1435..9a008a886fa 100644 --- a/pkgs/applications/misc/cmatrix/default.nix +++ b/pkgs/applications/misc/cmatrix/default.nix @@ -1,25 +1,24 @@ -{ stdenv, fetchurl, pkgconfig, ncurses }: +{ stdenv, fetchFromGitHub, autoreconfHook, ncurses }: -let - version = "1.2a"; -in with stdenv.lib; stdenv.mkDerivation rec { + pname = "cmatrix"; + version = "2.0"; - name = "cmatrix-${version}"; - - src = fetchurl{ - url = "http://www.asty.org/cmatrix/dist/${name}.tar.gz"; - sha256 = "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"; + src = fetchFromGitHub { + owner = "abishekvashok"; + repo = "cmatrix"; + rev = "v${version}"; + sha256 = "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"; }; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ ncurses ]; - meta = { + meta = with stdenv.lib; { description = "Simulates the falling characters theme from The Matrix movie"; longDescription = '' CMatrix simulates the display from "The Matrix" and is based - on the screensaver from the movie's website. + on the screensaver from the movie's website. ''; homepage = http://www.asty.org/cmatrix/; platforms = ncurses.meta.platforms;