nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ buildRedist }:
2buildRedist {
3 redistName = "cuda";
4 pname = "libnvvm";
5
6 # NOTE(@connorbaker): CMake and other build systems may not react well to this library being split into multiple
7 # outputs; they may use relative path accesses.
8 outputs = [ "out" ];
9
10 # Everything is nested under the nvvm directory.
11 prePatch = ''
12 nixLog "un-nesting top-level $PWD/nvvm directory"
13 mv -v "$PWD/nvvm"/* "$PWD/"
14 nixLog "removing empty $PWD/nvvm directory"
15 rmdir -v "$PWD/nvvm"
16 '';
17
18 meta = {
19 description = "Interface for generating PTX code from both binary and text NVVM IR inputs";
20 longDescription = ''
21 libNVVM API provides an interface for generating PTX code from both binary and text NVVM IR inputs.
22 '';
23 homepage = "https://docs.nvidia.com/cuda/libnvvm-api";
24 };
25}