3
0
Fork 0
forked from mirrors/nixpkgs

gnome-latest.sh: don't use fetchurl_gnome

Output both name and src instead of using fetchurl_gnome

svn path=/nixpkgs/trunk/; revision=31332
This commit is contained in:
Yury G. Kudryashov 2012-01-06 00:54:52 +00:00
parent 6a27a67605
commit 27e639b5b2

View file

@ -84,20 +84,10 @@ sha256=`nix-hash --to-base32 --type sha256 $sha256`
echo "Chosen ${ext_pref}, hash is ${sha256}" >&2
cat <<EOF
src = fetchurl_gnome {
project = "${project}";
EOF
echo -n " major = \"`echo ${version} | cut -d. -f1`\";"
echo -n " minor = \"`echo ${version} | cut -d. -f2`\";"
patchlevel=`echo ${version} | cut -d. -f3`
if [ -n "$patchlevel" ]; then
echo -n " patchlevel = \"${patchlevel}\";"
fi
if [ "$ext_pref" != "bz2" ]; then
echo -n " extension = \"${ext_pref}\";"
fi
echo
cat <<EOF
name = "${project}-${version}";
src = fetchurl {
url = mirror://gnome/sources/${project}/${baseVersion}/${project}-${version}.tar.${ext_pref};
sha256 = "${sha256}";
};
EOF