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
36
pkgs/tools/compression/advancecomp/default.nix
Normal file
36
pkgs/tools/compression/advancecomp/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "advancecomp";
|
||||
version = "2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "amadvance";
|
||||
repo = "advancecomp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-klyTqqZs5TwadgDP8LJ1wUhXlO+/kQPM6qhiSki31Q8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ zlib ];
|
||||
|
||||
# autover.sh relies on 'git describe', which obviously doesn't work as we're not cloning
|
||||
# the full git repo. so we have to put the version number in `.version`, otherwise
|
||||
# the binaries get built reporting "none" as their version number.
|
||||
postPatch = ''
|
||||
echo "${version}" >.version
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A set of tools to optimize deflate-compressed files";
|
||||
license = licenses.gpl3 ;
|
||||
maintainers = [ maintainers.raskin ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
homepage = "https://github.com/amadvance/advancecomp";
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue