-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
/
default.nix
53 lines (43 loc) · 1.29 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, stdenv
, coreutils
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "pokemon-colorscripts-mac";
version = "stable-2021-08-10";
src = fetchFromGitHub {
owner = "nuke-dash";
repo = "${pname}";
rev = "6aa0cd93b255bee35c5716652b8b7dfecb5fcfa2";
sha256 = "06b86qy2fpzdd81n2mscc2njkrxx0dyzxpgnm1xk6ldn17c853lc";
};
buildInputs = [ coreutils ];
preBuild = ''
patchShebangs ./install.sh
# Fix hardcoded prefixed coreutils
substituteInPlace pokemon-colorscripts.sh --replace greadlink readlink
substituteInPlace pokemon-colorscripts.sh --replace gshuf shuf
substituteInPlace install.sh --replace /usr/local $out
'';
installPhase = ''
runHook preInstall
mkdir -p $out/opt
mkdir -p $out/bin
./install.sh
runHook postInstall
'';
meta = with lib; {
description = "Pokémon colorscripts for the terminal, compatible for mac";
longDescription = ''
Show colored sprites of pokémons in your terminal.
Contains almost 900 pokemon from gen 1 to gen 8.
Inspired by DT's colorscripts.
'';
homepage = "https://github.com/nuke-dash/pokemon-colorscripts-mac";
license = licenses.mit;
maintainers = [ maintainers.wesleyjrz ];
platforms = platforms.unix;
mainProgram = "pokemon-colorscripts";
};
}