diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-10-03 09:25:34 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-10-03 09:25:34 +0000 |
commit | cd4b54748a246fa73bb4b15afca2151c16ff1dcc (patch) | |
tree | 223f6533247d307c88aa2eaaf2f4827adca6f84e /pkgs/development/tools/build-managers | |
parent | 8d435fd90f74c4afcdbfe234eff98b33aab578f3 (diff) | |
parent | e99b3198fa0b0c3a0485feda4d34596d1319f405 (diff) |
Updating from trunk
svn path=/nixpkgs/branches/stdenv-updates/; revision=24038
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"; }; |