Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgs/by-name/[abc].+ Migrate to new Darwin SDK #355564

Closed
wants to merge 50 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
1c98d03
aegisub: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
5bda7c8
arti: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
148dd58
aiken: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
164c9b1
amp: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
f4282d7
attic-client: format rfc style
sarahec Nov 12, 2024
d263d61
attic-client: migrate to new apple-sdk platform
sarahec Nov 13, 2024
8305726
azurite: format rfc style
sarahec Nov 12, 2024
8b7c26d
azurite: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
000f561
binsider: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
dcd1ea0
browsers: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
152c682
bunbun: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
af15a37
c2patool: format rfc style
sarahec Nov 12, 2024
586f115
c2patool: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
8f7e4a3
caligula: format rfc style
sarahec Nov 12, 2024
a69ce09
caligula: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
5f708a6
cargo-bump: format rfc style
sarahec Nov 12, 2024
430ce24
cargo-bump: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
398a4ed
cargo-geiger: format rfc style
sarahec Nov 12, 2024
c0852a6
cargo-geiger: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
52e9b1f
cargo-information: format rfc style
sarahec Nov 12, 2024
9967a4c
cargo-information: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
dc2d73a
cargo-make: format rfc style
sarahec Nov 12, 2024
4d8946f
cargo-make: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
1090ea3
cargo-modules: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
cbf47b7
cargo-raze: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
7c4f913
cargo-unfmt: format rfc style
sarahec Nov 12, 2024
f4ec018
cargo-unfmt: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
5509c35
cargo-vibe: format rfc style
sarahec Nov 12, 2024
b870da1
cargo-vibe: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
ccd9842
cargo-wasi: format rfc style
sarahec Nov 12, 2024
f7c36ca
cargo-wasi: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
838e784
cargo-xwin: format rfc style
sarahec Nov 12, 2024
27b91c8
cargo-xwin: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
7d07628
citations: format rfc style
sarahec Nov 12, 2024
d77f715
citations: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
b39783e
clipcat: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
9daee34
code2prompt: migrate to new apple-sdk pattern
sarahec Nov 12, 2024
ea1a456
codeberg-cli: migrate to new apple-sdk platform
sarahec Nov 12, 2024
1bdc113
committed: format rfc style
sarahec Nov 12, 2024
0d6bf3d
committed: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
cc653c2
convco: format rfc style
sarahec Nov 12, 2024
88bd0dd
convco: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
2da99f5
cook-cli: format rfc style
sarahec Nov 12, 2024
9d61285
cook-cli: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
8f86386
crabfit-api: migrate to new apple-sdk platform
sarahec Nov 12, 2024
b1be178
crunchy-cli: format rfc style
sarahec Nov 12, 2024
39436a8
crunchy-cli: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
a5ba087
csvlens: format rfc style
sarahec Nov 12, 2024
4c8b47a
csvlens: migrate to new apple-sdk pattern
sarahec Nov 13, 2024
9eb707e
czkawka: migrate to new apple-sdk platform
sarahec Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 8 additions & 26 deletions pkgs/by-name/ae/aegisub/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
boost,
cmake,
config,
darwin,
expat,
fetchFromGitHub,
fetchpatch,
Expand Down Expand Up @@ -46,16 +45,6 @@
useBundledLuaJIT ? false,
}:

