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
32
pkgs/development/python-modules/distutils-cfg/default.nix
Normal file
32
pkgs/development/python-modules/distutils-cfg/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# global distutils configuration, see http://docs.python.org/2/install/index.html#distutils-configuration-files
|
||||
|
||||
{ stdenv, python, writeText, extraCfg ? "", overrideCfg ? "" }:
|
||||
|
||||
|
||||
let
|
||||
distutilsCfg = writeText "distutils.cfg" (
|
||||
if overrideCfg != "" then overrideCfg else ''
|
||||
[easy_install]
|
||||
|
||||
# don't allow network connections during build to ensure purity
|
||||
allow-hosts = None
|
||||
|
||||
# make sure we always unzip installed packages otherwise setup hooks won't work
|
||||
zip_ok = 0
|
||||
|
||||
${extraCfg}
|
||||
'');
|
||||
in stdenv.mkDerivation {
|
||||
name = "${python.libPrefix}-distutils.cfg";
|
||||
|
||||
buildInputs = [ python ];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
dest="$out/lib/${python.libPrefix}/site-packages/distutils"
|
||||
mkdir -p $dest
|
||||
ln -s ${python}/lib/${python.libPrefix}/distutils/* $dest
|
||||
ln -s ${distutilsCfg} $dest/distutils.cfg
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue