mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
update nvidia cg toolkit to v3.1
TODO: investigate man page issues Closes #4024
This commit is contained in:
parent
5e80764774
commit
2db5d9525a
@ -3,9 +3,9 @@
|
||||
assert stdenv ? glibc;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.0";
|
||||
version = "3.1";
|
||||
|
||||
date = "February2011";
|
||||
date = "April2012";
|
||||
|
||||
name = "nvidia-cg-toolkit-${version}";
|
||||
|
||||
@ -13,12 +13,12 @@ stdenv.mkDerivation rec {
|
||||
if stdenv.system == "x86_64-linux" then
|
||||
fetchurl {
|
||||
url = "http://developer.download.nvidia.com/cg/Cg_${version}/Cg-${version}_${date}_x86_64.tgz";
|
||||
sha256 = "07gmnzfsla3vf1kf00cj86p87h6wrdbp6ri4ycslc5kmfxsq7ypq";
|
||||
sha256 = "e8ff01e6cc38d1b3fd56a083f5860737dbd2f319a39037528fb1a74a89ae9878";
|
||||
}
|
||||
else if stdenv.system == "i686-linux" then
|
||||
fetchurl {
|
||||
url = "http://developer.download.nvidia.com/cg/Cg_${version}/Cg-${version}_${date}_x86.tgz";
|
||||
sha256 = "0hr8l0r20akbfm5j0vqv4ghl0acwjf5996pxnfxlajacl9w58nam";
|
||||
sha256 = "cef3591e436f528852db0e8c145d3842f920e0c89bcfb219c466797cb7b18879";
|
||||
}
|
||||
else throw "nvidia-cg-toolkit does not support platform ${stdenv.system}";
|
||||
|
||||
@ -35,11 +35,6 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p "$out/lib/"
|
||||
[ "$system" == "x86_64-linux" ] && cp -v lib64/* "$out/lib/"
|
||||
[ "$system" == "i686-linux" ] && cp -v lib/* "$out/lib/"
|
||||
for mandir in man1 man3 manCg manCgFX
|
||||
do
|
||||
mkdir -p "$out/share/man/$mandir/"
|
||||
cp -v share/man/$mandir/* "$out/share/man/$mandir/"
|
||||
done
|
||||
mkdir -p "$out/share/doc/$name/"
|
||||
cp -v -r local/Cg/* "$out/share/doc/$name/"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user