9 stdenv.mkDerivation rec {
10 pname = "geteltorito";
14 url = "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/geteltorito-${version}.tar.gz";
15 sha256 = "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv";
27 # reformat README to ronn markdown
28 cat > README.new <<EOF
29 geteltorito -- ${meta.description}
36 # skip the first two lines
37 # -e reformat function call
39 # -e make everything else (that is no code) that contains `: ` a list item
40 tail -n +3 README | sed \
41 -e 's/^\(call:\s*\)\(getelt.*\)$/\1`\2`/' \
42 -e 's/^\(example:\s*\)\(getelt.*\)$/\1 `\2`/' \
43 -e 's/^\(.*: \)/- \1/g' \
45 mkdir -p $out/man/man1
46 ronn --roff README.new --pipe > $out/man/man1/geteltorito.1
47 install -vD geteltorito $out/bin/geteltorito
51 description = "Extract the initial/default boot image from a CD image if existent";
52 homepage = "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/";
53 maintainers = [ maintainers.Profpatsch ];
54 license = licenses.gpl2Only;
55 mainProgram = "geteltorito";