diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-10-02 05:24:39 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-10-02 05:24:39 +0000 |
commit | cd73464fdfab20066b8298a46fb5db6a8239a49d (patch) | |
tree | 6d552c114055cf9960699d6c10ba76869d01d2e8 /pkgs/development/tools/build-managers | |
parent | 325a0370a7b126c074a3817ed8b9d3944a67744b (diff) |
Mention UIs in cmake.name
svn path=/nixpkgs/trunk/; revision=24026
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r-- | pkgs/development/tools/build-managers/cmake/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/tools/build-managers/cmake/default.nix b/pkgs/development/tools/build-managers/cmake/default.nix index cc5fce60e72f2..c491675f55c96 100644 --- a/pkgs/development/tools/build-managers/cmake/default.nix +++ b/pkgs/development/tools/build-managers/cmake/default.nix @@ -1,13 +1,19 @@ {fetchurl, stdenv, replace, curl, expat, zlib , useNcurses ? false, ncurses, useQt4 ? false, qt4}: +let + os = stdenv.lib.optionalString; + majorVersion = "2.8"; + minorVersion = "1"; + version = "${majorVersion}.${minorVersion}"; +in stdenv.mkDerivation rec { - name = "cmake-${majorVersion}.1"; + name = "cmake-${os useNcurses "cursesUI-"}${os useQt4 "qt4UI-"}${version}"; - majorVersion = "2.8"; + inherit majorVersion; src = fetchurl { - url = "http://www.cmake.org/files/v${majorVersion}/${name}.tar.gz"; + url = "${meta.homepage}files/v${majorVersion}/cmake-${version}.tar.gz"; sha256 = "0hi28blqxvir0dkhln90sgr0m3ri9n2i3hlmwdl4m5vkfsmp9bky"; }; |