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