motif: fix disabling demos

The previous sed expression didn't work, even in the commit that added
it.

Fixes: 68c003b256 ("motif: fixup build after automake update #28232")
This commit is contained in:
Alyssa Ross 2024-04-08 20:23:06 +02:00
parent 23ff7d9dc4
commit 9cfffcd54a
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ libXp libXau ];
prePatch = lib.optionalString (!demoSupport) ''
sed '/^SUBDIRS =,^$/s/\<demos\>//' -i Makefile.{am,in}
sed 's/\<demos\>//' -i Makefile.{am,in}
'';
patches = [