Commit Graph

1125 Commits

Author SHA1 Message Date
Randy Eckenrode
aeb53a823f
swift-corelibs: switch build system to cmake
Switching the build system to cmake makes it easier to make changes to
the build (particularly which dependencies to link). It also removes a
lot of manual build steps and fixes the issue identified by @emilazy in
NixOS#238791.

Fixes NixOS#238791.
2023-07-02 17:56:25 -04:00
Randy Eckenrode
8c16d17bdc
swift-corelibs: fix build with clang 16
swift-corelibs fails to build due to a missing header and an invalid
pointer conversion. Patches are provided to fix both of these issues.
2023-07-02 17:56:25 -04:00
Pol Dellaiera
53718fb655
Merge pull request #240762 from StepBroBD/raycast
raycast: 1.53.4 -> 1.54.1
2023-07-01 22:56:23 +02:00
Pol Dellaiera
4586970ee7
Merge pull request #240621 from StepBroBD/coconutbattery
coconutbattery: init at 3.9.12
2023-06-30 19:23:28 +02:00
Pol Dellaiera
a6f7d46ce4
Merge pull request #240618 from StepBroBD/bartender
bartender: init at 4.2.21
2023-06-30 19:23:10 +02:00
StepBroBD
febd3fa64f
raycast: 1.53.4 -> 1.54.1 2023-06-30 11:14:08 -06:00
StepBroBD
271969a12e
coconutbattery: init at 3.9.12
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2023-06-30 10:14:26 -06:00
StepBroBD
6482536377
bartender: init at 4.2.21
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2023-06-30 10:12:47 -06:00
StepBroBD
e0e729b300
airbuddy: init at 2.6.3
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2023-06-30 10:09:15 -06:00
iliana etaoin
8e669c6d1a utm: correct license metadata
https://github.com/utmapp/UTM/blob/v4.2.5/LICENSE
2023-06-28 03:30:32 +00:00
iliana etaoin
9fe79a86b4 libtapi: correct license metadata
664b8414f8/LICENSE.APPLE-LIBTAPI.txt
https://github.com/apple-oss-distributions/tapi/blob/main/LICENSE.TXT
2023-06-28 03:26:38 +00:00
Alyssa Ross
0f2191f3b2
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/development/compilers/gcc/11/default.nix
2023-06-22 06:23:16 +00:00
Weijia Wang
1447a5804b qt6.qtwebengine: unbreak on x86_64-darwin 2023-06-22 07:23:21 +03:00
toonn
62f759132d
Merge pull request #237348 from reckenrode/darwin-libc-cleanup
darwin.Libsystem: fix existing file error during build
2023-06-20 17:20:45 +02:00
github-actions[bot]
535ef0a591
Merge staging-next into staging 2023-06-19 18:02:35 +00:00
JesusMtnez
b1d3870fb3
raycast: 1.53.3 -> 1.53.4 2023-06-19 05:28:51 +02:00
github-actions[bot]
f76683b6c6
Merge staging-next into staging 2023-06-16 12:01:42 +00:00
github-actions[bot]
ebaef3ce4c
Merge master into staging-next 2023-06-16 12:01:08 +00:00
StepBroBD
7b85087a31
raycast: 1.53.2 -> 1.53.3
after communicating with the Raycast team (thanks Sorin), they added API for
1. Getting the latest version of Raycast via REST endpoint https://releases.raycast.com/releases/latest
2. Versioned download in the format of https://releases.raycast.com/releases/<version>/download

This update deprecates download via internet archive and switches to official download API
2023-06-15 12:01:37 -06:00
github-actions[bot]
a2ab9e9c7d
Merge staging-next into staging 2023-06-13 00:03:08 +00:00
github-actions[bot]
9dc5849025
Merge master into staging-next 2023-06-13 00:02:27 +00:00
Randy Eckenrode
5841d0353a
cctools-llvm: fix build with clang 16
This was not caught when cctools-llvm was added. The parens are
necessary to make sure this evaluates correctly when LLVM is new enough
to provide a compatible `otool`.
2023-06-12 17:38:02 -04:00
Randy Eckenrode
23cb6c155b
darwin.Libc: stop vendoring headers from other packages
A number of headers in Libc are being vendored from other packages.
Instead of copying them from an earlier Libc, Libsystem now sources them
from their respective packages (see below). This allows Libc_old to be
dropped and avoids any potential clashes when building Libsystem.

