From aac50fb4a0eea25a057bb2d7ebe80961c542a2a5 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 17 Aug 2023 21:21:07 -0400 Subject: Nixify C build This is working with libsodium as an example. Its unfortunate that we need the extra ':arg -lsodium' but how else can I get the name of the library for linking? Is that something in the nix attr metadata? Anyway, an optimization for another day. --- Biz/Namespace.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'Biz/Namespace.hs') diff --git a/Biz/Namespace.hs b/Biz/Namespace.hs index c811554..6d099fd 100644 --- a/Biz/Namespace.hs +++ b/Biz/Namespace.hs @@ -91,6 +91,7 @@ toModule (Namespace parts Hs) = joinWith "." parts toModule (Namespace parts Py) = joinWith "." parts toModule (Namespace parts Scm) = "(" ++ joinWith " " parts ++ ")" toModule (Namespace parts Rs) = joinWith "::" parts +toModule (Namespace parts C) = joinWith "/" parts <> ".c" toModule (Namespace {..}) = panic <| "toModule not implemented for " <> show ext toHaskellModule :: Namespace -> String -- cgit v1.2.3