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
58
pkgs/tools/text/ucg/default.nix
Normal file
58
pkgs/tools/text/ucg/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, autoreconfHook
|
||||
, pcre
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ucg";
|
||||
version = "0.3.3+date=2019-02-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gvansickle";
|
||||
repo = pname;
|
||||
rev = "c3a67632f1e3f332bfb102f0db167f34a2e42da7";
|
||||
sha256 = "sha256-/wU1PmI4ejlv7gZzZNasgROYXFiDiIxE9BFoCo6+G5Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pcre
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
testFile=$(mktemp /tmp/ucg-test.XXXX)
|
||||
echo -ne 'Lorem ipsum dolor sit amet\n2.7182818284590' > $testFile
|
||||
$out/bin/ucg 'dolor' $testFile || { rm $testFile; exit -1; }
|
||||
$out/bin/ucg --ignore-case 'lorem' $testFile || { rm $testFile; exit -1; }
|
||||
$out/bin/ucg --word-regexp '2718' $testFile && { rm $testFile; exit -1; }
|
||||
$out/bin/ucg 'pisum' $testFile && { rm $testFile; exit -1; }
|
||||
rm $testFile
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/gvansickle/ucg/";
|
||||
description = "Grep-like tool for searching large bodies of source code";
|
||||
longDescription = ''
|
||||
UniversalCodeGrep (ucg) is an extremely fast grep-like tool specialized
|
||||
for searching large bodies of source code. It is intended to be largely
|
||||
command-line compatible with Ack, to some extent with ag, and where
|
||||
appropriate with grep. Search patterns are specified as PCRE regexes.
|
||||
'';
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = with platforms; unix;
|
||||
broken = stdenv.isAarch64; # cpuid.h: no such file or directory
|
||||
};
|
||||
}
|
||||
# TODO: report upstream
|
||||
Loading…
Add table
Add a link
Reference in a new issue