aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/compilers/llvm/rocm/lld.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/llvm/rocm/lld.nix')
-rw-r--r--nixpkgs/pkgs/development/compilers/llvm/rocm/lld.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/llvm/rocm/lld.nix b/nixpkgs/pkgs/development/compilers/llvm/rocm/lld.nix
new file mode 100644
index 00000000000..052bfd1c62d
--- /dev/null
+++ b/nixpkgs/pkgs/development/compilers/llvm/rocm/lld.nix
@@ -0,0 +1,33 @@
+{ stdenv
+, cmake
+, libxml2
+, llvm
+
+, version
+, src
+}:
+
+stdenv.mkDerivation rec {
+ inherit version src;
+
+ pname = "lld";
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = [ libxml2 llvm ];
+
+ outputs = [ "out" "dev" ];
+
+ postInstall = ''
+ moveToOutput include "$dev"
+ moveToOutput lib "$dev"
+ '';
+
+ meta = with stdenv.lib; {
+ description = "ROCm fork of the LLVM Linker";
+ homepage = "https://github.com/RadeonOpenCompute/llvm-project";
+ license = licenses.ncsa;
+ maintainers = with maintainers; [ danieldk ];
+ platforms = platforms.linux;
+ };
+}