From 57253c432b0b8b27bd88f62b527ff66d8e0769ff Mon Sep 17 00:00:00 2001 From: Sebastian Moser Date: Wed, 3 Apr 2024 10:42:39 +0200 Subject: [PATCH] fix overlays add ar command to make libtalloc.a --- overlays/static-overlay.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/overlays/static-overlay.nix b/overlays/static-overlay.nix index 71f99ee..2c1eb12 100644 --- a/overlays/static-overlay.nix +++ b/overlays/static-overlay.nix @@ -5,6 +5,15 @@ final: prev: { talloc = prev.talloc.overrideAttrs (innerFinal: innerPrev: { wafConfigureFlags = innerPrev.wafConfigureFlags or [] ++ [ "--disable-python" ]; patches = innerPrev.patches or [] ++ [ ./patches/talloc-satic.patch ]; + postBuild = '' + # talloc's Waf setup doesn't build static libraries, so we do it manually + # from: https://git.alpinelinux.org/aports/tree/main/talloc/APKBUILD + ar qf libtalloc.a bin/default/talloc.c*.o + ''; + postInstall = '' + mkdir -p $out/lib/ + install -Dm644 libtalloc.a "$out"/lib/libtalloc.a + ''; }); # for static builds