1 { lib, stdenv, perl, ronn, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/geteltorito-${version}.tar.gz";
9 sha256 = "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv";
12 buildInputs = [ perl ronn ];
18 # reformat README to ronn markdown
19 cat > README.new <<EOF
20 geteltorito -- ${meta.description}
27 # skip the first two lines
28 # -e reformat function call
30 # -e make everything else (that is no code) that contains `: ` a list item
31 tail -n +3 README | sed \
32 -e 's/^\(call:\s*\)\(getelt.*\)$/\1`\2`/' \
33 -e 's/^\(example:\s*\)\(getelt.*\)$/\1 `\2`/' \
34 -e 's/^\(.*: \)/- \1/g' \
36 mkdir -p $out/man/man1
37 ronn --roff README.new --pipe > $out/man/man1/geteltorito.1
38 install -vD geteltorito $out/bin/geteltorito
42 description = "Extract the initial/default boot image from a CD image if existent";
43 homepage = "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/";
44 maintainers = [ maintainers.Profpatsch ];
45 license = licenses.gpl2;