mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
cmatrix: refactor and adopt
This commit is contained in:
parent
44180b344d
commit
c8847c9f65
1 changed files with 13 additions and 7 deletions
|
@ -4,32 +4,38 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
autoreconfHook,
|
autoreconfHook,
|
||||||
ncurses,
|
ncurses,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "cmatrix";
|
pname = "cmatrix";
|
||||||
version = "2.0";
|
version = "2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "abishekvashok";
|
owner = "abishekvashok";
|
||||||
repo = "cmatrix";
|
repo = "cmatrix";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
sha256 = "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm";
|
hash = "sha256-dWlVWSRIE1fPa6R2N3ONL9QJlDQEqxfdYIgWTSr5MsE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
meta = with lib; {
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
versionCheckProgramArg = "-V";
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Simulates the falling characters theme from The Matrix movie";
|
description = "Simulates the falling characters theme from The Matrix movie";
|
||||||
license = licenses.gpl3;
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
CMatrix simulates the display from "The Matrix" and is based
|
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 = "https://github.com/abishekvashok/cmatrix";
|
homepage = "https://github.com/abishekvashok/cmatrix";
|
||||||
|
changelog = "https://github.com/abishekvashok/cmatrix/releases/tag/v${finalAttrs.version}";
|
||||||
platforms = ncurses.meta.platforms;
|
platforms = ncurses.meta.platforms;
|
||||||
maintainers = [ ];
|
license = lib.licenses.gpl3Only;
|
||||||
|
maintainers = with lib.maintainers; [ Tert0 ];
|
||||||
mainProgram = "cmatrix";
|
mainProgram = "cmatrix";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue