nixpkgs/pkgs/development/compilers/llvm/9/lld.nix

32 lines
557 B
Nix
Raw Normal View History

{ lib, stdenv
2019-09-19 19:19:41 +01:00
, fetch
, cmake
, libxml2
, llvm
, version
}:
stdenv.mkDerivation rec {
2019-09-19 19:19:41 +01:00
pname = "lld";
inherit version;
src = fetch pname "10hckfxpapfnh6y9apjiya2jpw9nmbbmh8ayijx89mrg7snjn9l6";
2019-09-19 19:19:41 +01:00
nativeBuildInputs = [ cmake ];
buildInputs = [ llvm libxml2 ];
outputs = [ "out" "dev" ];
postInstall = ''
moveToOutput include "$dev"
moveToOutput lib "$dev"
'';
meta = {
description = "The LLVM Linker";
homepage = "https://lld.llvm.org/";
license = lib.licenses.ncsa;
platforms = lib.platforms.all;
2019-09-19 19:19:41 +01:00
};
}