convos: init at 4.22

dependencies:
perlPackages.IRCUtils: init at 0.12
perlPackages.LinkEmbedder: init at 1.12
perlPackages.MojoliciousPluginWebpack: init at 0.12
perlPackages.ParseIRC: init at 1.22
perlPackages.TimePiece: init at 1.3401
perlPackages.UnicodeUTF8: init at 0.62
This commit is contained in:
Stig Palmquist 2020-06-05 14:49:44 +02:00
parent e755287ecd
commit 497ac5b423
No known key found for this signature in database
GPG Key ID: DA4C335C11D70DA7
3 changed files with 167 additions and 0 deletions

View File

@ -0,0 +1,71 @@
{ stdenv, fetchFromGitHub, perl, perlPackages, makeWrapper, shortenPerlShebang }:
with stdenv.lib;
perlPackages.buildPerlPackage rec {
pname = "convos";
version = "4.22";
src = fetchFromGitHub rec {
owner = "Nordaaker";
repo = pname;
rev = version;
sha256 = "0a5wq88ncbn7kwcw3z4wdl1wxmx5vq5a7crb1bvbvskgwwy8zfx8";
};
nativeBuildInputs = [ makeWrapper ]
++ optional stdenv.isDarwin [ shortenPerlShebang ];
buildInputs = with perlPackages; [
CryptEksblowfish FileHomeDir FileReadBackwards
IOSocketSSL IRCUtils JSONValidator LinkEmbedder ModuleInstall
Mojolicious MojoliciousPluginOpenAPI MojoliciousPluginWebpack
ParseIRC TextMarkdown TimePiece UnicodeUTF8
CpanelJSONXS EV
];
checkInputs = with perlPackages; [ TestDeep TestMore ];
postPatch = ''
patchShebangs script/convos
'';
# A test fails since gethostbyaddr(127.0.0.1) fails to resolve to localhost in
# the sandbox, we replace the this out from a substitution expression
#
# Module::Install is a runtime dependency not covered by the tests, so we add
# a test for it.
#
preCheck = ''
substituteInPlace t/web-register-open-to-public.t \
--replace '!127.0.0.1!' '!localhost!'
echo "use Test::More tests => 1;require_ok('Module::Install')" \
> t/00_nixpkgs_module_install.t
'';
# Convos expects to find assets in both auto/share/dist/Convos, and $MOJO_HOME
# which is set to $out
#
postInstall = ''
AUTO_SHARE_PATH=$out/${perl.libPrefix}/auto/share/dist/Convos
mkdir -p $AUTO_SHARE_PATH
cp -vR public assets $AUTO_SHARE_PATH/
ln -s $AUTO_SHARE_PATH/public/asset $out/asset
cp -vR templates $out/templates
cp cpanfile $out/cpanfile
'' + optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/convos
'' + ''
wrapProgram $out/bin/convos --set MOJO_HOME $out
'';
passthru.tests = nixosTests.convos;
meta = {
homepage = "https://convos.chat";
description = "Convos is the simplest way to use IRC in your browser";
license = stdenv.lib.licenses.artistic2;
maintainers = with maintainers; [ sgo ];
};
}

View File

@ -19156,6 +19156,8 @@ in
codeblocks = callPackage ../applications/editors/codeblocks { };
codeblocksFull = codeblocks.override { contribPlugins = true; };
convos = callPackage ../applications/networking/irc/convos { };
comical = callPackage ../applications/graphics/comical { };
containerd = callPackage ../applications/virtualization/containerd { };

View File

