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/misc/autorevision/default.nix
Normal file
36
pkgs/tools/misc/autorevision/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchurl, asciidoc, libxml2, docbook_xml_dtd_45, libxslt
|
||||
, docbook_xsl, diffutils, coreutils, gnugrep, gnused
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "autorevision";
|
||||
version = "1.22";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Autorevision/autorevision/releases/download/v%2F${version}/autorevision-${version}.tgz";
|
||||
sha256 = "sha256-3ktLVC73m2xddq5BhxVKw/FJd6pZ5RVb7fv29dxUoRE=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
asciidoc libxml2 docbook_xml_dtd_45 libxslt docbook_xsl
|
||||
];
|
||||
|
||||
installFlags = [ "prefix=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
sed -e "s|\<cmp\>|${diffutils}/bin/cmp|g" \
|
||||
-e "s|\<cat\>|${coreutils}/bin/cat|g" \
|
||||
-e "s|\<grep\>|${gnugrep}/bin/grep|g" \
|
||||
-e "s|\<sed\>|${gnused}/bin/sed|g" \
|
||||
-e "s|\<tee\>|${coreutils}/bin/tee|g" \
|
||||
-i "$out/bin/autorevision"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Extracts revision metadata from your VCS repository";
|
||||
homepage = "https://autorevision.github.io/";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue