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/Bild.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Biz/Bild.nix') diff --git a/Biz/Bild.nix b/Biz/Bild.nix index 94305bc..ee0b1fe 100644 --- a/Biz/Bild.nix +++ b/Biz/Bild.nix @@ -30,6 +30,8 @@ rec { pythonPackages = nixpkgs.python3Packages; pythonWith = nixpkgs.python3.withPackages; + cPackages = nixpkgs.pkgs; + ghcPackageSetFull = private.ghcWith private.haskellDeps; ghcPackageSetBild = private.ghcWith (hpkgs: with hpkgs; [ aeson async base bytestring conduit conduit-extra containers directory @@ -53,8 +55,6 @@ rec { (private.ghcWith (hpkgs: with hpkgs; [])) /* disable until nixified builds are complete */ - # c deps - gcc gdb valgrind argp-standalone SDL # lisp deps guile (private.sbclWith (p: with p; [asdf alexandria])) # just enough to build Example.lisp -- cgit v1.2.3