2011-09-20 08:21:46 +02:00
|
|
|
{ fetchurl }:
|
|
|
|
|
2012-01-04 10:05:22 +01:00
|
|
|
{ project, major, minor, patchlevel ? null, extension ? "bz2", sha256 }:
|
2011-09-20 08:21:46 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
baseVersion = "${major}.${minor}";
|
|
|
|
version = baseVersion + (if patchlevel != null then ".${patchlevel}" else "");
|
|
|
|
name = "${project}-${version}";
|
|
|
|
in
|
|
|
|
|
|
|
|
(fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${project}/${baseVersion}/${name}.tar.${extension}";
|
|
|
|
inherit sha256;
|
|
|
|
}) // {
|
|
|
|
inherit major minor patchlevel baseVersion version;
|
|
|
|
pkgname = name;
|
|
|
|
}
|