diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-11-16 16:31:02 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-11-16 16:31:02 +0000 |
commit | bb002fc12163ed1c8ad68198053be71b331c41f4 (patch) | |
tree | c70b720ae18ce562b26a18984dc533e664472862 | |
parent | 0093d96841e1c7f605e04b09082284a8a98ac538 (diff) |
* Unbreak the Nixpkgs tarball.
svn path=/nixpkgs/trunk/; revision=30447
-rw-r--r-- | pkgs/development/compilers/nvidia-cg-toolkit/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/compilers/nvidia-cg-toolkit/default.nix b/pkgs/development/compilers/nvidia-cg-toolkit/default.nix index 36d0cbaf23c26..8bb201f975e73 100644 --- a/pkgs/development/compilers/nvidia-cg-toolkit/default.nix +++ b/pkgs/development/compilers/nvidia-cg-toolkit/default.nix @@ -1,8 +1,14 @@ { stdenv, fetchurl, patchelf }: + +assert stdenv ? glibc; + stdenv.mkDerivation rec { version = "3.0"; + date = "February2011"; + name = "nvidia-cg-toolkit-${version}"; + src = if stdenv.system == "x86_64-linux" then fetchurl { @@ -14,7 +20,8 @@ stdenv.mkDerivation rec { url = "http://developer.download.nvidia.com/cg/Cg_${version}/Cg-${version}_${date}_x86.tgz"; sha256 = "0hr8l0r20akbfm5j0vqv4ghl0acwjf5996pxnfxlajacl9w58nam"; } - else null; + else throw "nvidia-cg-toolkit does not support platform ${stdenv.system}"; + installPhase = '' for b in cgc cgfxcat cginfo do @@ -36,6 +43,7 @@ stdenv.mkDerivation rec { ensureDir "$out/share/doc/$name/" cp -v -r local/Cg/* "$out/share/doc/$name/" ''; + meta = { homepage = http://developer.nvidia.com/cg-toolkit; license = [ "nonfree-redistributable" ]; |