libmalloc:
* malloc/malloc.h

libplatform:
* setjmp.h
* ucontext.h
* libkern/OSAtomic.h
* libkern/OSCacheControl.h

libpthread:
* pthread*.h
* sched.h
* spawn.h

syslog (vendored because only one file is needed):
* asl.h

xnu:
* spawn.h (a different one from libpthread)
* libproc.h
2023-06-12 17:11:54 -04:00
github-actions[bot]
b8a01a0225
Merge staging-next into staging 2023-06-12 18:01:50 +00:00
github-actions[bot]
a69b4c6b89
Merge master into staging-next 2023-06-12 18:01:15 +00:00
Randy Eckenrode
a255182f56
darwin.Libsystem: get pthread headers from darwin.libpthread
Some of the headers are symlinked to the root `include` in upstream
Libsystem, so also symlink them there from `include/pthread`.
2023-06-12 09:15:29 -04:00
Randy Eckenrode
d2b670291f
darwin.Libsystem: get asl.h from upstream syslog sources 2023-06-12 09:15:29 -04:00
Randy Eckenrode
489ed84733
darwin.Libsystem: get malloc.h from darwin.libmalloc 2023-06-12 09:06:21 -04:00
Randy Eckenrode
81324e2ec3
darwin.libmalloc: add at 317.40.8 for the 11.0 SDK 2023-06-12 09:06:21 -04:00
Randy Eckenrode
a48c2d3e92
darwin.libmalloc: add at 116.50.8 2023-06-12 09:06:21 -04:00
Randy Eckenrode
2c149715fe
darwin.xnu: provide additional headers needed by Libsystem 2023-06-12 08:59:49 -04:00
toonn
e23fe5c0b6
Merge pull request #234863 from reckenrode/11_0-sdk-cf-fix
apple_sdk_11_0.stdenv: replace extraBuildInputs with CF from 11.0 SDK
2023-06-12 11:55:22 +02:00
JesusMtnez
1115715e82
raycast: 1.53.0 -> 1.53.2 2023-06-12 05:54:18 +02:00
toonn
b7ed52e26f
Merge pull request #235487 from reckenrode/system_cmds-clang-fix
darwin.system_cmds: fix build with clang 16
2023-06-11 20:14:59 +02:00
Randy Eckenrode
28fe4eec0f
apple_sdk_11_0.stdenv: replace extraBuildInputs with CF from 11.0 SDK
This can result in swift-corefoundation being included even when a
derivation uses `apple_sdk_11_0.stdenv` directly, which may result in
hard to debug compiler errors (unless you just happen to know cryptic
compiler errors means the 10.12 and 11.0 SDKs have been mixed).
2023-06-11 12:27:32 -04:00
toonn
b7d4899ad5
Merge pull request #234861 from reckenrode/corefoundation-rpath
swift-corelibs: set NIX_COREFOUNDATION_RPATH in a hook
2023-06-11 17:13:54 +02:00
Randy Eckenrode
cd4ab1d9fd
darwin.system_cmds: fix build with clang 16
Clang 16 makes implicit declarations an error by default. The headers
are available, so include them.

