2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-07-14 15:10:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-11-09 16:42:23 +00:00
|
|
|
pname = "cp437";
|
2021-07-14 15:10:11 +00:00
|
|
|
version = "0.6";
|
2020-11-09 16:42:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keaston";
|
|
|
|
repo = "cp437";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "18f4mnfnyviqclbhmbhix80k823481ypkwbp26qfvhnxdgzbggcc";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 cp437 -t $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-09 16:42:23 +00:00
|
|
|
description = ''
|
|
|
|
Emulates an old-style "code page 437" / "IBM-PC" character
|
|
|
|
set terminal on a modern UTF-8 terminal emulator
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/keaston/cp437";
|
|
|
|
license = licenses.bsd3;
|
2020-11-10 12:51:00 +00:00
|
|
|
maintainers = with maintainers; [ jb55 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "cp437";
|
2020-11-09 16:42:23 +00:00
|
|
|
};
|
|
|
|
}
|