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
44
pkgs/applications/misc/yate/default.nix
Normal file
44
pkgs/applications/misc/yate/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ stdenv, fetchurl, lib, qt4, openssl, pkg-config }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yate";
|
||||
version = "6.4.0-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://voip.null.ro/tarballs/yate${lib.versions.major version}/${pname}-${version}.tar.gz";
|
||||
hash = "sha256-jCPca/+/jUeNs6hZZLUBl3HI9sms9SIPNGVRanSKA7A=";
|
||||
};
|
||||
|
||||
# TODO zaptel ? postgres ?
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ qt4 openssl ];
|
||||
|
||||
# /dev/null is used when linking which is a impure path for the wrapper
|
||||
postPatch =
|
||||
''
|
||||
patchShebangs configure
|
||||
substituteInPlace configure --replace ",/dev/null" ""
|
||||
'';
|
||||
|
||||
enableParallelBuilding = false; # fails to build if true
|
||||
|
||||
# --unresolved-symbols=ignore-in-shared-libs makes ld no longer find --library=yate? Why?
|
||||
preBuild =
|
||||
''
|
||||
export NIX_LDFLAGS="-L$TMP/yate $NIX_LDFLAGS"
|
||||
find . -type f -iname Makefile | xargs sed -i \
|
||||
-e 's@-Wl,--unresolved-symbols=ignore-in-shared-libs@@' \
|
||||
-e 's@-Wl,--retain-symbols-file@@'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Yet another telephony engine";
|
||||
homepage = "http://yate.null.ro/";
|
||||
# Yate's license is GPL with an exception for linking with
|
||||
# OpenH323 and PWlib (licensed under MPL).
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = [ lib.maintainers.marcweber ];
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue