pythonDocs: add meta.maintainers, subgroup attrset by doctype

This commit is contained in:
Florian Friesdorf
2013-03-03 06:48:05 +01:00
parent 3b5b1be3cf
commit 930e4d5391
27 changed files with 159 additions and 74 deletions
@@ -15,8 +15,9 @@ let
pythonDocs = {
EOF
for version in $VERSIONS; do
for type in $TYPES; do
for type in $TYPES; do
echo " ${type/-/_} = {" >> default.nix
for version in $VERSIONS; do
major=$(echo -n ${version}| cut -d. -f1)
minor=$(echo -n ${version}| cut -d. -f2)
outfile=${major}.${minor}-${type}.nix
@@ -38,16 +39,17 @@ for version in $VERSIONS; do
-e "s,URL,${url}," \
-e "s,SHA,${sha}," < template.nix > ${outfile}
attrname=python${major}${minor}_$(echo -n ${type} |sed -e "s,-,_,g")
attrname=python${major}${minor}
cat >>default.nix <<EOF
${attrname} = import ./${major}.${minor}-${type}.nix {
inherit stdenv fetchurl;
};
${attrname} = import ./${major}.${minor}-${type}.nix {
inherit stdenv fetchurl;
};
EOF
echo "done."
echo
done
echo " };" >> default.nix
done
echo "}; in pythonDocs" >> default.nix