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/development/python-modules/sip/4.x.nix
Normal file
44
pkgs/development/python-modules/sip/4.x.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, fetchurl, buildPythonPackage, python, isPyPy, sip-module ? "sip" }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = sip-module;
|
||||
version = "4.19.25";
|
||||
format = "other";
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz";
|
||||
sha256 = "04a23cgsnx150xq86w1z44b6vr2zyazysy9mqax0fy346zlr77dk";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
${python.executable} ./configure.py \
|
||||
--sip-module ${sip-module} \
|
||||
-d $out/${python.sitePackages} \
|
||||
-b $out/bin -e $out/include
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installCheckPhase = let
|
||||
modules = [
|
||||
sip-module
|
||||
"sipconfig"
|
||||
];
|
||||
imports = lib.concatMapStrings (module: "import ${module};") modules;
|
||||
in ''
|
||||
echo "Checking whether modules can be imported..."
|
||||
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH ${python.interpreter} -c "${imports}"
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Creates C++ bindings for Python modules";
|
||||
homepage = "https://riverbankcomputing.com/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ lovek323 sander ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue