From 0a8c01cfdf4fa663c57cb136b535bdf5deb55421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 31 Aug 2021 17:47:17 +0200 Subject: [PATCH] cope: init at unstable-2021-01-29 --- pkgs/tools/misc/cope/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/misc/cope/default.nix diff --git a/pkgs/tools/misc/cope/default.nix b/pkgs/tools/misc/cope/default.nix new file mode 100644 index 000000000000..326dc7923af4 --- /dev/null +++ b/pkgs/tools/misc/cope/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchFromGitHub, perl, perlPackages, makeWrapper, }: + +perlPackages.buildPerlPackage rec { + pname = "cope"; + version = "unstable-2021-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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 54b649f88638..e43c45832fab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -873,6 +873,8 @@ with pkgs; amidst = callPackage ../tools/games/minecraft/amidst { }; + cope = callPackage ../tools/misc/cope { }; + gamemode = callPackage ../tools/games/gamemode { libgamemode32 = pkgsi686Linux.gamemode.lib; };