nixpkgs/pkgs/tools/misc/cope/default.nix

29 lines
865 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, perl, perlPackages }:
2021-08-31 15:47:17 +00:00
perlPackages.buildPerlPackage rec {
pname = "cope";
2021-09-02 18:31:27 +00:00
version = "unstable-2015-01-29";
2021-08-31 15:47:17 +00:00
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 ];
2023-07-23 17:30:22 +00:00
maintainers = with maintainers; [ ];
2021-08-31 15:47:17 +00:00
};
}