apple-sdk_26-test: drop
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
meson,
|
||||
ninja,
|
||||
apple-sdk_26,
|
||||
darwinMinVersionHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "apple-sdk_26-test";
|
||||
|
||||
src = ./src;
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
apple-sdk_26
|
||||
(darwinMinVersionHook "26.0")
|
||||
];
|
||||
|
||||
meta.mainProgram = "apple-sdk_26-test";
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <spawn.h>
|
||||
|
||||
int main(int argc, char** argv, char** env) {
|
||||
if (@available(macOS 26, *)) {
|
||||
int ret;
|
||||
pid_t pid;
|
||||
posix_spawn_file_actions_t actions;
|
||||
if ((ret = posix_spawn_file_actions_init(&actions))) {
|
||||
printf("cannot create file_actions\n");
|
||||
}
|
||||
if ((ret = posix_spawn_file_actions_addchdir(&actions, "/tmp"))) {
|
||||
printf("cannot add_chdir\n");
|
||||
}
|
||||
if ((ret = posix_spawnp(&pid, "pwd", &actions, NULL, argv, env))) {
|
||||
printf("cannot spawn\n");
|
||||
}
|
||||
} else {
|
||||
printf(":(\n");
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
project('apple-sdk_26-test', 'objc')
|
||||
executable('apple-sdk_26-test', 'apple-sdk_26-test.m', install : true)
|
||||
Reference in New Issue
Block a user