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
35
pkgs/tools/networking/s4cmd/default.nix
Normal file
35
pkgs/tools/networking/s4cmd/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "s4cmd";
|
||||
version = "2.1.0";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0d4mx98i3qhvlmr9x898mjvf827smzx6x5ji6daiwgjdlxc60mj2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ boto3 pytz ];
|
||||
|
||||
# The upstream package tries to install some bash shell completion scripts in /etc.
|
||||
# Setuptools is bugged and doesn't handle --prefix properly: https://github.com/pypa/setuptools/issues/130
|
||||
patchPhase = ''
|
||||
sed -i '/ data_files=/d' setup.py
|
||||
sed -i 's|os.chmod("/etc.*|pass|' setup.py
|
||||
'';
|
||||
|
||||
# Replace upstream's s4cmd wrapper script with the built-in Nix wrapper
|
||||
postInstall = ''
|
||||
ln -fs $out/bin/s4cmd.py $out/bin/s4cmd
|
||||
'';
|
||||
|
||||
# Test suite requires an S3 bucket
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/bloomreach/s4cmd";
|
||||
description = "Super S3 command line tool";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.bhipple ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue