Fil-C on Nix

Filnix wiki

mbrock/filnix

ports/zstd-sarcasm.nix

λpkgs, zstd
let

The tagged parser lacks statement splitting needed by zstd's macros. Keep this backport local to the experimental port, not the toolchain.

5assembler=
import../packages/sarcasm.nix inherit pkgs; sources = zstd.stdenv.cc.sources;.overrideAttrsold: patches = old.patches or [ ] ++ ../patches/sarcasm-zstd-statements.patch;
in
zstd.overrideAttrs
λold
17pname=
"zstd-sarcasm"
18patches=
21env=
old.env or { } // NIX_CFLAGS_COMPILE = pkgs.lib.replaceStrings"-DZSTD_DISABLE_ASM" "" old.env or { }.NIX_CFLAGS_COMPILE or "" + " --filc-resource-dir=${assembler}";
28passthru=
old.passthru or { } // inherit assembler;