mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
sieve-connect: Init at 0.89
This commit is contained in:
parent
c836833c01
commit
6d2ab18915
48
pkgs/applications/networking/sieve-connect/default.nix
Normal file
48
pkgs/applications/networking/sieve-connect/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ stdenv, fetchFromGitHub, makeWrapper, perl, perlPackages }: stdenv.mkDerivation rec {
|
||||
name = "sieve-connect-${version}";
|
||||
version = "0.89";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "philpennock";
|
||||
repo = "sieve-connect";
|
||||
rev = "v${version}";
|
||||
sha256 = "0g7cv29wd5673inl4c87xb802k86bj6gcwh131xrbbg0a0g1c8fp";
|
||||
};
|
||||
|
||||
buildInputs = [ perl ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preBuild = ''
|
||||
# Fixes failing build when not building in git repo
|
||||
mkdir .git
|
||||
touch .git/HEAD
|
||||
echo "${version}" > versionfile
|
||||
echo "$(date +%Y-%m-%d)" > datefile
|
||||
'';
|
||||
|
||||
buildFlags = [ "PERL5LIB=${stdenv.lib.makePerlPath [ perlPackages.FileSlurp ]}" "bin" "man" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/man/man1
|
||||
install -m 755 sieve-connect $out/bin
|
||||
gzip -c sieve-connect.1 > $out/share/man/man1/sieve-connect.1.gz
|
||||
|
||||
wrapProgram $out/bin/sieve-connect \
|
||||
--prefix PERL5LIB : "${stdenv.lib.makePerlPath (with perlPackages; [
|
||||
AuthenSASL Socket6 IOSocketInet6 IOSocketSSL NetSSLeay NetDNS PodUsage
|
||||
TermReadKey TermReadLineGnu ])}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A client for the MANAGESIEVE Protocol";
|
||||
longDescription = ''
|
||||
This is sieve-connect. A client for the ManageSieve protocol,
|
||||
as specifed in RFC 5804. Historically, this was MANAGESIEVE as
|
||||
implemented by timsieved in Cyrus IMAP.
|
||||
'';
|
||||
homepage = https://github.com/philpennock/sieve-connect;
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ das_j ];
|
||||
};
|
||||
}
|
|
@ -5065,6 +5065,8 @@ with pkgs;
|
|||
|
||||
siege = callPackage ../tools/networking/siege {};
|
||||
|
||||
sieve-connect = callPackage ../applications/networking/sieve-connect {};
|
||||
|
||||
sigal = callPackage ../applications/misc/sigal {
|
||||
inherit (pythonPackages) buildPythonApplication fetchPypi;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue