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
42
pkgs/development/python-modules/xapian/default.nix
Normal file
42
pkgs/development/python-modules/xapian/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, buildPythonPackage, fetchurl, python
|
||||
, sphinx
|
||||
, xapian
|
||||
}:
|
||||
|
||||
let
|
||||
pythonSuffix = lib.optionalString python.isPy3k "3";
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "xapian";
|
||||
inherit (xapian) version;
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://oligarchy.co.uk/xapian/${version}/xapian-bindings-${version}.tar.xz";
|
||||
sha256 = "0j9awiiw9zf97r60m848absq43k37gghpyw7acxqjazfzd71fxvm";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
"--with-python${pythonSuffix}"
|
||||
"PYTHON${pythonSuffix}_LIB=${placeholder "out"}/${python.sitePackages}"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
export XAPIAN_CONFIG=${xapian}/bin/xapian-config
|
||||
'';
|
||||
|
||||
buildInputs = [ sphinx xapian ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} python${pythonSuffix}/pythontest.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Bindings for Xapian";
|
||||
homepage = "https://xapian.org/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue