From 07c441b8fee23fde28347554c71df4cb6c3e7342 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 21 Jul 2025 18:36:07 +0200 Subject: [PATCH] lash: delay assert behind eval of `meta` This allows CI to evaluate `meta.platforms` to see that this package is not supported on darwin. Working around the assert before that requires much more hackery. I'm not 100% sure whether the assert is needed, but it doesn't hurt to keep it in this place. --- pkgs/by-name/la/lash/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/la/lash/package.nix b/pkgs/by-name/la/lash/package.nix index c3ec6476b2a4..b5a69b2208f0 100644 --- a/pkgs/by-name/la/lash/package.nix +++ b/pkgs/by-name/la/lash/package.nix @@ -12,8 +12,6 @@ readline, }: -assert libuuid != null; - stdenv.mkDerivation rec { pname = "lash"; version = "0.5.4"; @@ -40,7 +38,9 @@ stdenv.mkDerivation rec { libxml2 readline ]; - propagatedBuildInputs = [ libuuid ]; + propagatedBuildInputs = + assert libuuid != null; + [ libuuid ]; NIX_LDFLAGS = "-lm -lpthread -luuid"; postInstall = ''