2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, asciidoc, libxml2, docbook_xml_dtd_45, libxslt
|
2017-02-07 15:59:33 +00:00
|
|
|
, docbook_xsl, diffutils, coreutils, gnugrep, gnused
|
2016-06-21 10:34:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "autorevision";
|
2018-02-25 04:31:03 +00:00
|
|
|
version = "1.21";
|
2016-06-21 10:34:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Autorevision/autorevision/releases/download/v%2F${version}/autorevision-${version}.tgz";
|
2018-02-25 04:31:03 +00:00
|
|
|
sha256 = "07ssirjy2mgbqxr792n3rqa408hm7qnhwfjzd73rqfwvjcahy1q8";
|
2016-06-21 10:34:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
asciidoc libxml2 docbook_xml_dtd_45 libxslt docbook_xsl
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [ "prefix=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2017-02-07 16:12:05 +00:00
|
|
|
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" \
|
2016-06-21 10:34:18 +01:00
|
|
|
-i "$out/bin/autorevision"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-21 10:34:18 +01:00
|
|
|
description = "Extracts revision metadata from your VCS repository";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://autorevision.github.io/";
|
2016-06-21 10:34:18 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|