diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-04-27 13:52:15 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-28 21:44:21 +0000 |
commit | a8afbb45c12be27b9b93a802e9e276595899ed5a (patch) | |
tree | b4065c9ea79cf310b1b76976f21067761c206d88 /pkgs/servers/jellyfin/default.nix | |
parent | 81e1e68eaf6c765147da964d356f704030734dd2 (diff) | |
download | nixpkgs-a8afbb45c12be27b9b93a802e9e276595899ed5a.tar nixpkgs-a8afbb45c12be27b9b93a802e9e276595899ed5a.tar.gz nixpkgs-a8afbb45c12be27b9b93a802e9e276595899ed5a.tar.bz2 nixpkgs-a8afbb45c12be27b9b93a802e9e276595899ed5a.tar.lz nixpkgs-a8afbb45c12be27b9b93a802e9e276595899ed5a.tar.xz nixpkgs-a8afbb45c12be27b9b93a802e9e276595899ed5a.tar.zst nixpkgs-a8afbb45c12be27b9b93a802e9e276595899ed5a.zip |
treewide: use lib.warnIf where appropriate
Diffstat (limited to 'pkgs/servers/jellyfin/default.nix')
-rw-r--r-- | pkgs/servers/jellyfin/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/servers/jellyfin/default.nix b/pkgs/servers/jellyfin/default.nix index 2b00cb50073..77406c46415 100644 --- a/pkgs/servers/jellyfin/default.nix +++ b/pkgs/servers/jellyfin/default.nix @@ -11,9 +11,8 @@ let else if isAarch64 then "arm64" else lib.warn "Unsupported architecture, some image processing features might be unavailable" "unknown"; musl = lib.optionalString stdenv.hostPlatform.isMusl - (if (arch != "x64") - then lib.warn "Some image processing features might be unavailable for non x86-64 with Musl" "musl-" - else "musl-"); + (lib.warnIf (arch != "x64") "Some image processing features might be unavailable for non x86-64 with Musl" + "musl-"); runtimeDir = "${os}-${musl}${arch}"; in stdenv.mkDerivation rec { |