Merge pull request #136306 from SuperSandro2000/cope

cope: init at unstable-2021-01-29
This commit is contained in:
Sandro 2021-09-02 20:56:51 +02:00 committed by GitHub
commit 265795962c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ lib, fetchFromGitHub, perl, perlPackages, makeWrapper, }:
perlPackages.buildPerlPackage rec {
pname = "cope";
version = "unstable-2015-01-29";
src = fetchFromGitHub {
owner = "lotrfan";
repo = pname;
rev = "0dc82a939a9498ff80caf472841c279dfe03efae";
sha256 = "sha256-Tkv26M6YnaUB0nudjKGG482fvUkCobPk0VF1manBCoY=";
};
buildInputs = with perlPackages; [ EnvPath FileShareDir IOPty IOStty ListMoreUtils RegexpCommon RegexpIPv6 ];
postInstall = ''
mkdir -p $out/bin
mv $out/lib/perl5/site_perl/${perl.version}/auto/share/dist/Cope/* $out/bin/
rm -r $out/lib/perl5/site_perl/${perl.version}/auto
'';
meta = with lib; {
description = "A colourful wrapper for terminal programs";
homepage = "https://github.com/lotrfan/cope";
license = with licenses; [ artistic1 gpl1Plus ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -877,6 +877,8 @@ with pkgs;
amidst = callPackage ../tools/games/minecraft/amidst { };
cope = callPackage ../tools/misc/cope { };
gamemode = callPackage ../tools/games/gamemode {
libgamemode32 = pkgsi686Linux.gamemode.lib;
};

View File

@ -10643,6 +10643,23 @@ let
propagatedBuildInputs = [ pkgs.more FileWhich TermReadKey ]; # `more` used in tests
};
IOPty = buildPerlModule {
pname = "IO-Pty";
version = "1.16";
src = fetchurl {
url = "mirror://cpan/authors/id/T/TO/TODDR/IO-Tty-1.16.tar.gz";
sha256 = "sha256-jxoJwHBzitxpXfkD8uf3QwjdjZkbkUwLw5Cg5gISlN0=";
};
buildPhase = "make";
checkPhase = "make test";
installPhase = "make install";
meta = {
homepage = "https://github.com/toddr/IO-Tty";
description = "Pseudo TTY object class";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
IOPrompt = buildPerlModule {
pname = "IO-Prompt";
version = "0.997004";
@ -10735,6 +10752,23 @@ let
};
};
IOStty = buildPerlModule {
pname = "IO-Stty";
version = "0.04";
src = fetchurl {
url = "mirror://cpan/authors/id/T/TO/TODDR/IO-Stty-0.04.tar.gz";
sha256 = "sha256-XJUJ8ahpPYKH+gE97wv4eqZM2ScThGHvjetVUDxmUcI=";
};
buildPhase = "make";
checkPhase = "make test";
installPhase = "make install";
meta = {
homepage = "http://wiki.github.com/toddr/IO-Stty";
description = "Change and print terminal line settings";
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
};
IOTee = buildPerlPackage {
pname = "IO-Tee";
version = "0.66";