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
26
pkgs/tools/compression/pbzx/default.nix
Normal file
26
pkgs/tools/compression/pbzx/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{stdenv, lib, fetchFromGitHub, xz, xar}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pbzx";
|
||||
version = "1.0.2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "NiklasRosenstein";
|
||||
repo = "pbzx";
|
||||
rev = "v${version}";
|
||||
sha256 = "0bwd7wmnhpz1n5p39mh6asfyccj4cm06hwigslcwbb3pdwmvxc90";
|
||||
};
|
||||
buildInputs = [ xz xar ];
|
||||
buildPhase = ''
|
||||
${stdenv.cc.targetPrefix}cc pbzx.c -llzma -lxar -o pbzx
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp pbzx $out/bin
|
||||
'';
|
||||
meta = with lib; {
|
||||
description = "Stream parser of Apple's pbzx compression format";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.matthewbauer ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue