1 { lib, stdenv, fetchurl, asciidoc, libxml2, docbook_xml_dtd_45, libxslt
2 , docbook_xsl, diffutils, coreutils, gnugrep, gnused
5 stdenv.mkDerivation rec {
6 pname = "autorevision";
10 url = "https://github.com/Autorevision/autorevision/releases/download/v%2F${version}/autorevision-${version}.tgz";
11 sha256 = "sha256-3ktLVC73m2xddq5BhxVKw/FJd6pZ5RVb7fv29dxUoRE=";
15 asciidoc libxml2 docbook_xml_dtd_45 libxslt docbook_xsl
18 installFlags = [ "prefix=$(out)" ];
21 sed -e "s|\<cmp\>|${diffutils}/bin/cmp|g" \
22 -e "s|\<cat\>|${coreutils}/bin/cat|g" \
23 -e "s|\<grep\>|${gnugrep}/bin/grep|g" \
24 -e "s|\<sed\>|${gnused}/bin/sed|g" \
25 -e "s|\<tee\>|${coreutils}/bin/tee|g" \
26 -i "$out/bin/autorevision"
30 description = "Extracts revision metadata from your VCS repository";
31 homepage = "https://autorevision.github.io/";
32 license = licenses.mit;
33 platforms = platforms.all;
34 maintainers = [ maintainers.bjornfor ];
35 mainProgram = "autorevision";