diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-04-27 08:47:19 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-05-20 22:12:13 -0500 |
commit | 1b95ef168b2008995ed208022bd7e121a0af1d1c (patch) | |
tree | a19967771bb1d9d3c04ac2596a726f7519ef3edb /pkgs/development/compilers | |
parent | 554d6cf07f1b9a4e2388db11e3be2b1b0b2ca10e (diff) |
terra: fix darwin build
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/terra/default.nix | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/pkgs/development/compilers/terra/default.nix b/pkgs/development/compilers/terra/default.nix index 312facde94892..b1f9ee799e5c2 100644 --- a/pkgs/development/compilers/terra/default.nix +++ b/pkgs/development/compilers/terra/default.nix @@ -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; }; |