Skip to content

Commit

Permalink
feat(tooling): Add nix packages building sile with clang
Browse files Browse the repository at this point in the history
Co-authored-by: Caleb Maclennan <[email protected]>
  • Loading branch information
doronbehar and alerque committed Oct 11, 2023
1 parent 624137f commit 5b30695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build-aux/pkg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ in stdenv.mkDerivation (finalAttrs: {
touch source/build-aux/rust_boilerplate.mk
'';

preBuild = lib.optionalString stdenv.cc.isClang ''
substituteInPlace libtexpdf/dpxutil.c \
--replace "ASSERT(ht && ht->table && iter);" "ASSERT(ht && iter);"
'';

# remove forbidden references to $TMPDIR
preFixup = lib.optionalString stdenv.isLinux ''
for f in "$out"/bin/*; do
Expand Down
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
sile-luajit = sile.override {
lua = pkgs.luajit;
};
sile-clang = sile.override {
lua = pkgs.luajit;
# Use the same clang version as Nixpkgs' rust clang stdenv
stdenv = pkgs.rustc.llvmPackages.stdenv;
};
};
defaultPackage = packages.sile-luajit;
apps = rec {
Expand Down

0 comments on commit 5b30695

Please sign in to comment.