let
inherit (darwin.apple_sdk.frameworks)
AppKit
Carbon
Cocoa
CoreFoundation
CoreText
IOKit
OpenAL;
in
stdenv.mkDerivation (finalAttrs: {
pname = "aegisub";
version = "3.3.3";
Expand Down Expand Up @@ -101,20 +90,10 @@ stdenv.mkDerivation (finalAttrs: {
zlib
]
++ lib.optionals alsaSupport [ alsa-lib ]
++ lib.optionals openalSupport [
(if stdenv.hostPlatform.isDarwin then OpenAL else openal)
]
++ lib.optionals (openalSupport && !stdenv.hostPlatform.isDarwin) [ openal ]
++ lib.optionals portaudioSupport [ portaudio ]
++ lib.optionals pulseaudioSupport [ libpulseaudio ]
++ lib.optionals spellcheckSupport [ hunspell ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit
Carbon
Cocoa
CoreFoundation
CoreText
IOKit
];
++ lib.optionals spellcheckSupport [ hunspell ];

hardeningDisable = [
"bindnow"
Expand Down Expand Up @@ -148,6 +127,11 @@ stdenv.mkDerivation (finalAttrs: {

cmakeBuildDir = "build-directory";

cmakeFlags = lib.optionals (stdenv.hostPlatform.isDarwin && !openalSupport) [
# OpenAL is in the SDK and linked unless we disable it
"-DWITH_OPENAL=OFF"
];

strictDeps = true;

meta = {
Expand All @@ -161,9 +145,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
# The Aegisub sources are itself BSD/ISC, but they are linked against GPL'd
# softwares - so the resulting program will be GPL
license = with lib.licenses; [
bsd3
];
license = with lib.licenses; [ bsd3 ];
mainProgram = "aegisub";
maintainers = with lib.maintainers; [ AndersonTorres wegank ];
platforms = lib.platforms.unix;
Expand Down
13 changes: 1 addition & 12 deletions pkgs/by-name/ai/aiken/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
pkg-config,
rustPlatform,
fetchFromGitHub,
darwin,
stdenv,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -21,16 +19,7 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-aylmZFb+UaK3OEpJLOf4NuT4uMLRhdUg+cSjzxRo7t8=";

buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
CoreServices
SystemConfiguration
]
);
buildInputs = [ openssl ];

nativeBuildInputs = [ pkg-config ];

Expand Down
20 changes: 5 additions & 15 deletions pkgs/by-name/am/amp/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
xorg,
cmake,
libgit2,
darwin,
curl,
}:

Expand All @@ -33,20 +32,11 @@ rustPlatform.buildRustPackage rec {
pkg-config
python3
];
buildInputs =
[
openssl
xorg.libxcb
libgit2
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
curl
Security
AppKit
]
);
buildInputs = [
openssl
xorg.libxcb
libgit2
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ curl ];

# Tests need to write to the theme directory in HOME.
preCheck = "export HOME=`mktemp -d`";
Expand Down
11 changes: 1 addition & 10 deletions pkgs/by-name/ar/arti/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
pkg-config,
sqlite,
openssl,
darwin,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -26,15 +25,7 @@ rustPlatform.buildRustPackage rec {

nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];

buildInputs =
[ sqlite ]
++ lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
CoreServices
]
);
buildInputs = [ sqlite ] ++ lib.optionals stdenv.isLinux [ openssl ];

cargoBuildFlags = [
"--package"
Expand Down
31 changes: 16 additions & 15 deletions pkgs/by-name/at/attic-client/package.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ lib
, rustPlatform
, fetchFromGitHub
, nix
, nixosTests
, boost
, pkg-config
, stdenv
, installShellFiles
, darwin
, crates ? [ "attic-client" ]
{
lib,
rustPlatform,
fetchFromGitHub,
nix,
nixosTests,
boost,
pkg-config,
stdenv,
installShellFiles,
crates ? [ "attic-client" ],
}:
rustPlatform.buildRustPackage {
pname = "attic";
Expand All @@ -29,9 +29,7 @@ rustPlatform.buildRustPackage {
buildInputs = [
nix
boost
] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
SystemConfiguration
]);
];

cargoLock = {
lockFile = ./Cargo.lock;
Expand Down Expand Up @@ -66,7 +64,10 @@ rustPlatform.buildRustPackage {
description = "Multi-tenant Nix Binary Cache";
homepage = "https://github.com/zhaofengli/attic";
license = licenses.asl20;
maintainers = with maintainers; [ zhaofengli aciceri ];
maintainers = with maintainers; [
zhaofengli
aciceri
];
platforms = platforms.linux ++ platforms.darwin;
mainProgram = "attic";
};
Expand Down
29 changes: 14 additions & 15 deletions pkgs/by-name/az/azurite/package.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
, stdenv
, darwin
, libsecret
, pkg-config
, python3
{
lib,
buildNpmPackage,
fetchFromGitHub,
stdenv,
libsecret,
pkg-config,
python3,
}:

buildNpmPackage rec {
Expand All @@ -21,13 +21,12 @@ buildNpmPackage rec {

npmDepsHash = "sha256-+ptjsz2MDIB/aqu4UxkBLCcehtamFdmswNUsHs23LuE=";

nativeBuildInputs = [ pkg-config python3 ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
libsecret
] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin; [
Security
apple_sdk.frameworks.AppKit
]);
nativeBuildInputs = [
pkg-config
python3
];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [ libsecret ];

meta = {
description = "An open source Azure Storage API compatible server";
Expand Down
9 changes: 0 additions & 9 deletions pkgs/by-name/bi/binsider/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
lib,
darwin,
rustPlatform,
fetchFromGitHub,
stdenv,
Expand All @@ -20,14 +19,6 @@ rustPlatform.buildRustPackage rec {

buildNoDefaultFeatures = !stdenv.isLinux;

buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
CoreServices
]
);

checkType = "debug";
checkFlags = [
"--skip=test_extract_strings"
Expand Down
25 changes: 8 additions & 17 deletions pkgs/by-name/br/browsers/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
glib,
gtk3,
pango,
stdenv,
darwin,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -38,21 +36,14 @@ rustPlatform.buildRustPackage rec {
wrapGAppsHook3
];

buildInputs =
[
atk
cairo
gdk-pixbuf
glib
gtk3
pango
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.CoreGraphics
darwin.apple_sdk.frameworks.CoreText
darwin.apple_sdk.frameworks.Foundation
];
buildInputs = [
atk
cairo
gdk-pixbuf
glib
gtk3
pango
];

postInstall = ''
install -m 444 \
Expand Down
15 changes: 1 addition & 14 deletions pkgs/by-name/bu/bunbun/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
versionCheckHook,
nix-update-script,
}:
Expand All @@ -21,18 +19,7 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-UEUK8GBkyzUv2J6uTjRdyoIiHVKLDYYj1aOnl+rgzmk=";

buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
CoreFoundation
IOKit
SystemConfiguration
]
);

nativeInstallCheckInputs = [
versionCheckHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;

Expand Down
32 changes: 15 additions & 17 deletions pkgs/by-name/c2/c2patool/package.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, libiconv
, darwin
, openssl
, pkg-config
, git
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
libiconv,
openssl,
pkg-config,
git,
}:
rustPlatform.buildRustPackage rec {
pname = "c2patool";
Expand All @@ -28,13 +28,8 @@ rustPlatform.buildRustPackage rec {
git
pkg-config
];
buildInputs = [
openssl
] ++ lib.optional stdenv.hostPlatform.isDarwin [
libiconv
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.Carbon
];

buildInputs = [ openssl ];

checkFlags = [
# These tests rely on additional executables to be compiled to "target/debug/".
Expand All @@ -59,7 +54,10 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
description = "Command line tool for displaying and adding C2PA manifests";
homepage = "https://github.com/contentauth/c2patool";
license = with licenses; [ asl20 /* or */ mit ];
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [ ok-nick ];
mainProgram = "c2patool";
};
Expand Down
Loading