Merge pull request #60321 from marsam/terra-fix-darwin-build

terra: fix darwin build
This commit is contained in:
Mario Rodas 2019-05-21 01:49:10 -05:00 committed by GitHub
commit fcc375ba67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,26 +37,20 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
mkdir -pv $out/lib
cp -v release/lib/terra.so $out/lib
mkdir -pv $bin/bin
cp -v release/bin/terra $bin/bin
mkdir -pv $static/lib
cp -v release/lib/libterra.a $static/lib
install -Dm755 -t $bin/bin release/bin/terra
install -Dm755 -t $out/lib release/lib/terra${stdenv.hostPlatform.extensions.sharedLibrary}
install -Dm644 -t $static/lib release/lib/libterra.a
mkdir -pv $dev/include
cp -rv release/include/terra $dev/include
''
;
'';
buildInputs = with llvmPackages; [ lua llvm clang-unwrapped ncurses ];
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "A low-level counterpart to Lua";
platforms = [ "x86_64-linux" ];
homepage = http://terralang.org/;
platforms = platforms.x86_64;
maintainers = with maintainers; [ jb55 ];
license = licenses.mit;
};