nixpkgs/pkgs/development/compilers/llvm/5/lld/default.nix

32 lines
575 B
Nix
Raw Normal View History

{ lib, stdenv
2017-09-16 00:38:38 +00:00
, fetch
, cmake
, llvm
, version
}:
stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "lld";
inherit version;
2017-09-16 00:38:38 +00:00
2018-05-04 15:54:06 +00:00
src = fetch "lld" "1ah75rjly6747jk1zbwca3z0svr9b09ylgxd4x9ns721xir6sia6";
2017-09-16 00:38:38 +00:00
nativeBuildInputs = [ cmake ];
buildInputs = [ llvm ];
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;
badPlatforms = [ "x86_64-darwin" ];
2017-09-16 00:38:38 +00:00
};
}