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.
This commit is contained in:
Wolfgang Walther
2025-07-21 18:36:07 +02:00
parent 5ecd39518b
commit 07c441b8fe
+3 -3
View File
@@ -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 = ''