lol
1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "cp437";
5 version = "0.6";
6
7 src = fetchFromGitHub {
8 owner = "keaston";
9 repo = "cp437";
10 rev = "v${version}";
11 sha256 = "18f4mnfnyviqclbhmbhix80k823481ypkwbp26qfvhnxdgzbggcc";
12 };
13
14 installPhase = ''
15 install -Dm755 cp437 -t $out/bin
16 '';
17
18 meta = with lib; {
19 description = ''
20 Emulates an old-style "code page 437" / "IBM-PC" character
21 set terminal on a modern UTF-8 terminal emulator
22 '';
23 homepage = "https://github.com/keaston/cp437";
24 license = licenses.bsd3;
25 maintainers = with maintainers; [ jb55 ];
26 };
27}