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
52
pkgs/servers/amqp/qpid-cpp/default.nix
Normal file
52
pkgs/servers/amqp/qpid-cpp/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv
|
||||
, fetchpatch
|
||||
, fetchurl
|
||||
, boost
|
||||
, cmake
|
||||
, libuuid
|
||||
, python3
|
||||
, ruby
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "qpid-cpp";
|
||||
version = "1.39.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/qpid/cpp/${version}/${pname}-${version}.tar.gz";
|
||||
hash = "sha256-eYDQ6iHVV1WUFFdyHGnbqGIjE9CrhHzh0jP7amjoDSE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake python3 ];
|
||||
buildInputs = [ boost libuuid ruby ];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "python3-managementgen";
|
||||
url = "https://github.com/apache/qpid-cpp/commit/0e558866e90ef3d5becbd2f6d5630a6a6dc43a5d.patch";
|
||||
hash = "sha256-pV6xx8Nrys/ZxIO0Z/fARH0ELqcSdTXLPsVXYUd3f70=";
|
||||
})
|
||||
];
|
||||
|
||||
# the subdir managementgen wants to install python stuff in ${python} and
|
||||
# the installation tries to create some folders in /var
|
||||
postPatch = ''
|
||||
sed -i '/managementgen/d' CMakeLists.txt
|
||||
sed -i '/ENV/d' src/CMakeLists.txt
|
||||
sed -i '/management/d' CMakeLists.txt
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = toString ([
|
||||
"-Wno-error=maybe-uninitialized"
|
||||
] ++ lib.optionals stdenv.cc.isGNU [
|
||||
"-Wno-error=deprecated-copy"
|
||||
]);
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://qpid.apache.org";
|
||||
description = "An AMQP message broker and a C++ messaging API";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ cpages ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue