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
30
pkgs/development/python-modules/tkinter/default.nix
Normal file
30
pkgs/development/python-modules/tkinter/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, py
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "tkinter";
|
||||
version = python.version;
|
||||
src = py;
|
||||
format = "other";
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
installPhase = ''
|
||||
# Move the tkinter module
|
||||
mkdir -p $out/${py.sitePackages}
|
||||
mv lib/${py.libPrefix}/lib-dynload/_tkinter* $out/${py.sitePackages}/
|
||||
'' + lib.optionalString (!stdenv.isDarwin) ''
|
||||
# Update the rpath to point to python without x11Support
|
||||
old_rpath=$(patchelf --print-rpath $out/${py.sitePackages}/_tkinter*)
|
||||
new_rpath=$(sed "s#${py}#${python}#g" <<< "$old_rpath" )
|
||||
patchelf --set-rpath $new_rpath $out/${py.sitePackages}/_tkinter*
|
||||
'';
|
||||
|
||||
meta = py.meta;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue