{ lib, stdenv, fetchurl, asciidoc, libxml2, docbook_xml_dtd_45, libxslt , docbook_xsl, diffutils, coreutils, gnugrep, gnused }: stdenv.mkDerivation rec { pname = "autorevision"; version = "1.21"; src = fetchurl { url = "https://github.com/Autorevision/autorevision/releases/download/v%2F${version}/autorevision-${version}.tgz"; sha256 = "07ssirjy2mgbqxr792n3rqa408hm7qnhwfjzd73rqfwvjcahy1q8"; }; buildInputs = [ asciidoc libxml2 docbook_xml_dtd_45 libxslt docbook_xsl ]; installFlags = [ "prefix=$(out)" ]; postInstall = '' sed -e "s|\|${diffutils}/bin/cmp|g" \ -e "s|\|${coreutils}/bin/cat|g" \ -e "s|\|${gnugrep}/bin/grep|g" \ -e "s|\|${gnused}/bin/sed|g" \ -e "s|\|${coreutils}/bin/tee|g" \ -i "$out/bin/autorevision" ''; meta = with lib; { description = "Extracts revision metadata from your VCS repository"; homepage = "https://autorevision.github.io/"; license = licenses.mit; platforms = platforms.all; maintainers = [ maintainers.bjornfor ]; }; }