diff options
author | Matt McHenry <github@matt.mchenryfamily.org> | 2015-12-09 22:07:23 -0500 |
---|---|---|
committer | Matt McHenry <github@matt.mchenryfamily.org> | 2016-02-06 12:58:13 -0500 |
commit | 92dc00d0fdbfafa58bb82e9ed8657de5dfed53a6 (patch) | |
tree | d3967855f1ec97e4a164ea99d283c67b2e75e642 /pkgs/servers/mail/postfix/pfixtools.nix | |
parent | eeb3600e55649f143291aafcf86538f43f517f4f (diff) |
pfixtools: init at 0.9
Diffstat (limited to 'pkgs/servers/mail/postfix/pfixtools.nix')
-rw-r--r-- | pkgs/servers/mail/postfix/pfixtools.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/servers/mail/postfix/pfixtools.nix b/pkgs/servers/mail/postfix/pfixtools.nix new file mode 100644 index 0000000000000..f45dd3b7248a3 --- /dev/null +++ b/pkgs/servers/mail/postfix/pfixtools.nix @@ -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; + }; +} \ No newline at end of file |