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