2016-06-21 11:34:18 +02:00
|
|
|
{ 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 {
|
|
|
|
name = "autorevision-${version}";
|
2017-02-07 17:02:49 +01:00
|
|
|
version = "1.20";
|
2016-06-21 11:34:18 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Autorevision/autorevision/releases/download/v%2F${version}/autorevision-${version}.tgz";
|
2017-02-07 17:02:49 +01:00
|
|
|
sha256 = "1xlp7wn2vv17rp848ai272sifi6fmwdr6dg4im53hrf32j3gzlhy";
|
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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|