treewide: replace stdenv.is with stdenv.hostPlatform.is

In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
This commit is contained in:
Artturin 2024-09-24 18:50:49 +03:00
parent aaa7fb5840
commit e0464e4788
4283 changed files with 8137 additions and 8137 deletions

View File

@ -47,7 +47,7 @@
checks = forAllSystems (system: { checks = forAllSystems (system: {
tarball = jobs.${system}.tarball; tarball = jobs.${system}.tarball;
# Exclude power64 due to "libressl is not available on the requested hostPlatform" with hostPlatform being power64 # Exclude power64 due to "libressl is not available on the requested hostPlatform" with hostPlatform being power64
} // lib.optionalAttrs (self.legacyPackages.${system}.stdenv.isLinux && !self.legacyPackages.${system}.targetPlatform.isPower64) { } // lib.optionalAttrs (self.legacyPackages.${system}.stdenv.hostPlatform.isLinux && !self.legacyPackages.${system}.targetPlatform.isPower64) {
# Test that ensures that the nixosSystem function can accept a lib argument # Test that ensures that the nixosSystem function can accept a lib argument
# Note: prefer not to extend or modify `lib`, especially if you want to share reusable modules # Note: prefer not to extend or modify `lib`, especially if you want to share reusable modules
# alternatives include: `import` a file, or put a custom library in an option or in `_module.args.<libname>` # alternatives include: `import` a file, or put a custom library in an option or in `_module.args.<libname>`

View File

@ -33,7 +33,7 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" {
nativeBuildInputs = [ nativeBuildInputs = [
nix nix
pkgs.gitMinimal pkgs.gitMinimal
] ++ lib.optional pkgs.stdenv.isLinux pkgs.inotify-tools; ] ++ lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.inotify-tools;
strictDeps = true; strictDeps = true;
} '' } ''
datadir="${nix}/share" datadir="${nix}/share"

View File

@ -13,5 +13,5 @@ mkShell {
clippy clippy
rustfmt rustfmt
] ]
++ lib.optional stdenv.isDarwin pkgs.libiconv; ++ lib.optional stdenv.hostPlatform.isDarwin pkgs.libiconv;
} }

View File

@ -52,7 +52,7 @@ let
${lib.optionalString (pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) '' ${lib.optionalString (pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) ''
<!-- Pre-generated font caches --> <!-- Pre-generated font caches -->
<cachedir>${cache}</cachedir> <cachedir>${cache}</cachedir>
${lib.optionalString (pkgs.stdenv.isx86_64 && cfg.cache32Bit) '' ${lib.optionalString (pkgs.stdenv.hostPlatform.isx86_64 && cfg.cache32Bit) ''
<cachedir>${cache32}</cachedir> <cachedir>${cache32}</cachedir>
''} ''}
''} ''}

View File

