autorevision: init at 1.14
A shell script for extracting revision information useful in release/build scripting from repositories.
This commit is contained in:
parent
6596d1eb61
commit
6536804848
34
pkgs/tools/misc/autorevision/default.nix
Normal file
34
pkgs/tools/misc/autorevision/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ stdenv, fetchurl, asciidoc, libxml2, docbook_xml_dtd_45, libxslt
|
||||||
|
, docbook_xsl, diffutils, coreutils, gnugrep
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "autorevision-${version}";
|
||||||
|
version = "1.14";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/Autorevision/autorevision/releases/download/v%2F${version}/autorevision-${version}.tgz";
|
||||||
|
sha256 = "0h0ig922am9qd0nbri3i6p4k789mv5iavxzxwylclg0mfgx43qd2";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
asciidoc libxml2 docbook_xml_dtd_45 libxslt docbook_xsl
|
||||||
|
];
|
||||||
|
|
||||||
|
installFlags = [ "prefix=$(out)" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
sed -e "s|cmp|${diffutils}/bin/cmp|" \
|
||||||
|
-e "s|cat|${coreutils}/bin/cat|" \
|
||||||
|
-e "s|grep|${gnugrep}/bin/grep|" \
|
||||||
|
-i "$out/bin/autorevision"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Extracts revision metadata from your VCS repository";
|
||||||
|
homepage = https://autorevision.github.io/;
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = [ maintainers.bjornfor ];
|
||||||
|
};
|
||||||
|
}
|
@ -469,6 +469,8 @@ in
|
|||||||
|
|
||||||
apg = callPackage ../tools/security/apg { };
|
apg = callPackage ../tools/security/apg { };
|
||||||
|
|
||||||
|
autorevision = callPackage ../tools/misc/autorevision { };
|
||||||
|
|
||||||
bonnie = callPackage ../tools/filesystems/bonnie { };
|
bonnie = callPackage ../tools/filesystems/bonnie { };
|
||||||
|
|
||||||
djmount = callPackage ../tools/filesystems/djmount { };
|
djmount = callPackage ../tools/filesystems/djmount { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user