push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
# Build settings based on the upstream Xcode project.
# See: https://github.com/apple-oss-distributions/misc_cmds/blob/main/misc_cmds.xcodeproj/project.pbxproj
# Project settings
project('misc_cmds', 'c', version : '@version@')
# Dependencies
cc = meson.get_compiler('c')
libedit = dependency('libedit')
libutil = cc.find_library('util')
ncurses = dependency('ncurses')
# Binaries
executable(
'calendar',
c_args : [ '-D__FBSDID=__RCSID' ],
dependencies : [ libutil ],
install : true,
sources : [
'calendar/calendar.c',
'calendar/dates.c',
'calendar/day.c',
'calendar/events.c',
'calendar/io.c',
'calendar/locale.c',
'calendar/ostern.c',
'calendar/parsedata.c',
'calendar/paskha.c',
'calendar/pom.c',
'calendar/sunpos.c',
],
)
install_data(
'calendar/calendars/calendar.apple',
'calendar/calendars/calendar.freebsd',
install_dir : get_option('datadir') / 'calendar',
)
install_man('calendar/calendar.1')
executable(
'leave',
c_args : [
'-D__FBSDID=__RCSID',
'-Du_int=uint32_t',
'-include', 'stdint.h',
],
install : true,
sources : [ 'leave/leave.c' ],
)
install_man('leave/leave.1')
executable(
'ncal',
dependencies : [ ncurses ],
include_directories : 'ncal',
install : true,
sources : [
'ncal/calendar.c',
'ncal/easter.c',
'ncal/ncal.c',
],
)
install_man('ncal/ncal.1')
install_symlink(
'cal',
install_dir : get_option('bindir'),
pointing_to : 'ncal',
)
install_symlink(
'cal.1',
install_dir : get_option('mandir') / 'man1',
pointing_to : 'ncal.1',
)
executable(
'tsort',
install : true,
sources : [ 'tsort/tsort.c' ],
)
install_man('tsort/tsort.1')
executable(
'units',
dependencies : [ libedit ],
install : true,
sources : [ 'units/units.c' ],
)
install_man('units/units.1')

View File

@@ -0,0 +1,38 @@
{
lib,
libedit,
libutil,
mkAppleDerivation,
ncurses,
pkg-config,
}:
mkAppleDerivation {
releaseName = "misc_cmds";
outputs = [
"out"
"man"
];
xcodeHash = "sha256-xuEHBlgys/xI9lm/wtiVAKi+AWWvRluW2I4rWOmS1kw=";
postPatch = ''
substituteInPlace calendar/pathnames.h \
--replace-fail '/usr' "$out"
substituteInPlace calendar/io.c \
--replace-fail '/usr/local' "$out"
substituteInPlace calendar/calendar.1 \
--replace-fail '/usr/local/share/calendar, /usr/share/calendar' "$out/share/calendar"
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libedit
libutil
ncurses
];
meta.description = "Miscellaneous commands for Darwin";
}