about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorPhilip Taron2024-04-01 08:59:13 -0700
committerAlyssa Ross2024-04-03 00:10:40 +0200
commit61815c17d97ec71597a44aa50ed7f584bb85b90f (patch)
treef64e899a129e513ea1279800994d871fe0f3ed51 /pkgs/applications
parentb80a7bb5a648c5ae34bdad44a86017c9c470049b (diff)
opencpn: gate elfutils on package availability rather than isLinux
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/misc/opencpn/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/misc/opencpn/default.nix b/pkgs/applications/misc/opencpn/default.nix
index 89d656798008..52cf30b1ffba 100644
--- a/pkgs/applications/misc/opencpn/default.nix
+++ b/pkgs/applications/misc/opencpn/default.nix
@@ -108,12 +108,13 @@ stdenv.mkDerivation (finalAttrs: {
     wxGTK32
   ] ++ lib.optionals stdenv.isLinux [
     alsa-utils
-    elfutils
     libselinux
     libsepol
     util-linux
     xorg.libXdmcp
     xorg.libXtst
+  ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [
+    elfutils
   ] ++ lib.optionals stdenv.isDarwin [
     lame
   ];