@ -9698,6 +9698,21 @@ let
};
};
IRCUtils = buildPerlPackage {
pname = "IRC-Utils";
version = "0.12";
src = fetchurl {
url = "mirror://cpan/authors/id/H/HI/HINRIK/IRC-Utils-0.12.tar.gz";
sha256 = "c7d6311eb6c79e983833c9e6b4e8d426d07a9874d20f4bc641b313b99c9bc8a0";
};
meta = {
homepage = "http://metacpan.org/release/IRC-Utils";
description = "Common utilities for IRC-related tasks";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
maintainers = with maintainers; [ sgo ];
};
};
# TODO: use CPAN version
ImageExifTool = buildPerlPackage {
pname = "Image-ExifTool";
@ -10302,6 +10317,23 @@ let
doCheck = false;
};
LinkEmbedder = buildPerlPackage {
pname = "LinkEmbedder";
version = "1.12";
src = fetchurl {
url = "mirror://cpan/authors/id/J/JH/JHTHORSEN/LinkEmbedder-1.12.tar.gz";
sha256 = "1fd25bd6047b45cdcb1ab71a3d3bb0b36c71ec844a8742dee0bb34f8587fbd08";
};
buildInputs = [ TestDeep ];
propagatedBuildInputs = [ Mojolicious ];
meta = {
homepage = "https://github.com/jhthorsen/linkembedder";
description = "Embed / expand oEmbed resources and other URL / links";
license = stdenv.lib.licenses.artistic2;
maintainers = with maintainers; [ sgo ];
};
};
LinuxACL = buildPerlPackage {
pname = "Linux-ACL";
version = "0.05";
@ -12362,6 +12394,22 @@ let
};
};
MojoliciousPluginWebpack = buildPerlPackage {
pname = "Mojolicious-Plugin-Webpack";
version = "0.12";
src = fetchurl {
url = "mirror://cpan/authors/id/J/JH/JHTHORSEN/Mojolicious-Plugin-Webpack-0.12.tar.gz";
sha256 = "2a0856e68446fc22b46692d9a6737f78467654f31e58ad1935e708bddf806d2c";
};
propagatedBuildInputs = [ Mojolicious ];
meta = {
homepage = "https://github.com/jhthorsen/mojolicious-plugin-webpack";
description = "Mojolicious <3 Webpack";
license = stdenv.lib.licenses.artistic2;
maintainers = with maintainers; [ sgo ];
};
};
MojoRedis = buildPerlPackage {
pname = "Mojo-Redis";
version = "3.24";
@ -14718,6 +14766,21 @@ let
};
};
ParseIRC = buildPerlPackage {
pname = "Parse-IRC";
version = "1.22";
src = fetchurl {
url = "mirror://cpan/authors/id/B/BI/BINGOS/Parse-IRC-1.22.tar.gz";
sha256 = "457b09897f37d38a7054f9563247365427fe24101622ed4c7f054723a45b58d5";
};
meta = {
homepage = "https://github.com/bingos/parse-irc";
description = "A parser for the IRC protocol";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
maintainers = with maintainers; [ sgo ];
};
};
ParseLocalDistribution = buildPerlPackage {
pname = "Parse-LocalDistribution";
version = "0.19";
@ -20374,6 +20437,21 @@ let
};
};
TimePiece = buildPerlPackage {
pname = "Time-Piece";
version = "1.3401";
src = fetchurl {
url = "mirror://cpan/authors/id/E/ES/ESAYM/Time-Piece-1.3401.tar.gz";
sha256 = "4b55b7bb0eab45cf239a54dfead277dfa06121a43e63b3fce0853aecfdb04c27";
};
meta = {
description = "Object Oriented time objects";
homepage = "https://metacpan.org/release/Time-Piece";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
maintainers = with maintainers; [ sgo ];
};
};
Tirex = buildPerlPackage rec {
pname = "Tirex";
version = "0.6.1";
@ -20635,6 +20713,22 @@ let
};
};
UnicodeUTF8 = buildPerlPackage {
pname = "Unicode-UTF8";
version = "0.62";
src = fetchurl {
url = "mirror://cpan/authors/id/C/CH/CHANSEN/Unicode-UTF8-0.62.tar.gz";
sha256 = "fa8722d0b74696e332fddd442994436ea93d3bfc7982d4babdcedfddd657d0f6";
};
buildInputs = [ TestFatal ];
meta = {
homepage = "https://github.com/chansen/p5-unicode-utf8";
description = "Encoding and decoding of UTF-8 encoding form";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
maintainers = with maintainers; [ sgo ];
};
};
UnixGetrusage = buildPerlPackage {
pname = "Unix-Getrusage";
version = "0.03";