@ -32,7 +32,7 @@ in {
config = { config = {
assertions = [ assertions = [
{ assertion = isNull config.environment.ldso32 || pkgs.stdenv.isx86_64; { assertion = isNull config.environment.ldso32 || pkgs.stdenv.hostPlatform.isx86_64;
message = "Option environment.ldso32 currently only works on x86_64."; message = "Option environment.ldso32 currently only works on x86_64.";
} }
]; ];
@ -44,7 +44,7 @@ in {
"d /${libDir} 0755 root root - -" "d /${libDir} 0755 root root - -"
"L+ /${libDir}/${ldsoBasename} - - - - ${config.environment.ldso}" "L+ /${libDir}/${ldsoBasename} - - - - ${config.environment.ldso}"
] ]
) ++ optionals pkgs.stdenv.isx86_64 ( ) ++ optionals pkgs.stdenv.hostPlatform.isx86_64 (
if isNull config.environment.ldso32 then [ if isNull config.environment.ldso32 then [
"r /${libDir32}/${ldsoBasename32} - - - - -" "r /${libDir32}/${ldsoBasename32} - - - - -"
] else [ ] else [

View File

@ -12,7 +12,7 @@ let
# Forces 32bit pulseaudio and alsa-plugins to be built/supported for apps # Forces 32bit pulseaudio and alsa-plugins to be built/supported for apps
# using 32bit alsa on 64bit linux. # using 32bit alsa on 64bit linux.
enable32BitAlsaPlugins = cfg.support32Bit && pkgs.stdenv.isx86_64 && (pkgs.pkgsi686Linux.alsa-lib != null && pkgs.pkgsi686Linux.libpulseaudio != null); enable32BitAlsaPlugins = cfg.support32Bit && pkgs.stdenv.hostPlatform.isx86_64 && (pkgs.pkgsi686Linux.alsa-lib != null && pkgs.pkgsi686Linux.libpulseaudio != null);
myConfigFile = myConfigFile =

View File

@ -49,7 +49,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.ldso = mkDefault stub-ld; environment.ldso = mkDefault stub-ld;
environment.ldso32 = mkIf pkgs.stdenv.isx86_64 (mkDefault stub-ld32); environment.ldso32 = mkIf pkgs.stdenv.hostPlatform.isx86_64 (mkDefault stub-ld32);
}; };
meta.maintainers = with lib.maintainers; [ tejing ]; meta.maintainers = with lib.maintainers; [ tejing ];

View File

@ -100,7 +100,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
assertions = [ assertions = [
{ {
assertion = cfg.enable32Bit -> pkgs.stdenv.isx86_64; assertion = cfg.enable32Bit -> pkgs.stdenv.hostPlatform.isx86_64;
message = "`hardware.graphics.enable32Bit` only makes sense on a 64-bit system."; message = "`hardware.graphics.enable32Bit` only makes sense on a 64-bit system.";
} }
{ {
@ -112,7 +112,7 @@ in
systemd.tmpfiles.settings.graphics-driver = { systemd.tmpfiles.settings.graphics-driver = {
"/run/opengl-driver"."L+".argument = toString driversEnv; "/run/opengl-driver"."L+".argument = toString driversEnv;
"/run/opengl-driver-32" = "/run/opengl-driver-32" =
if pkgs.stdenv.isi686 then if pkgs.stdenv.hostPlatform.isi686 then
{ "L+".argument = "opengl-driver"; } { "L+".argument = "opengl-driver"; }
else if cfg.enable32Bit then else if cfg.enable32Bit then
{ "L+".argument = toString driversEnv32; } { "L+".argument = toString driversEnv32; }

View File

@ -52,7 +52,7 @@ in
# VMware support. # VMware support.
"mptspi" "vmxnet3" "vsock" "mptspi" "vmxnet3" "vsock"
] ++ lib.optional platform.isx86 "vmw_balloon" ] ++ lib.optional platform.isx86 "vmw_balloon"
++ lib.optionals (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ ++ lib.optionals (pkgs.stdenv.hostPlatform.isi686 || pkgs.stdenv.hostPlatform.isx86_64) [
"vmw_vmci" "vmwgfx" "vmw_vsock_vmci_transport" "vmw_vmci" "vmwgfx" "vmw_vsock_vmci_transport"
# Hyper-V support. # Hyper-V support.
@ -68,7 +68,7 @@ in
# Broadcom # Broadcom
"vc4" "vc4"
] ++ lib.optionals pkgs.stdenv.isAarch64 [ ] ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch64 [
# Most of the following falls into two categories: # Most of the following falls into two categories:
# - early KMS / early display # - early KMS / early display
# - early storage (e.g. USB) support # - early storage (e.g. USB) support

View File

@ -8,7 +8,7 @@ let
pcmPlugin = cfg.jackd.enable && cfg.alsa.enable; pcmPlugin = cfg.jackd.enable && cfg.alsa.enable;
loopback = cfg.jackd.enable && cfg.loopback.enable; loopback = cfg.jackd.enable && cfg.loopback.enable;
enable32BitAlsaPlugins = cfg.alsa.support32Bit && pkgs.stdenv.isx86_64 && pkgs.pkgsi686Linux.alsa-lib != null; enable32BitAlsaPlugins = cfg.alsa.support32Bit && pkgs.stdenv.hostPlatform.isx86_64 && pkgs.pkgsi686Linux.alsa-lib != null;
umaskNeeded = versionOlder cfg.jackd.package.version "1.9.12"; umaskNeeded = versionOlder cfg.jackd.package.version "1.9.12";
bridgeNeeded = versionAtLeast cfg.jackd.package.version "1.9.12"; bridgeNeeded = versionAtLeast cfg.jackd.package.version "1.9.12";

View File

@ -19,7 +19,7 @@ let
''; '';
cfg = config.services.pipewire; cfg = config.services.pipewire;
enable32BitAlsaPlugins = cfg.alsa.support32Bit enable32BitAlsaPlugins = cfg.alsa.support32Bit
&& pkgs.stdenv.isx86_64 && pkgs.stdenv.hostPlatform.isx86_64
&& pkgs.pkgsi686Linux.pipewire != null; && pkgs.pkgsi686Linux.pipewire != null;
# The package doesn't output to $out/lib/pipewire directly so that the # The package doesn't output to $out/lib/pipewire directly so that the

View File

@ -80,7 +80,7 @@ in {
PrivateUsers = true; PrivateUsers = true;
SupplementaryGroups = lib.optional (allowSystemdJournal) "systemd-journal"; SupplementaryGroups = lib.optional (allowSystemdJournal) "systemd-journal";
} // (optionalAttrs (!pkgs.stdenv.isAarch64) { # FIXME: figure out why this breaks on aarch64 } // (optionalAttrs (!pkgs.stdenv.hostPlatform.isAarch64) { # FIXME: figure out why this breaks on aarch64
SystemCallFilter = "@system-service"; SystemCallFilter = "@system-service";
}); });
}; };

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.services.mame; cfg = config.services.mame;
mame = "mame${lib.optionalString pkgs.stdenv.is64bit "64"}"; mame = "mame${lib.optionalString pkgs.stdenv.hostPlatform.is64bit "64"}";
in in
{ {
options = { options = {

View File

@ -71,7 +71,7 @@ in
- nixpkgs.config.cudaSupport - nixpkgs.config.cudaSupport
- nixpkgs.config.rocmSupport - nixpkgs.config.rocmSupport
- if stdenv.isDarwin && stdenv.isAarch64 - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
IFF multiple acceleration methods are found to be enabled or if you IFF multiple acceleration methods are found to be enabled or if you
haven't set either `cudaSupport or rocmSupport` you will have to haven't set either `cudaSupport or rocmSupport` you will have to

View File

@ -274,7 +274,7 @@ in
CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW CAP_SETUID"; CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW CAP_SETUID";
ProtectSystem = true; ProtectSystem = true;
# Doesn't work on i686, causing service to fail # Doesn't work on i686, causing service to fail
MemoryDenyWriteExecute = !pkgs.stdenv.isi686; MemoryDenyWriteExecute = !pkgs.stdenv.hostPlatform.isi686;
ProtectHome = true; ProtectHome = true;
PrivateTmp = true; PrivateTmp = true;
}; };

View File

@ -603,8 +603,8 @@ in
reuseport = mkOption { reuseport = mkOption {
type = types.bool; type = types.bool;
default = pkgs.stdenv.isLinux; default = pkgs.stdenv.hostPlatform.isLinux;
defaultText = literalExpression "pkgs.stdenv.isLinux"; defaultText = literalExpression "pkgs.stdenv.hostPlatform.isLinux";
description = '' description = ''
Whether to enable SO_REUSEPORT on all used sockets. This lets multiple Whether to enable SO_REUSEPORT on all used sockets. This lets multiple
processes bind to the same port. This speeds up operation especially processes bind to the same port. This speeds up operation especially

View File

@ -518,7 +518,7 @@ in
libva-utils libva-utils
procps procps
radeontop radeontop
] ++ lib.optionals (!stdenv.isAarch64) [ ] ++ lib.optionals (!stdenv.hostPlatform.isAarch64) [
# not available on aarch64-linux # not available on aarch64-linux
intel-gpu-tools intel-gpu-tools
]; ];

View File

@ -327,7 +327,7 @@ let
setHostId = optionalString (config.networking.hostId != null) '' setHostId = optionalString (config.networking.hostId != null) ''
hi="${config.networking.hostId}" hi="${config.networking.hostId}"
${if pkgs.stdenv.isBigEndian then '' ${if pkgs.stdenv.hostPlatform.isBigEndian then ''
echo -ne "\x''${hi:0:2}\x''${hi:2:2}\x''${hi:4:2}\x''${hi:6:2}" > /etc/hostid echo -ne "\x''${hi:0:2}\x''${hi:2:2}\x''${hi:4:2}\x''${hi:6:2}" > /etc/hostid
'' else '' '' else ''
echo -ne "\x''${hi:6:2}\x''${hi:4:2}\x''${hi:2:2}\x''${hi:0:2}" > /etc/hostid echo -ne "\x''${hi:6:2}\x''${hi:4:2}\x''${hi:2:2}\x''${hi:0:2}" > /etc/hostid

View File

@ -679,7 +679,7 @@ in
# Increase numeric PID range (set directly instead of copying a one-line file from systemd) # Increase numeric PID range (set directly instead of copying a one-line file from systemd)
# https://github.com/systemd/systemd/pull/12226 # https://github.com/systemd/systemd/pull/12226
boot.kernel.sysctl."kernel.pid_max" = mkIf pkgs.stdenv.is64bit (lib.mkDefault 4194304); boot.kernel.sysctl."kernel.pid_max" = mkIf pkgs.stdenv.hostPlatform.is64bit (lib.mkDefault 4194304);
services.logrotate.settings = { services.logrotate.settings = {
"/var/log/btmp" = mapAttrs (_: mkDefault) { "/var/log/btmp" = mapAttrs (_: mkDefault) {

View File

@ -438,7 +438,7 @@ let
hostidFile = pkgs.runCommand "gen-hostid" { preferLocalBuild = true; } '' hostidFile = pkgs.runCommand "gen-hostid" { preferLocalBuild = true; } ''
hi="${cfg.hostId}" hi="${cfg.hostId}"
${if pkgs.stdenv.isBigEndian then '' ${if pkgs.stdenv.hostPlatform.isBigEndian then ''
echo -ne "\x''${hi:0:2}\x''${hi:2:2}\x''${hi:4:2}\x''${hi:6:2}" > $out echo -ne "\x''${hi:0:2}\x''${hi:2:2}\x''${hi:4:2}\x''${hi:6:2}" > $out
'' else '' '' else ''
echo -ne "\x''${hi:6:2}\x''${hi:4:2}\x''${hi:2:2}\x''${hi:0:2}" > $out echo -ne "\x''${hi:6:2}\x''${hi:4:2}\x''${hi:2:2}\x''${hi:0:2}" > $out

View File

@ -244,7 +244,7 @@ in
}; };
assertions = [ assertions = [
{ assertion = cfg.enableNvidia && pkgs.stdenv.isx86_64 -> config.hardware.graphics.enable32Bit or false; { assertion = cfg.enableNvidia && pkgs.stdenv.hostPlatform.isx86_64 -> config.hardware.graphics.enable32Bit or false;
message = "Option enableNvidia on x86_64 requires 32-bit support libraries"; message = "Option enableNvidia on x86_64 requires 32-bit support libraries";
}]; }];

View File

@ -605,7 +605,7 @@ in
config = lib.modules.mkIf cfg.enable { config = lib.modules.mkIf cfg.enable {
assertions = [ assertions = [
{ {
assertion = pkgs.stdenv.isx86_64; assertion = pkgs.stdenv.hostPlatform.isx86_64;
message = "Xen is currently not supported on ${pkgs.stdenv.hostPlatform.system}."; message = "Xen is currently not supported on ${pkgs.stdenv.hostPlatform.system}.";
} }
{ {

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "filesender"; name = "filesender";
meta = { meta = {
maintainers = with lib.maintainers; [ nhnn ]; maintainers = with lib.maintainers; [ nhnn ];
broken = pkgs.stdenv.isAarch64; # selenium.common.exceptions.WebDriverException: Message: Unsupported platform/architecture combination: linux/aarch64 broken = pkgs.stdenv.hostPlatform.isAarch64; # selenium.common.exceptions.WebDriverException: Message: Unsupported platform/architecture combination: linux/aarch64
}; };
nodes.filesender = { ... }: let nodes.filesender = { ... }: let

View File

@ -24,7 +24,7 @@ let
nodes = { "${name}" = machine; }; nodes = { "${name}" = machine; };
meta.maintainers = with pkgs.lib.maintainers; [ kirillrdy ]; meta.maintainers = with pkgs.lib.maintainers; [ kirillrdy ];
# time-out on ofborg # time-out on ofborg
meta.broken = pkgs.stdenv.isAarch64; meta.broken = pkgs.stdenv.hostPlatform.isAarch64;
enableOCR = true; enableOCR = true;
testScript = '' testScript = ''

View File

@ -6,7 +6,7 @@ makeInstalledTest {
testConfig = { testConfig = {
# Tests allocate a lot of memory trying to exploit a CVE # Tests allocate a lot of memory trying to exploit a CVE
# but qemu-system-i386 has a 2047M memory limit # but qemu-system-i386 has a 2047M memory limit
virtualisation.memorySize = if pkgs.stdenv.isi686 then 2047 else 4096; virtualisation.memorySize = if pkgs.stdenv.hostPlatform.isi686 then 2047 else 4096;
}; };
testRunnerFlags = [ "--timeout" "1800" ]; testRunnerFlags = [ "--timeout" "1800" ];

View File

@ -189,7 +189,7 @@ import ../make-test-python.nix (
m.start() m.start()
m.wait_for_unit("k3s") m.wait_for_unit("k3s")
is_aarch64 = "${toString pkgs.stdenv.isAarch64}" == "1" is_aarch64 = "${toString pkgs.stdenv.hostPlatform.isAarch64}" == "1"
# wait for the agent to show up # wait for the agent to show up
server.wait_until_succeeds("k3s kubectl get node agent") server.wait_until_succeeds("k3s kubectl get node agent")

View File

@ -30,7 +30,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
testScript = let testScript = let
nixosInstallISO = (import ../release.nix {}).iso_minimal.${pkgs.stdenv.hostPlatform.system}; nixosInstallISO = (import ../release.nix {}).iso_minimal.${pkgs.stdenv.hostPlatform.system};
virshShutdownCmd = if pkgs.stdenv.isx86_64 then "shutdown" else "destroy"; virshShutdownCmd = if pkgs.stdenv.hostPlatform.isx86_64 then "shutdown" else "destroy";
in '' in ''
start_all() start_all()

View File

@ -40,7 +40,7 @@ let
}; };
environment.systemPackages = [ testers.testPlay pkgs.pavucontrol ] environment.systemPackages = [ testers.testPlay pkgs.pavucontrol ]
++ lib.optional pkgs.stdenv.isx86_64 testers.testPlay32; ++ lib.optional pkgs.stdenv.hostPlatform.isx86_64 testers.testPlay32;
} // lib.optionalAttrs systemWide { } // lib.optionalAttrs systemWide {
users.users.alice.extraGroups = [ "pulse-access" ]; users.users.alice.extraGroups = [ "pulse-access" ];
systemd.services.pulseaudio.wantedBy = [ "multi-user.target" ]; systemd.services.pulseaudio.wantedBy = [ "multi-user.target" ];
@ -54,7 +54,7 @@ let
machine.send_chars("testPlay \n") machine.send_chars("testPlay \n")
machine.wait_for_file("/tmp/testPlay_success") machine.wait_for_file("/tmp/testPlay_success")
${lib.optionalString pkgs.stdenv.isx86_64 '' ${lib.optionalString pkgs.stdenv.hostPlatform.isx86_64 ''
machine.send_chars("testPlay32 \n") machine.send_chars("testPlay32 \n")
machine.wait_for_file("/tmp/testPlay32_success") machine.wait_for_file("/tmp/testPlay32_success")
''} ''}

View File

@ -18,7 +18,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
libDir = pkgs.stdenv.hostPlatform.libDir; libDir = pkgs.stdenv.hostPlatform.libDir;
ldsoBasename = lib.last (lib.splitString "/" pkgs.stdenv.cc.bintools.dynamicLinker); ldsoBasename = lib.last (lib.splitString "/" pkgs.stdenv.cc.bintools.dynamicLinker);
check32 = pkgs.stdenv.isx86_64; check32 = pkgs.stdenv.hostPlatform.isx86_64;
pkgs32 = pkgs.pkgsi686Linux; pkgs32 = pkgs.pkgsi686Linux;
libDir32 = pkgs32.stdenv.hostPlatform.libDir; libDir32 = pkgs32.stdenv.hostPlatform.libDir;

View File

@ -2,7 +2,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "sunshine"; name = "sunshine";
meta = { meta = {
# test is flaky on aarch64 # test is flaky on aarch64
broken = pkgs.stdenv.isAarch64; broken = pkgs.stdenv.hostPlatform.isAarch64;
maintainers = [ lib.maintainers.devusb ]; maintainers = [ lib.maintainers.devusb ];
}; };

View File

@ -43,7 +43,7 @@ let
in in
listToAttrs ( listToAttrs (
map (makeWineTest "winePackages" [ hello32 ]) variants map (makeWineTest "winePackages" [ hello32 ]) variants
++ optionals pkgs.stdenv.is64bit ++ optionals pkgs.stdenv.hostPlatform.is64bit
(map (makeWineTest "wineWowPackages" [ hello32 hello64 ]) (map (makeWineTest "wineWowPackages" [ hello32 hello64 ])
# This wayland combination times out after spending many hours. # This wayland combination times out after spending many hours.
# https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.wine.wineWowPackages-wayland.x86_64-linux # https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.wine.wineWowPackages-wayland.x86_64-linux

View File

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
taglib taglib
]; ];
postInstall = lib.optionalString stdenv.isDarwin '' postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
for file in $out/lib/ario/plugins/*.dylib; do for file in $out/lib/ario/plugins/*.dylib; do
ln -s $file $out/lib/ario/plugins/$(basename $file .dylib).so ln -s $file $out/lib/ario/plugins/$(basename $file .dylib).so
done done

View File

@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
dontUseCmakeConfigure = true; dontUseCmakeConfigure = true;
nativeBuildInputs = [ cmake pkg-config meson ninja ]; nativeBuildInputs = [ cmake pkg-config meson ninja ];
buildInputs = [ libmpdclient yaml-cpp ] buildInputs = [ libmpdclient yaml-cpp ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreFoundation ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.CoreFoundation ];
mesonFlags = [ "-Dunsupported_use_system_yamlcpp=true" ]; mesonFlags = [ "-Dunsupported_use_system_yamlcpp=true" ];

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: {
}; };
buildInputs = [ sndio ] buildInputs = [ sndio ]
++ lib.optional (!stdenv.isDarwin && !stdenv.hostPlatform.isBSD) ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isBSD)
libbsd; libbsd;
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
preBuild = '' preBuild = ''
makeFlagsArray+=("PREFIX=$out") makeFlagsArray+=("PREFIX=$out")
'' + lib.optionalString '' + lib.optionalString
(!stdenv.isDarwin && !stdenv.hostPlatform.isBSD) '' (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isBSD) ''
makeFlagsArray+=(LDADD="-lsndio -lbsd") makeFlagsArray+=(LDADD="-lsndio -lbsd")
# Fix warning about implicit declaration of function 'strlcpy' # Fix warning about implicit declaration of function 'strlcpy'

View File

@ -75,10 +75,10 @@ stdenv.mkDerivation rec {
mkdir src/private mkdir src/private
substituteInPlace scripts/build/macOS/fix_bundle.py \ substituteInPlace scripts/build/macOS/fix_bundle.py \
--replace "path.startswith('/usr/lib/')" "path.startswith('${builtins.storeDir}')" --replace "path.startswith('/usr/lib/')" "path.startswith('${builtins.storeDir}')"
'' + lib.optionalString stdenv.isLinux '' '' + lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace libraries/lib-files/FileNames.cpp \ substituteInPlace libraries/lib-files/FileNames.cpp \
--replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h --replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h
'' + lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0") '' '' + lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0") ''
sed -z -i "s/NSAppearanceName.*systemAppearance//" src/AudacityApp.mm sed -z -i "s/NSAppearanceName.*systemAppearance//" src/AudacityApp.mm
''; '';
@ -89,7 +89,7 @@ stdenv.mkDerivation rec {
python3 python3
makeWrapper makeWrapper
wrapGAppsHook3 wrapGAppsHook3
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
linuxHeaders linuxHeaders
]; ];
@ -125,7 +125,7 @@ stdenv.mkDerivation rec {
portaudio portaudio
wavpack wavpack
wxGTK32 wxGTK32
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib # for portaudio alsa-lib # for portaudio
at-spi2-core at-spi2-core
dbus dbus
@ -138,7 +138,7 @@ stdenv.mkDerivation rec {
libsepol libsepol
libuuid libuuid
util-linux util-linux
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit AppKit
CoreAudioKit # for portaudio CoreAudioKit # for portaudio
libpng libpng
@ -176,13 +176,13 @@ stdenv.mkDerivation rec {
# Replace audacity's wrapper, to: # Replace audacity's wrapper, to:
# - put it in the right place, it shouldn't be in "$out/audacity" # - put it in the right place, it shouldn't be in "$out/audacity"
# - Add the ffmpeg dynamic dependency # - Add the ffmpeg dynamic dependency
postFixup = lib.optionalString stdenv.isLinux '' postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
wrapProgram "$out/bin/audacity" \ wrapProgram "$out/bin/audacity" \
"''${gappsWrapperArgs[@]}" \ "''${gappsWrapperArgs[@]}" \
--prefix LD_LIBRARY_PATH : "$out/lib/audacity":${lib.makeLibraryPath [ ffmpeg_7 ]} \ --prefix LD_LIBRARY_PATH : "$out/lib/audacity":${lib.makeLibraryPath [ ffmpeg_7 ]} \
--suffix AUDACITY_MODULES_PATH : "$out/lib/audacity/modules" \ --suffix AUDACITY_MODULES_PATH : "$out/lib/audacity/modules" \
--suffix AUDACITY_PATH : "$out/share/audacity" --suffix AUDACITY_PATH : "$out/share/audacity"
'' + lib.optionalString stdenv.isDarwin '' '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/{Applications,bin} mkdir -p $out/{Applications,bin}
mv $out/Audacity.app $out/Applications/ mv $out/Audacity.app $out/Applications/
makeWrapper $out/Applications/Audacity.app/Contents/MacOS/Audacity $out/bin/audacity makeWrapper $out/Applications/Audacity.app/Contents/MacOS/Audacity $out/bin/audacity

View File

@ -89,6 +89,6 @@ stdenv.mkDerivation rec {
mainProgram = "Cardinal"; mainProgram = "Cardinal";
platforms = lib.platforms.all; platforms = lib.platforms.all;
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs # never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
}; };
} }

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" "INSTALL=install" ]; installFlags = [ "PREFIX=$(out)" "INSTALL=install" ];
buildInputs = [] buildInputs = []
++ lib.optional stdenv.isDarwin IOKit; ++ lib.optional stdenv.hostPlatform.isDarwin IOKit;
meta = with lib; { meta = with lib; {
homepage = "http://linukz.org/cd-discid.shtml"; homepage = "http://linukz.org/cd-discid.shtml";

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
}; };
patches = lib.optionals stdenv.isDarwin [ patches = lib.optionals stdenv.hostPlatform.isDarwin [
(fetchpatch { (fetchpatch {
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch"; url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch";
sha256 = "0hq3lvfr0h1m3p0r33jij0s1aspiqlpy533rwv19zrfllb39qvr8"; sha256 = "0hq3lvfr0h1m3p0r33jij0s1aspiqlpy533rwv19zrfllb39qvr8";
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
autoreconfHook autoreconfHook
]; ];
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
Carbon Carbon
IOKit IOKit
]; ];

View File

@ -12,16 +12,16 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ flex bison which ] nativeBuildInputs = [ flex bison which ]
++ lib.optionals stdenv.isDarwin [ DarwinTools xcbuild ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ DarwinTools xcbuild ];
buildInputs = [ libsndfile ] buildInputs = [ libsndfile ]
++ lib.optional (!stdenv.isDarwin) alsa-lib ++ lib.optional (!stdenv.hostPlatform.isDarwin) alsa-lib
++ lib.optionals stdenv.isDarwin [ AppKit Carbon CoreAudio CoreMIDI CoreServices Kernel MultitouchSupport ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit Carbon CoreAudio CoreMIDI CoreServices Kernel MultitouchSupport ];
patches = [ ./darwin-limits.patch ]; patches = [ ./darwin-limits.patch ];
makeFlags = [ "-C src" "DESTDIR=$(out)/bin" ]; makeFlags = [ "-C src" "DESTDIR=$(out)/bin" ];
buildFlags = [ (if stdenv.isDarwin then "mac" else "linux-alsa") ]; buildFlags = [ (if stdenv.hostPlatform.isDarwin then "mac" else "linux-alsa") ];
meta = with lib; { meta = with lib; {
description = "Programming language for real-time sound synthesis and music creation"; description = "Programming language for real-time sound synthesis and music creation";

View File

@ -1,15 +1,15 @@
{ config, lib, stdenv, fetchFromGitHub, ncurses, pkg-config { config, lib, stdenv, fetchFromGitHub, ncurses, pkg-config
, libiconv, CoreAudio, AudioUnit, VideoToolbox , libiconv, CoreAudio, AudioUnit, VideoToolbox
, alsaSupport ? stdenv.isLinux, alsa-lib ? null , alsaSupport ? stdenv.hostPlatform.isLinux, alsa-lib ? null
# simple fallback for everyone else # simple fallback for everyone else
, aoSupport ? !stdenv.isLinux, libao ? null , aoSupport ? !stdenv.hostPlatform.isLinux, libao ? null
, jackSupport ? false, libjack ? null , jackSupport ? false, libjack ? null
, samplerateSupport ? jackSupport, libsamplerate ? null , samplerateSupport ? jackSupport, libsamplerate ? null
, ossSupport ? false, alsa-oss ? null , ossSupport ? false, alsa-oss ? null
, pulseaudioSupport ? config.pulseaudio or false, libpulseaudio ? null , pulseaudioSupport ? config.pulseaudio or false, libpulseaudio ? null
, sndioSupport ? false, sndio ? null , sndioSupport ? false, sndio ? null
, mprisSupport ? stdenv.isLinux, systemd ? null , mprisSupport ? stdenv.hostPlatform.isLinux, systemd ? null
# TODO: add these # TODO: add these
#, artsSupport #, artsSupport
@ -103,7 +103,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ ncurses ] buildInputs = [ ncurses ]
++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit VideoToolbox ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv CoreAudio AudioUnit VideoToolbox ]
++ lib.flatten (lib.concatMap (a: a.deps) opts); ++ lib.flatten (lib.concatMap (a: a.deps) opts);
prefixKey = "prefix="; prefixKey = "prefix=";

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, curl, libnotify { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, curl, libnotify
, gdk-pixbuf, libnotifySupport ? stdenv.isLinux, debug ? false }: , gdk-pixbuf, libnotifySupport ? stdenv.hostPlatform.isLinux, debug ? false }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cmusfm"; pname = "cmusfm";

View File

@ -31,21 +31,21 @@ stdenv.mkDerivation rec {
}; };
cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp
++ lib.optional stdenv.isDarwin "-DCS_FRAMEWORK_DEST=${placeholder "out"}/lib" ++ lib.optional stdenv.hostPlatform.isDarwin "-DCS_FRAMEWORK_DEST=${placeholder "out"}/lib"
# Ignore gettext in CMAKE_PREFIX_PATH on cross to prevent find_program picking up the wrong gettext # Ignore gettext in CMAKE_PREFIX_PATH on cross to prevent find_program picking up the wrong gettext
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DCMAKE_IGNORE_PATH=${lib.getBin gettext}/bin"; ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DCMAKE_IGNORE_PATH=${lib.getBin gettext}/bin";
nativeBuildInputs = [ cmake flex bison gettext ]; nativeBuildInputs = [ cmake flex bison gettext ];
buildInputs = [ libsndfile libsamplerate boost ] buildInputs = [ libsndfile libsamplerate boost ]
++ lib.optionals stdenv.isDarwin [ ++ lib.optionals stdenv.hostPlatform.isDarwin [
Accelerate AudioUnit CoreAudio CoreMIDI portaudio Accelerate AudioUnit CoreAudio CoreMIDI portaudio
] ++ lib.optionals stdenv.isLinux (builtins.filter (optional: optional != null) [ ] ++ lib.optionals stdenv.hostPlatform.isLinux (builtins.filter (optional: optional != null) [
alsa-lib libpulseaudio libjack2 alsa-lib libpulseaudio libjack2
liblo ladspa-sdk fluidsynth eigen liblo ladspa-sdk fluidsynth eigen
curl tcltk fltk curl tcltk fltk
]); ]);
postInstall = lib.optional stdenv.isDarwin '' postInstall = lib.optional stdenv.hostPlatform.isDarwin ''
mkdir -p $out/Library/Frameworks mkdir -p $out/Library/Frameworks
ln -s $out/lib/CsoundLib64.framework $out/Library/Frameworks ln -s $out/lib/CsoundLib64.framework $out/Library/Frameworks
''; '';

View File

@ -50,7 +50,7 @@ python3Packages.buildPythonApplication rec {
gobject-introspection gobject-introspection
wrapGAppsHook4 wrapGAppsHook4
blueprint-compiler blueprint-compiler
] ++ lib.optional stdenv.isDarwin gtk4; # for gtk4-update-icon-cache ] ++ lib.optional stdenv.hostPlatform.isDarwin gtk4; # for gtk4-update-icon-cache
buildInputs = [ buildInputs = [
librsvg librsvg

View File

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
cmake cmake
pkg-config pkg-config
wrapQtAppsHook wrapQtAppsHook
] ++ lib.optional stdenv.isLinux copyDesktopItems; ] ++ lib.optional stdenv.hostPlatform.isLinux copyDesktopItems;
buildInputs = [ buildInputs = [
qtbase qtbase
@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
installPhase = installPhase =
'' ''
runHook preInstall runHook preInstall
'' + lib.optionalString stdenv.isDarwin '' '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/Applications mkdir -p $out/Applications
mv "easyaudiosync.app" "Easy Audio Sync.app" mv "easyaudiosync.app" "Easy Audio Sync.app"
cp -r "Easy Audio Sync.app" $out/Applications cp -r "Easy Audio Sync.app" $out/Applications
'' + lib.optionalString stdenv.isLinux '' '' + lib.optionalString stdenv.hostPlatform.isLinux ''
install -Dm755 easyaudiosync $out/bin/easyaudiosync install -Dm755 easyaudiosync $out/bin/easyaudiosync
for RES in 48 64 128 256; do for RES in 48 64 128 256; do

View File

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
''; '';
meta = { meta = {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
description = "LV2 EQ plugins and more, with 64 bit processing"; description = "LV2 EQ plugins and more, with 64 bit processing";
longDescription = '' longDescription = ''
Up to 10-Bands parametric equalizer with mono and stereo versions. Up to 10-Bands parametric equalizer with mono and stereo versions.

View File

@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
buildInputs = lib.optional mbrolaSupport mbrola buildInputs = lib.optional mbrolaSupport mbrola
++ lib.optional pcaudiolibSupport pcaudiolib ++ lib.optional pcaudiolibSupport pcaudiolib
++ lib.optional sonicSupport sonic ++ lib.optional sonicSupport sonic
++ lib.optionals stdenv.isDarwin [ ++ lib.optionals stdenv.hostPlatform.isDarwin [
CoreAudio CoreAudio
AudioToolbox AudioToolbox
AudioUnit AudioUnit
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
# touch ChangeLog to avoid below error on darwin: # touch ChangeLog to avoid below error on darwin:
# Makefile.am: error: required file './ChangeLog.md' not found # Makefile.am: error: required file './ChangeLog.md' not found
preConfigure = lib.optionalString stdenv.isDarwin '' preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
touch ChangeLog touch ChangeLog
'' + '' '' + ''
./autogen.sh ./autogen.sh
@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
--replace '../src/espeak-ng --compile' "${lib.getExe buildPackages.espeak-ng} --compile" --replace '../src/espeak-ng --compile' "${lib.getExe buildPackages.espeak-ng} --compile"
''; '';
postInstall = lib.optionalString stdenv.isLinux '' postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/espeak-ng)" $out/bin/speak-ng patchelf --set-rpath "$(patchelf --print-rpath $out/bin/espeak-ng)" $out/bin/speak-ng
wrapProgram $out/bin/espeak-ng \ wrapProgram $out/bin/espeak-ng \
--set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib

View File

@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ]; nativeBuildInputs = [ buildPackages.stdenv.cc pkg-config cmake ];
buildInputs = [ glib libsndfile libjack2 ] buildInputs = [ glib libsndfile libjack2 ]
++ lib.optionals stdenv.isLinux [ alsa-lib libpulseaudio ] ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib libpulseaudio ]
++ lib.optionals stdenv.isDarwin [ AppKit AudioUnit CoreAudio CoreMIDI CoreServices ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit AudioUnit CoreAudio CoreMIDI CoreServices ];
cmakeFlags = [ cmakeFlags = [
"-Denable-framework=off" "-Denable-framework=off"

View File

@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 ] buildInputs = [ SDL2 ]
++ lib.optional stdenv.isLinux alsa-lib ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
++ lib.optionals stdenv.isDarwin [ ++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv libiconv
CoreAudio CoreAudio
CoreMIDI CoreMIDI

View File

@ -25,9 +25,9 @@ rustPlatform.buildRustPackage rec {
rustPlatform.bindgenHook rustPlatform.bindgenHook
]; ];
buildInputs = lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AudioUnit darwin.apple_sdk.frameworks.AudioUnit
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib alsa-lib
]; ];

View File

@ -75,6 +75,6 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = lib.teams.gnome.members; maintainers = lib.teams.gnome.members;
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/gnome-podcasts.x86_64-darwin broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/gnome-podcasts.x86_64-darwin
}; };
} }

View File

@ -37,7 +37,7 @@ buildGoModule rec {
buildInputs = [ buildInputs = [
flac flac
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib alsa-lib
]; ];

View File

@ -41,8 +41,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config imagemagick libicns makeWrapper ]; nativeBuildInputs = [ cmake pkg-config imagemagick libicns makeWrapper ];
buildInputs = [ fftwFloat zlib wavpack wxGTK32 yaml-cpp ] buildInputs = [ fftwFloat zlib wavpack wxGTK32 yaml-cpp ]
++ lib.optionals stdenv.isLinux [ alsa-lib udev ] ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib udev ]
++ lib.optionals stdenv.isDarwin [ Cocoa ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ]
++ lib.optional jackaudioSupport libjack2; ++ lib.optional jackaudioSupport libjack2;
cmakeFlags = lib.optionals (!jackaudioSupport) [ cmakeFlags = lib.optionals (!jackaudioSupport) [
@ -52,9 +52,9 @@ stdenv.mkDerivation rec {
"-DINSTALL_DEPEND=OFF" "-DINSTALL_DEPEND=OFF"
] ++ lib.optional (!includeDemo) "-DINSTALL_DEMO=OFF"; ] ++ lib.optional (!includeDemo) "-DINSTALL_DEMO=OFF";
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-DTARGET_OS_IPHONE=0";
postInstall = lib.optionalString stdenv.isDarwin '' postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/{Applications,bin,lib} mkdir -p $out/{Applications,bin,lib}
mv $out/GrandOrgue.app $out/Applications/ mv $out/GrandOrgue.app $out/Applications/
for lib in $out/Applications/GrandOrgue.app/Contents/Frameworks/lib*; do for lib in $out/Applications/GrandOrgue.app/Contents/Frameworks/lib*; do

View File

@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = {
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
description = "GStreamer based command line media player"; description = "GStreamer based command line media player";
homepage = "https://space.twc.de/~stefan/gst123.php"; homepage = "https://space.twc.de/~stefan/gst123.php";
license = lib.licenses.lgpl2Plus; license = lib.licenses.lgpl2Plus;

View File

@ -66,6 +66,6 @@ stdenv.mkDerivation (finalAttrs: {
platforms = platforms.all; platforms = platforms.all;
mainProgram = "hivelytracker"; mainProgram = "hivelytracker";
maintainers = with maintainers; [ fgaz ]; maintainers = with maintainers; [ fgaz ];
broken = stdenv.isDarwin; # TODO: try to use xcbuild broken = stdenv.hostPlatform.isDarwin; # TODO: try to use xcbuild
}; };
}) })

View File

@ -80,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {
''; '';
meta = { meta = {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
description = "Audio effect processor for PipeWire clients"; description = "Audio effect processor for PipeWire clients";
mainProgram = "jamesdsp"; mainProgram = "jamesdsp";
homepage = "https://github.com/Audio4Linux/JDSP4Linux"; homepage = "https://github.com/Audio4Linux/JDSP4Linux";

View File

@ -21,7 +21,7 @@ buildGoModule rec {
buildInputs = [ alsa-lib ]; buildInputs = [ alsa-lib ];
meta = with lib; { meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
description = "Jellyfin terminal client"; description = "Jellyfin terminal client";
longDescription = '' longDescription = ''
Terminal music player, works with Jellyfin (>= 10.6) , Emby (>= 4.4), and Terminal music player, works with Jellyfin (>= 10.6) , Emby (>= 4.4), and

View File

@ -5,7 +5,7 @@
, pkg-config , pkg-config
, stdenv , stdenv
, openssl , openssl
, withALSA ? stdenv.isLinux , withALSA ? stdenv.hostPlatform.isLinux
, alsa-lib , alsa-lib
, alsa-plugins , alsa-plugins
, withPortAudio ? false , withPortAudio ? false
@ -28,7 +28,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-tbDlWP0sUIa0W9HhdYNOvo9cGeqFemclhA7quh7f/Rw="; cargoHash = "sha256-tbDlWP0sUIa0W9HhdYNOvo9cGeqFemclhA7quh7f/Rw=";
nativeBuildInputs = [ pkg-config makeWrapper ] ++ lib.optionals stdenv.isDarwin [ nativeBuildInputs = [ pkg-config makeWrapper ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
rustPlatform.bindgenHook rustPlatform.bindgenHook
]; ];

View File

@ -28,7 +28,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config installShellFiles asciidoctor ]; nativeBuildInputs = [ pkg-config installShellFiles asciidoctor ];
buildInputs = [ sqlite ] ++ (if stdenv.isDarwin then [ buildInputs = [ sqlite ] ++ (if stdenv.hostPlatform.isDarwin then [
libiconv libiconv
Security Security
SystemConfiguration SystemConfiguration
@ -39,7 +39,7 @@ rustPlatform.buildRustPackage rec {
buildFeatures = [ buildFeatures = [
"shell_completion" "shell_completion"
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
"systemd" "systemd"
]; ];

View File

@ -20,8 +20,8 @@ stdenv.mkDerivation {
buildInputs = [ buildInputs = [
SDL SDL
] ]
++ lib.optional stdenv.isDarwin Foundation ++ lib.optional stdenv.hostPlatform.isDarwin Foundation
++ lib.optional stdenv.isLinux jack2; ++ lib.optional stdenv.hostPlatform.isLinux jack2;
patches = [ patches = [
# Remove outdated (pre-64bit) checks that would fail on modern platforms # Remove outdated (pre-64bit) checks that would fail on modern platforms
@ -32,15 +32,15 @@ stdenv.mkDerivation {
preBuild = "cd projects"; preBuild = "cd projects";
makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ] makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ]
++ lib.optionals stdenv.isLinux [ "PLATFORM=DEB" ] ++ lib.optionals stdenv.hostPlatform.isLinux [ "PLATFORM=DEB" ]
++ lib.optionals stdenv.isDarwin [ "PLATFORM=OSX" ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ "PLATFORM=OSX" ];
env.NIX_CFLAGS_COMPILE = toString ([ "-fpermissive" ] ++ env.NIX_CFLAGS_COMPILE = toString ([ "-fpermissive" ] ++
lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing"); lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing");
NIX_LDFLAGS = lib.optional stdenv.isDarwin "-framework Foundation"; NIX_LDFLAGS = lib.optional stdenv.hostPlatform.isDarwin "-framework Foundation";
installPhase = let extension = if stdenv.isDarwin then "app" else "deb-exe"; installPhase = let extension = if stdenv.hostPlatform.isDarwin then "app" else "deb-exe";
in "install -Dm555 lgpt.${extension} $out/bin/lgpt"; in "install -Dm555 lgpt.${extension} $out/bin/lgpt";
passthru.updateScript = unstableGitUpdater { passthru.updateScript = unstableGitUpdater {
@ -69,7 +69,7 @@ stdenv.mkDerivation {
maintainers = with maintainers; [ fgaz ]; maintainers = with maintainers; [ fgaz ];
platforms = platforms.all; platforms = platforms.all;
# https://github.com/NixOS/nixpkgs/pull/91766#issuecomment-688751821 # https://github.com/NixOS/nixpkgs/pull/91766#issuecomment-688751821
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
mainProgram = "lgpt"; mainProgram = "lgpt";
}; };
} }

View File

@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libGL python3 ] buildInputs = [ libGL python3 ]
++ lib.optionals stdenv.isDarwin [ Cocoa ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ]
++ lib.optionals stdenv.isLinux [ libX11 libXext libXrandr ]; ++ lib.optionals stdenv.hostPlatform.isLinux [ libX11 libXext libXrandr ];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
description = "automatic mastering plugin for live streaming, podcasts and internet radio"; description = "automatic mastering plugin for live streaming, podcasts and internet radio";
maintainers = with maintainers; [ magnetophon ]; maintainers = with maintainers; [ magnetophon ];
platforms = platforms.all; platforms = platforms.all;
broken = stdenv.isDarwin; # error: no type or protocol named 'NSPasteboardType' broken = stdenv.hostPlatform.isDarwin; # error: no type or protocol named 'NSPasteboardType'
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
mainProgram = "master_me"; mainProgram = "master_me";
}; };

View File

@ -62,7 +62,7 @@ mkDerivation rec {
meta = with lib; { meta = with lib; {
inherit (qtbase.meta) platforms; inherit (qtbase.meta) platforms;
broken = stdenv.isDarwin; # test build fails, but the project is not maintained anymore broken = stdenv.hostPlatform.isDarwin; # test build fails, but the project is not maintained anymore
description = "Cloud music integration for your desktop"; description = "Cloud music integration for your desktop";
mainProgram = "MellowPlayer"; mainProgram = "MellowPlayer";

View File

@ -36,13 +36,13 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [ buildInputs = [
glfw glfw
ffmpeg-full ffmpeg-full
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
libX11 libX11
libXrandr libXrandr
libXinerama libXinerama
libXcursor libXcursor
gtk3 gtk3
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit AppKit
Carbon Carbon
Cocoa Cocoa
@ -52,7 +52,7 @@ stdenv.mkDerivation (finalAttrs: {
Kernel Kernel
]; ];
installPhase = if stdenv.isDarwin then '' installPhase = if stdenv.hostPlatform.isDarwin then ''
mkdir -p $out/Applications $out/bin mkdir -p $out/Applications $out/bin
cp -r MIDIVisualizer.app $out/Applications/ cp -r MIDIVisualizer.app $out/Applications/
ln -s ../Applications/MIDIVisualizer.app/Contents/MacOS/MIDIVisualizer $out/bin/ ln -s ../Applications/MIDIVisualizer.app/Contents/MacOS/MIDIVisualizer $out/bin/

View File

@ -59,6 +59,6 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ fgaz ]; maintainers = with maintainers; [ fgaz ];
platforms = platforms.all; platforms = platforms.all;
broken = stdenv.isDarwin; # not attempted broken = stdenv.hostPlatform.isDarwin; # not attempted
}; };
}) })

View File

@ -25,10 +25,10 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = ["-p minidsp -p minidsp-daemon"]; cargoBuildFlags = ["-p minidsp -p minidsp-daemon"];
buildInputs = buildInputs =
lib.optionals stdenv.isLinux [libusb1] lib.optionals stdenv.hostPlatform.isLinux [libusb1]
++ lib.optionals stdenv.isDarwin [AppKit IOKit]; ++ lib.optionals stdenv.hostPlatform.isDarwin [AppKit IOKit];
nativeBuildInputs = lib.optionals stdenv.isLinux [pkg-config]; nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [pkg-config];
meta = with lib; { meta = with lib; {
description = "Control interface for some MiniDSP products"; description = "Control interface for some MiniDSP products";

View File

@ -132,7 +132,7 @@ mkDerivation rec {
"-DINSTALL_USER_UDEV_RULES=OFF" "-DINSTALL_USER_UDEV_RULES=OFF"
]; ];
postInstall = lib.optionalString stdenv.isLinux '' postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
rules="$src/res/linux/mixxx-usb-uaccess.rules" rules="$src/res/linux/mixxx-usb-uaccess.rules"
if [ ! -f "$rules" ]; then if [ ! -f "$rules" ]; then
echo "$rules is missing, must update the Nix file." echo "$rules is missing, must update the Nix file."

View File

@ -3,7 +3,7 @@
, ncurses, db , popt, libtool , ncurses, db , popt, libtool
, libiconv, CoreServices , libiconv, CoreServices
# Sound sub-systems # Sound sub-systems
, alsaSupport ? (!stdenv.isDarwin), alsa-lib , alsaSupport ? (!stdenv.hostPlatform.isDarwin), alsa-lib
, pulseSupport ? true, libpulseaudio , pulseSupport ? true, libpulseaudio
, jackSupport ? true, libjack2 , jackSupport ? true, libjack2
, ossSupport ? true , ossSupport ? true
@ -80,7 +80,7 @@ stdenv.mkDerivation {
# Misc # Misc
++ lib.optional curlSupport curl ++ lib.optional curlSupport curl
++ lib.optional samplerateSupport libsamplerate ++ lib.optional samplerateSupport libsamplerate
++ lib.optionals stdenv.isDarwin [ libiconv CoreServices ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv CoreServices ];
configureFlags = [ configureFlags = [
# Sound sub-systems # Sound sub-systems

View File

@ -33,7 +33,7 @@ pythonPackages.buildPythonApplication rec {
requests requests
setuptools setuptools
tornado tornado
] ++ lib.optional (!stdenv.isDarwin) dbus-python ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) dbus-python
); );
propagatedNativeBuildInputs = [ propagatedNativeBuildInputs = [

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
ncurses ncurses
libvorbis libvorbis
] ++ lib.optional stdenv.isDarwin SDL; ] ++ lib.optional stdenv.hostPlatform.isDarwin SDL;
env.NIX_CFLAGS_COMPILE = toString ([ env.NIX_CFLAGS_COMPILE = toString ([
"-Wno-narrowing" "-Wno-narrowing"

View File

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
libmpdclient libmpdclient
] ]
++ lib.optionals stdenv.isDarwin [ libiconv ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles

View File

@ -35,10 +35,10 @@
}: }:
let let
stdenv' = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv; stdenv' = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
# portaudio propagates Darwin frameworks. Rebuild it using the 11.0 stdenv # portaudio propagates Darwin frameworks. Rebuild it using the 11.0 stdenv
# from Qt and the 11.0 SDK frameworks. # from Qt and the 11.0 SDK frameworks.
portaudio' = if stdenv.isDarwin then portaudio.override { portaudio' = if stdenv.hostPlatform.isDarwin then portaudio.override {
stdenv = stdenv'; stdenv = stdenv';
inherit (darwin.apple_sdk_11_0.frameworks) inherit (darwin.apple_sdk_11_0.frameworks)
AudioUnit AudioUnit
@ -94,10 +94,10 @@ in stdenv'.mkDerivation (finalAttrs: {
qtWrapperArgs = [ qtWrapperArgs = [
# MuseScore JACK backend loads libjack at runtime. # MuseScore JACK backend loads libjack at runtime.
"--prefix ${lib.optionalString stdenv.isDarwin "DY"}LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libjack2 ]}" "--prefix ${lib.optionalString stdenv.hostPlatform.isDarwin "DY"}LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libjack2 ]}"
] ++ lib.optionals (stdenv.isLinux) [ ] ++ lib.optionals (stdenv.hostPlatform.isLinux) [
"--set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib" "--set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib"
] ++ lib.optionals (!stdenv.isDarwin) [ ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
# There are some issues with using the wayland backend, see: # There are some issues with using the wayland backend, see:
# https://musescore.org/en/node/321936 # https://musescore.org/en/node/321936
"--set-default QT_QPA_PLATFORM xcb" "--set-default QT_QPA_PLATFORM xcb"
@ -115,7 +115,7 @@ in stdenv'.mkDerivation (finalAttrs: {
qttools qttools
pkg-config pkg-config
ninja ninja
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
# Since https://github.com/musescore/MuseScore/pull/13847/commits/685ac998 # Since https://github.com/musescore/MuseScore/pull/13847/commits/685ac998
# GTK3 is needed for file dialogs. Fixes crash with No GSettings schemas error. # GTK3 is needed for file dialogs. Fixes crash with No GSettings schemas error.
wrapGAppsHook3 wrapGAppsHook3
@ -141,17 +141,17 @@ in stdenv'.mkDerivation (finalAttrs: {
qtsvg qtsvg
qtscxml qtscxml
qtnetworkauth qtnetworkauth
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib alsa-lib
qtwayland qtwayland
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk_11_0.frameworks.Cocoa darwin.apple_sdk_11_0.frameworks.Cocoa
]; ];
postInstall = '' postInstall = ''
# Remove unneeded bundled libraries and headers # Remove unneeded bundled libraries and headers
rm -r $out/{include,lib} rm -r $out/{include,lib}
'' + lib.optionalString stdenv.isDarwin '' '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p "$out/Applications" mkdir -p "$out/Applications"
mv "$out/mscore.app" "$out/Applications/mscore.app" mv "$out/mscore.app" "$out/Applications/mscore.app"
mkdir -p $out/bin mkdir -p $out/bin
@ -174,8 +174,8 @@ in stdenv'.mkDerivation (finalAttrs: {
# so we disable it and explicitly use makeQtWrapper. # so we disable it and explicitly use makeQtWrapper.
# #
# TODO: check if something like this is also needed for macOS. # TODO: check if something like this is also needed for macOS.
dontWrapQtApps = stdenv.isLinux; dontWrapQtApps = stdenv.hostPlatform.isLinux;
postFixup = lib.optionalString stdenv.isLinux '' postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
mkdir -p $out/libexec mkdir -p $out/libexec
mv $out/bin/mscore $out/libexec mv $out/bin/mscore $out/libexec
makeQtWrapper $out/libexec/mscore $out/bin/mscore makeQtWrapper $out/libexec/mscore $out/bin/mscore

View File

@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
}; };
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ]; nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
buildInputs = lib.optional stdenv.isDarwin CoreServices; buildInputs = lib.optional stdenv.hostPlatform.isDarwin CoreServices;
preConfigure = '' preConfigure = ''
substituteInPlace lib/utils.rs \ substituteInPlace lib/utils.rs \
@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-+UVUejKCfjC6zdW315wmu7f3A5GmnoQ3rIk8SK6LIRI="; cargoHash = "sha256-+UVUejKCfjC6zdW315wmu7f3A5GmnoQ3rIk8SK6LIRI=";
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
description = "Automatic music sorter (based on ID3 tags)"; description = "Automatic music sorter (based on ID3 tags)";
mainProgram = "muso"; mainProgram = "muso";
homepage = "https://github.com/quebin31/muso"; homepage = "https://github.com/quebin31/muso";

View File

@ -35,16 +35,16 @@ rustPlatform.buildRustPackage rec {
++ lib.optional withClipboard python3; ++ lib.optional withClipboard python3;
buildInputs = [ ncurses ] buildInputs = [ ncurses ]
++ lib.optional stdenv.isLinux openssl ++ lib.optional stdenv.hostPlatform.isLinux openssl
++ lib.optional withALSA alsa-lib ++ lib.optional withALSA alsa-lib
++ lib.optional withClipboard libxcb ++ lib.optional withClipboard libxcb
++ lib.optional withCover ueberzug ++ lib.optional withCover ueberzug
++ lib.optional withPulseAudio libpulseaudio ++ lib.optional withPulseAudio libpulseaudio
++ lib.optional withPortAudio portaudio ++ lib.optional withPortAudio portaudio
++ lib.optional (withMPRIS || withNotify) dbus ++ lib.optional (withMPRIS || withNotify) dbus
++ lib.optional stdenv.isDarwin Cocoa; ++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DNCURSES_UNCTRL_H_incl"; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-DNCURSES_UNCTRL_H_incl";
buildNoDefaultFeatures = true; buildNoDefaultFeatures = true;

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation {
] ++ additionalBuildInputs; ] ++ additionalBuildInputs;
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
description = description; description = description;
homepage = "https://open-music-kontrollers.ch/lv2/${pname}:"; homepage = "https://open-music-kontrollers.ch/lv2/${pname}:";
license = licenses.artistic2; license = licenses.artistic2;

View File

@ -39,7 +39,7 @@ buildDotnetModule rec {
dotnetInstallFlags = [ "-p:PublishReadyToRun=false" ]; dotnetInstallFlags = [ "-p:PublishReadyToRun=false" ];
# socket cannot bind to localhost on darwin for tests # socket cannot bind to localhost on darwin for tests
doCheck = !stdenv.isDarwin; doCheck = !stdenv.hostPlatform.isDarwin;
# net7.0 replacement needed until upstream bumps to dotnet 7 # net7.0 replacement needed until upstream bumps to dotnet 7
postPatch = '' postPatch = ''
@ -54,9 +54,9 @@ buildDotnetModule rec {
# need to make sure proprietary worldline resampler is copied # need to make sure proprietary worldline resampler is copied
postInstall = let postInstall = let
runtime = if (stdenv.isLinux && stdenv.isx86_64) then "linux-x64" runtime = if (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) then "linux-x64"
else if (stdenv.isLinux && stdenv.isAarch64) then "linux-arm64" else if (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) then "linux-arm64"
else if stdenv.isDarwin then "osx" else if stdenv.hostPlatform.isDarwin then "osx"
else null; else null;
in lib.optionalString (runtime != null) '' in lib.optionalString (runtime != null) ''
cp runtimes/${runtime}/native/libworldline${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/OpenUtau/ cp runtimes/${runtime}/native/libworldline${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/OpenUtau/

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config ] nativeBuildInputs = [ cmake pkg-config ]
++ lib.optionals stdenv.isDarwin [ libiconv ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
buildInputs = [ libogg ]; buildInputs = [ libogg ];
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/fmang/opustags"; homepage = "https://github.com/fmang/opustags";
description = "Ogg Opus tags editor"; description = "Ogg Opus tags editor";
platforms = platforms.all; platforms = platforms.all;
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
maintainers = with maintainers; [ kmein ]; maintainers = with maintainers; [ kmein ];
license = licenses.bsd3; license = licenses.bsd3;
mainProgram = "opustags"; mainProgram = "opustags";

View File

@ -28,7 +28,7 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [ cmake makeBinaryWrapper pkg-config ]; nativeBuildInputs = [ cmake makeBinaryWrapper pkg-config ];
buildInputs = [ libopus openssl ] buildInputs = [ libopus openssl ]
++ lib.optionals stdenv.isDarwin [ Security ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
postInstall = '' postInstall = ''
wrapProgram $out/bin/parrot \ wrapProgram $out/bin/parrot \

View File

@ -38,7 +38,7 @@ stdenv.mkDerivation {
''; '';
meta = { meta = {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
description = "Time domain pitch tracker for Pure Data"; description = "Time domain pitch tracker for Pure Data";
homepage = "http://www.katjaas.nl/helmholtz/helmholtz.html"; homepage = "http://www.katjaas.nl/helmholtz/helmholtz.html";
license = lib.licenses.bsd3; license = lib.licenses.bsd3;

View File

@ -30,7 +30,7 @@ pythonPackages.buildPythonApplication rec {
(with pythonPackages; [ pygobject3 pylast ]); (with pythonPackages; [ pygobject3 pylast ]);
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
description = "Pandora Internet Radio player for GNOME"; description = "Pandora Internet Radio player for GNOME";
mainProgram = "pithos"; mainProgram = "pithos";
homepage = "https://pithos.github.io/"; homepage = "https://pithos.github.io/";

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation {
''; '';
meta = with lib; { meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
homepage = "https://github.com/cth103/plugin-torture"; homepage = "https://github.com/cth103/plugin-torture";
description = "Tool to test LADSPA and LV2 plugins"; description = "Tool to test LADSPA and LV2 plugins";
license = licenses.gpl2; license = licenses.gpl2;

View File

@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
]; ];
meta = with lib; { meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
description = "Soundfont editor for creating musical instruments"; description = "Soundfont editor for creating musical instruments";
mainProgram = "polyphone"; mainProgram = "polyphone";
homepage = "https://www.polyphone-soundfonts.com/"; homepage = "https://www.polyphone-soundfonts.com/";

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 ] ++ lib.optional stdenv.isLinux alsa-lib; buildInputs = [ SDL2 ] ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib;
postInstall = '' postInstall = ''
install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" \ install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" \

View File

@ -25,9 +25,9 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
fftw fftw
libjack2 libjack2
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib alsa-lib
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
portaudio portaudio
]; ];
@ -35,9 +35,9 @@ stdenv.mkDerivation rec {
"--enable-universal" "--enable-universal"
"--enable-fftw" "--enable-fftw"
"--enable-jack" "--enable-jack"
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
"--enable-alsa" "--enable-alsa"
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
"--enable-portaudio" "--enable-portaudio"
"--without-local-portaudio" "--without-local-portaudio"
"--disable-jack-framework" "--disable-jack-framework"

View File

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
homepage = "https://github.com/jpcima/quadrafuzz"; homepage = "https://github.com/jpcima/quadrafuzz";
description = "Multi-band fuzz distortion plugin"; description = "Multi-band fuzz distortion plugin";
maintainers = [ maintainers.magnetophon ]; maintainers = [ maintainers.magnetophon ];

View File

@ -94,7 +94,7 @@ stdenv.mkDerivation rec {
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
nativeCheckInputs = [ gtest ]; nativeCheckInputs = [ gtest ];
doCheck = !stdenv.isAarch64; # single failure that I can't explain doCheck = !stdenv.hostPlatform.isAarch64; # single failure that I can't explain
preFixup = '' preFixup = ''
gappsWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ dbus ]}) gappsWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ dbus ]})

View File

@ -15,14 +15,14 @@
, xdotool , xdotool
, which , which
, jackSupport ? stdenv.isLinux , jackSupport ? stdenv.hostPlatform.isLinux
, jackLibrary , jackLibrary
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux , pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux
, libpulseaudio , libpulseaudio
}: }:
let let
url_for_platform = version: arch: if stdenv.isDarwin url_for_platform = version: arch: if stdenv.hostPlatform.isDarwin
then "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_universal.dmg" then "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_universal.dmg"
else "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_${arch}.tar.xz"; else "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_${arch}.tar.xz";
in in
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = url_for_platform version stdenv.hostPlatform.qemuArch; url = url_for_platform version stdenv.hostPlatform.qemuArch;
hash = if stdenv.isDarwin then "sha256-dIRZCUIfqnGTxBaLzczwzD6hA/PyAxPqfa+FfCRKdu0=" else { hash = if stdenv.hostPlatform.isDarwin then "sha256-dIRZCUIfqnGTxBaLzczwzD6hA/PyAxPqfa+FfCRKdu0=" else {
x86_64-linux = "sha256-aa2KcL8yZYG+Dki7J6U473E2BQgdACAIzRLtD9zuHV0="; x86_64-linux = "sha256-aa2KcL8yZYG+Dki7J6U473E2BQgdACAIzRLtD9zuHV0=";
aarch64-linux = "sha256-NECEEUKtTQajl0MZK8/NsbhcuyihHOo0Q5Y5UpAAgrM="; aarch64-linux = "sha256-NECEEUKtTQajl0MZK8/NsbhcuyihHOo0Q5Y5UpAAgrM=";
}.${stdenv.hostPlatform.system}; }.${stdenv.hostPlatform.system};
@ -40,24 +40,24 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
which which
autoPatchelfHook autoPatchelfHook
xdg-utils # Required for desktop integration xdg-utils # Required for desktop integration
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
undmg undmg
]; ];
sourceRoot = lib.optionalString stdenv.isDarwin "Reaper.app"; sourceRoot = lib.optionalString stdenv.hostPlatform.isDarwin "Reaper.app";
buildInputs = [ buildInputs = [
stdenv.cc.cc.lib # reaper and libSwell need libstdc++.so.6 stdenv.cc.cc.lib # reaper and libSwell need libstdc++.so.6
] ++ lib.optionals stdenv.isLinux [ ] ++ lib.optionals stdenv.hostPlatform.isLinux [
gtk3 gtk3
alsa-lib alsa-lib
]; ];
runtimeDependencies = lib.optionals stdenv.isLinux [ runtimeDependencies = lib.optionals stdenv.hostPlatform.isLinux [
gtk3 # libSwell needs libgdk-3.so.0 gtk3 # libSwell needs libgdk-3.so.0
] ]
++ lib.optional jackSupport jackLibrary ++ lib.optional jackSupport jackLibrary
@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
dontBuild = true; dontBuild = true;
installPhase = if stdenv.isDarwin then '' installPhase = if stdenv.hostPlatform.isDarwin then ''
runHook preInstall runHook preInstall
mkdir -p "$out/Applications/Reaper.app" mkdir -p "$out/Applications/Reaper.app"
cp -r * "$out/Applications/Reaper.app/" cp -r * "$out/Applications/Reaper.app/"

View File

@ -21,6 +21,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Only; license = licenses.gpl2Only;
maintainers = [ maintainers.joelmo ]; maintainers = [ maintainers.joelmo ];
platforms = platforms.unix; platforms = platforms.unix;
broken = stdenv.isAarch64; # g++: error: unrecognized command line option '-mfpmath=sse' broken = stdenv.hostPlatform.isAarch64; # g++: error: unrecognized command line option '-mfpmath=sse'
}; };
} }

View File

@ -21,18 +21,18 @@ stdenv.mkDerivation rec {
}; };
configureFlags = [ "--enable-dependency-tracking" ] configureFlags = [ "--enable-dependency-tracking" ]
++ lib.optional stdenv.isDarwin "--disable-sdltest"; ++ lib.optional stdenv.hostPlatform.isDarwin "--disable-sdltest";
nativeBuildInputs = [ autoreconfHook python3 ]; nativeBuildInputs = [ autoreconfHook python3 ];
buildInputs = [ SDL2 ] buildInputs = [ SDL2 ]
++ lib.optionals stdenv.isLinux [ alsa-lib libXext ] ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib libXext ]
++ lib.optionals stdenv.isDarwin [ Cocoa ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
enableParallelBuilding = true; enableParallelBuilding = true;
# Our Darwin SDL2 doesn't have a SDL2main to link against # Our Darwin SDL2 doesn't have a SDL2main to link against
preConfigure = lib.optionalString stdenv.isDarwin '' preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace configure.ac \ substituteInPlace configure.ac \
--replace '-lSDL2main' '-lSDL2' --replace '-lSDL2main' '-lSDL2'
''; '';

View File

@ -1,6 +1,6 @@
{ stdenv, lib, config, fetchFromGitHub, cmake, pkg-config { stdenv, lib, config, fetchFromGitHub, cmake, pkg-config
, alsaSupport ? stdenv.isLinux, alsa-lib , alsaSupport ? stdenv.hostPlatform.isLinux, alsa-lib
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio , pulseSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux, libpulseaudio
, jackSupport ? false, libjack2, soxr , jackSupport ? false, libjack2, soxr
, pcapSupport ? false, libpcap , pcapSupport ? false, libpcap
}: }:

View File

@ -55,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: {
makeFlags = [ "DESTDIR=$(out)" ]; makeFlags = [ "DESTDIR=$(out)" ];
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
homepage = "http://www.drpetter.se/project_sfxr.html"; homepage = "http://www.drpetter.se/project_sfxr.html";
description = "Videogame sound effect generator"; description = "Videogame sound effect generator";
mainProgram = "sfxr"; mainProgram = "sfxr";

View File

@ -24,10 +24,10 @@ stdenv.mkDerivation rec {
asio avahi flac libogg libvorbis libopus asio avahi flac libogg libvorbis libopus
aixlog popl soxr aixlog popl soxr
] ++ lib.optional pulseaudioSupport libpulseaudio ] ++ lib.optional pulseaudioSupport libpulseaudio
++ lib.optional stdenv.isLinux alsa-lib ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
++ lib.optionals stdenv.isDarwin [ IOKit AudioToolbox ]; ++ lib.optionals stdenv.hostPlatform.isDarwin [ IOKit AudioToolbox ];
TARGET=lib.optionalString stdenv.isDarwin "MACOS"; TARGET=lib.optionalString stdenv.hostPlatform.isDarwin "MACOS";
# Upstream systemd unit files are pretty awful, so we provide our own in a # Upstream systemd unit files are pretty awful, so we provide our own in a
# NixOS module. It might make sense to get that upstreamed... # NixOS module. It might make sense to get that upstreamed...

View File

@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ fftw gsl motif ] buildInputs = [ fftw gsl motif ]
++ lib.optionals stdenv.isLinux [ alsa-lib ] ++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]
++ lib.optionals stdenv.isDarwin [ CoreServices CoreMIDI ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices CoreMIDI ]
++ (with xorg; [ libXext libXft libXpm libXt ]); ++ (with xorg; [ libXext libXft libXpm libXt ]);
configureFlags = [ "--with-motif" ]; configureFlags = [ "--with-motif" ];

View File

@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux "-rpath ${lib.makeLibraryPath (finalAttrs.runtimeDependencies)}"; env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux "-rpath ${lib.makeLibraryPath (finalAttrs.runtimeDependencies)}";
dontPatchELF = true; # needed or nix will try to optimize the binary by removing "useless" rpath dontPatchELF = true; # needed or nix will try to optimize the binary by removing "useless" rpath
postPatch = lib.optionalString (stdenv.isLinux) '' postPatch = lib.optionalString (stdenv.hostPlatform.isLinux) ''
# needs special setup on Linux, dunno if it can work on Darwin # needs special setup on Linux, dunno if it can work on Darwin
# Also, I get issues with linking without that, not sure why # Also, I get issues with linking without that, not sure why
sed -i -e '/juce::juce_recommended_lto_flags/d' CMakeLists.txt sed -i -e '/juce::juce_recommended_lto_flags/d' CMakeLists.txt
@ -67,7 +67,7 @@ stdenv.mkDerivation (finalAttrs: {
''; '';
# The program does not provide any CMake install instructions # The program does not provide any CMake install instructions
installPhase = lib.optionalString (stdenv.isLinux) '' installPhase = lib.optionalString (stdenv.hostPlatform.isLinux) ''
runHook preInstall runHook preInstall
cd ../linux cd ../linux
./install.sh "$out" ./install.sh "$out"
@ -80,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {
license = with licenses; [ gpl3Plus ]; license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ PowerUser64 ]; maintainers = with maintainers; [ PowerUser64 ];
platforms = platforms.unix; platforms = platforms.unix;
broken = stdenv.isDarwin; broken = stdenv.hostPlatform.isDarwin;
mainProgram = "sonobus"; mainProgram = "sonobus";
}; };
}) })

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
homepage = "http://openavproductions.com/sorcer/"; homepage = "http://openavproductions.com/sorcer/";
description = "Wavetable LV2 plugin synth, targeted at the electronic / dubstep genre"; description = "Wavetable LV2 plugin synth, targeted at the electronic / dubstep genre";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;

View File

@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
goocanvas goocanvas
libxml2 libxml2
libsndfile libsndfile
] ++ lib.optional stdenv.isLinux alsa-lib; ] ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib;
meta = with lib; { meta = with lib; {
description = "Music tracking tool similar in design to the DOS program FastTracker and the Amiga legend ProTracker"; description = "Music tracking tool similar in design to the DOS program FastTracker and the Amiga legend ProTracker";

View File

@ -35,7 +35,7 @@ stdenv.mkDerivation {
''; '';
meta = with lib; { meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
description = "Speech denoise lv2 plugin based on RNNoise library"; description = "Speech denoise lv2 plugin based on RNNoise library";
homepage = "https://github.com/lucianodato/speech-denoiser"; homepage = "https://github.com/lucianodato/speech-denoiser";
license = licenses.lgpl3; license = licenses.lgpl3;

View File

@ -49,7 +49,7 @@ rustPlatform.buildRustPackage rec {
pkg-config pkg-config
cmake cmake
rustPlatform.bindgenHook rustPlatform.bindgenHook
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
makeBinaryWrapper makeBinaryWrapper
]; ];
@ -61,14 +61,14 @@ rustPlatform.buildRustPackage rec {
++ lib.optionals withSixel [ libsixel ] ++ lib.optionals withSixel [ libsixel ]
++ lib.optionals (withAudioBackend == "alsa") [ alsa-lib ] ++ lib.optionals (withAudioBackend == "alsa") [ alsa-lib ]
++ lib.optionals (withAudioBackend == "pulseaudio") [ libpulseaudio ] ++ lib.optionals (withAudioBackend == "pulseaudio") [ libpulseaudio ]
++ lib.optionals (withAudioBackend == "rodio" && stdenv.isLinux) [ alsa-lib ] ++ lib.optionals (withAudioBackend == "rodio" && stdenv.hostPlatform.isLinux) [ alsa-lib ]
++ lib.optionals (withAudioBackend == "portaudio") [ portaudio ] ++ lib.optionals (withAudioBackend == "portaudio") [ portaudio ]
++ lib.optionals (withAudioBackend == "jackaudio") [ libjack2 ] ++ lib.optionals (withAudioBackend == "jackaudio") [ libjack2 ]
++ lib.optionals (withAudioBackend == "rodiojack") [ alsa-lib libjack2 ] ++ lib.optionals (withAudioBackend == "rodiojack") [ alsa-lib libjack2 ]
++ lib.optionals (withAudioBackend == "sdl") [ SDL2 ] ++ lib.optionals (withAudioBackend == "sdl") [ SDL2 ]
++ lib.optionals (withAudioBackend == "gstreamer") [ gst_all_1.gstreamer gst_all_1.gst-devtools gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good ] ++ lib.optionals (withAudioBackend == "gstreamer") [ gst_all_1.gstreamer gst_all_1.gst-devtools gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good ]
++ lib.optionals (stdenv.isDarwin && withMediaControl) [ darwin.apple_sdk.frameworks.MediaPlayer ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && withMediaControl) [ darwin.apple_sdk.frameworks.MediaPlayer ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
AppKit AppKit
AudioUnit AudioUnit
Cocoa Cocoa
@ -88,7 +88,7 @@ rustPlatform.buildRustPackage rec {
++ lib.optionals withFuzzy [ "fzf" ]; ++ lib.optionals withFuzzy [ "fzf" ];
# sixel-sys is dynamically linked to libsixel # sixel-sys is dynamically linked to libsixel
postInstall = lib.optionals (stdenv.isDarwin && withSixel) '' postInstall = lib.optionals (stdenv.hostPlatform.isDarwin && withSixel) ''
wrapProgram $out/bin/spotify_player \ wrapProgram $out/bin/spotify_player \
--prefix DYLD_LIBRARY_PATH : "${lib.makeLibraryPath [libsixel]}" --prefix DYLD_LIBRARY_PATH : "${lib.makeLibraryPath [libsixel]}"
''; '';

View File

@ -27,7 +27,7 @@ mkDerivation rec {
installFlags = [ "DESTDIR=$(out)" ]; installFlags = [ "DESTDIR=$(out)" ];
postInstall = lib.optionalString stdenvNoCC.isDarwin '' postInstall = lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
mkdir -p $out/Applications mkdir -p $out/Applications
mv $out/bin/spotify-qt.app $out/Applications mv $out/bin/spotify-qt.app $out/Applications
ln $out/Applications/spotify-qt.app/Contents/MacOS/spotify-qt $out/bin/spotify-qt ln $out/Applications/spotify-qt.app/Contents/MacOS/spotify-qt $out/bin/spotify-qt

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation {
version = "1.2.40.599.g606b7f29"; version = "1.2.40.599.g606b7f29";
src = if stdenv.isAarch64 then ( src = if stdenv.hostPlatform.isAarch64 then (
fetchurl { fetchurl {
url = "https://web.archive.org/web/20240622065234/https://download.scdn.co/SpotifyARM64.dmg"; url = "https://web.archive.org/web/20240622065234/https://download.scdn.co/SpotifyARM64.dmg";
hash = "sha256-mmjxKYmsX0rFlIU19JOfPbNgOhlcZs5slLUhDhlON1c="; hash = "sha256-mmjxKYmsX0rFlIU19JOfPbNgOhlcZs5slLUhDhlON1c=";

View File

@ -18,6 +18,6 @@ let
mainProgram = "spotify"; mainProgram = "spotify";
}; };
in if stdenv.isDarwin in if stdenv.hostPlatform.isDarwin
then callPackage ./darwin.nix (extraArgs // { inherit pname meta; }) then callPackage ./darwin.nix (extraArgs // { inherit pname meta; })
else callPackage ./linux.nix (extraArgs // { inherit pname meta; }) else callPackage ./linux.nix (extraArgs // { inherit pname meta; })

View File

@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ]; installFlags = [ "PREFIX=$(out)" ];
meta = with lib; { meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64); broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
homepage = "https://github.com/jpcima/stone-phaser"; homepage = "https://github.com/jpcima/stone-phaser";
description = "Classic analog phaser effect, made with DPF and Faust"; description = "Classic analog phaser effect, made with DPF and Faust";
maintainers = [ maintainers.magnetophon ]; maintainers = [ maintainers.magnetophon ];

Some files were not shown because too many files have changed in this diff Show More