`getline` was renamed to `get_line` to avoid a name clash. `util.h`
includes `stdio.h`, which defines `getline`.
2023-06-10 17:15:08 -04:00
github-actions[bot]
52cf9e3e3b
Merge staging-next into staging 2023-06-08 18:02:03 +00:00
toonn
782dbaf30f
Merge pull request #234859 from reckenrode/cctools-llvm
cctools-llvm: init at 11.1.0-973.0.1
2023-06-08 19:23:56 +02:00
github-actions[bot]
f8aa1a896e
Merge staging-next into staging 2023-06-08 06:01:46 +00:00
StepBroBD
a3ce564a94
raycast: 1.52.1 -> 1.53.0 2023-06-07 18:48:19 -06:00
Randy Eckenrode
df7487ff17
cctools-llvm: init at 11.1.0-973.0.1
cctools-llvm is a replacement for cctools that replaces as much of cctools with equivalents from LLVM that it can reasonably do. This was motivated by wanting to reduce dependencies on cctools, which are updated infrequently by upstream.

To provide a motivating example, the version of `strip` included in cctools cannot properly strip the archives in compiler-rt in LLVM 15. Paths are left to bootstrap tools, resulting in failed requisites checks in the final stdenv build. Since `strip` needs replaced, the opportunity was taken to replace other provided they are functional replacements.

Note: This has to be done in cctools (or some equivalent) because some derivations (noteably LLVM) use the bintools of the stdenv directly instead of going through the wrapper.

The following tools from LLVM are not used in this derivation:

* LLD - not fully compatible with ld64 yet and potentially too big of a change;
* libtool - not a drop-in replacement yet because it does not support linker passthrough, which is needed by xcbuild;
* lipo - crashes when running the LLVM test suite;
* install_name_tool - fails when trying to build swift-corefoundation; and.
* randlib - not completely a drop-in replacement, so leaving it out for now.

If other incompatabilities are found, the tools can be reverted or made conditional. For example, cctools `strip` is preferred on older versions of LLVM (which lack the compiler-rt issue) or when cctools itself is a new enough version because `llvm-strip` on LLVM 11 produces files that older verions of `codesign_allocate` cannot process correctly.

One final caveat/note: Some tools are not duplicated or linked from cctools-port. The names of the tools and which ones were linked was determined based on what is provided upstream in Xcode and is installed on macOS system.
2023-06-06 19:05:22 -04:00
toonn
501dcc2d3e
Merge pull request #234857 from reckenrode/configd-fix
configd: fix build with newer LLVM and bootstrap
2023-06-05 19:26:06 +02:00
github-actions[bot]
de4f02a6c8
Merge master into staging-next 2023-06-05 12:01:12 +00:00
Weijia Wang
ad7fbd276f
Merge pull request #233657 from wegank/darwin-system-redo
darwin.apple_sdk_10_12.frameworks.System: init
2023-06-05 11:43:39 +03:00
github-actions[bot]
8f9be47422
Merge master into staging-next 2023-06-05 06:01:33 +00:00
Randy Eckenrode
241f525928
cctools-apple: fix download source
This probably hasn’t built for a while. Apple is redirecting to GitHub,
which results in different hashes for cctools and ld64. While I’m fixing
the hashes, I also updated the sources to use `fetchFromGitHub`.
2023-06-04 17:45:14 -04:00
Randy Eckenrode
09799e8b80
apple_sdk: fix infinite recursion
The 10.12 SDK uses `xar`, which depends on Python indirectly, which
depends on configd by default. This causes an infinite recuresion when
building configd because it needs SDK headers to build with clang 16.

Fix the infinite recursion by disabling Python support in libxml2 when
building the SDK, and use a minimal Python in the SDK build itself.
2023-06-04 09:31:39 -04:00
Weijia Wang
7849b5f9bb
Merge pull request #234855 from reckenrode/rewrite-tbd-fix
rewrite-tbd: avoid infinite recursion when cmake is not cmakeMinimal
2023-05-31 13:12:27 +02:00
Randy Eckenrode
259b15f25d
rewrite-tbd: avoid infinite recursion when cmake is not cmakeMinimal
This was found while working on the Darwin stdenv rework. This change
allows rewrite-tbd to use the provided Makefile instead of depending on
cmake and pkg-config.

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
2023-05-31 00:31:18 -04:00