mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-14 07:29:02 +03:00
26 lines
741 B
Nix
26 lines
741 B
Nix
{ pkgs }:
|
|
let
|
|
zigPkg = pkgs.zig_0_11;
|
|
llvmPkgs = pkgs.llvmPackages_16;
|
|
llvmVersion = builtins.splitVersion llvmPkgs.release_version;
|
|
llvmMajorMinorStr = builtins.elemAt llvmVersion 0 + builtins.elemAt llvmVersion 1;
|
|
# nix does not store libs in /usr/lib or /lib
|
|
glibcPath =
|
|
if pkgs.stdenv.isLinux then "${pkgs.glibc.out}/lib" else "";
|
|
libGccSPath =
|
|
if pkgs.stdenv.isLinux then "${pkgs.stdenv.cc.cc.lib}/lib" else "";
|
|
in
|
|
{
|
|
inherit zigPkg llvmPkgs llvmVersion llvmMajorMinorStr glibcPath libGccSPath;
|
|
|
|
darwinInputs = with pkgs;
|
|
lib.optionals stdenv.isDarwin
|
|
(with pkgs.darwin.apple_sdk.frameworks; [
|
|
AppKit
|
|
CoreFoundation
|
|
CoreServices
|
|
Foundation
|
|
Security
|
|
]);
|
|
}
|