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
38
pkgs/development/python-modules/xcffib/default.nix
Normal file
38
pkgs/development/python-modules/xcffib/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, xorg
|
||||
, cffi
|
||||
, nose
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.11.1";
|
||||
pname = "xcffib";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "12949cfe2e68c806efd57596bb9bf3c151f399d4b53e15d1101b2e9baaa66f5a";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
# Hardcode cairo library path
|
||||
sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ cffi six ];
|
||||
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
pythonImportsCheck = [ "xcffib" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A drop in replacement for xpyb, an XCB python binding";
|
||||
homepage = "https://github.com/tych0/xcffib";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ kamilchm ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue