uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
56
pkgs/servers/mail/postfix/pfixtools.nix
Normal file
56
pkgs/servers/mail/postfix/pfixtools.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ stdenv, lib, fetchFromGitHub, git, gperf, pcre, unbound, libev, tokyocabinet, pkg-config, bash, libsrs2 }:
|
||||
|
||||
let
|
||||
version = "0.9";
|
||||
|
||||
pfixtoolsSrc = fetchFromGitHub {
|
||||
owner = "Fruneau";
|
||||
repo = "pfixtools";
|
||||
rev = "pfixtools-${version}";
|
||||
sha256 = "1vmbrw686f41n6xfjphfshn96vl07ynvnsyjdw9yfn9bfnldcjcq";
|
||||
};
|
||||
|
||||
srcRoot = pfixtoolsSrc.name;
|
||||
|
||||
libCommonSrc = fetchFromGitHub {
|
||||
owner = "Fruneau";
|
||||
repo = "libcommon";
|
||||
rev = "b07e6bdea3d24748e0d39783d7d817096d10cc67";
|
||||
sha256 = "14fxldp29j4vmfmhfgwwi37pj8cz0flm1aykkxlbgakz92d4pm35";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "pfixtools";
|
||||
inherit version;
|
||||
|
||||
src = pfixtoolsSrc;
|
||||
|
||||
patches = [ ./0001-Fix-build-with-unbound-1.6.1.patch ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [git gperf pcre unbound libev tokyocabinet 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;
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=nonnull-compare -Wno-error=format-truncation";
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)" "prefix=" ];
|
||||
|
||||
meta = {
|
||||
description = "A collection of postfix-related tools";
|
||||
license = with lib.licenses; [ bsd3 ];
|
||||
homepage = "https://github.com/Fruneau/pfixtools";
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ jerith666 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue