mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
pfixtools: init at 0.9
This commit is contained in:
parent
eeb3600e55
commit
92dc00d0fd
48
pkgs/servers/mail/postfix/pfixtools.nix
Normal file
48
pkgs/servers/mail/postfix/pfixtools.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ stdenv, lib, fetchFromGitHub, git, gperf, pcre, unbound, libev, tokyocabinet, pkgconfig, bash, libsrs2 }:
|
||||
|
||||
let
|
||||
version = "0.9";
|
||||
|
||||
pfixtoolsSrc = fetchFromGitHub {
|
||||
owner = "Fruneau";
|
||||
repo = "pfixtools";
|
||||
rev = "pfixtools-${version}";
|
||||
sha256 = "1vmbrw686f41n6xfjphfshn96vl07ynvnsyjdw9yfn9bfnldcjcq";
|
||||
};
|
||||
|
||||
srcRoot = "pfixtools-${pfixtoolsSrc.rev}-src";
|
||||
|
||||
libCommonSrc = fetchFromGitHub {
|
||||
owner = "Fruneau";
|
||||
repo = "libcommon";
|
||||
rev = "b07e6bdea3d24748e0d39783d7d817096d10cc67";
|
||||
sha256 = "14fxldp29j4vmfmhfgwwi37pj8cz0flm1aykkxlbgakz92d4pm35";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pfixtools-${version}";
|
||||
|
||||
src = pfixtoolsSrc;
|
||||
|
||||
buildInputs = [git gperf pcre unbound libev tokyocabinet pkgconfig bash libsrs2];
|
||||
|
||||
postUnpack = ''
|
||||
cp -Rp ${libCommonSrc}/* ${srcRoot}/common;
|
||||
chmod -R +w ${srcRoot}/common;
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace postlicyd/policy_tokens.sh \
|
||||
--replace /bin/bash ${bash}/bin/bash;
|
||||
'';
|
||||
|
||||
makeFlags = "DESTDIR=$(out) prefix=";
|
||||
|
||||
meta = {
|
||||
description = "a collection of postfix-related tools";
|
||||
license = with lib.licenses; [ bsd3 ];
|
||||
homepage = https://github.com/Fruneau/pfixtools;
|
||||
};
|
||||
}
|
@ -9455,6 +9455,8 @@ let
|
||||
|
||||
rspamd = callPackage ../servers/mail/rspamd { };
|
||||
|
||||
pfixtools = callPackage ../servers/mail/postfix/pfixtools.nix { };
|
||||
|
||||
pshs = callPackage ../servers/http/pshs { };
|
||||
|
||||
libpulseaudio = callPackage ../servers/pulseaudio { libOnly = true; };
|
||||
|
Loading…
Reference in New Issue
Block a user