Skip to content

Commit

Permalink
chore(tooling): Fixup Flake details, flesh out comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 5, 2023
1 parent 4ffa943 commit 6c9f048
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ let
luaEnv = lua.withPackages(ps: with ps; [
cassowary
cldr
cosmo
fluent
linenoise
loadkit
Expand Down Expand Up @@ -99,15 +98,20 @@ in stdenv.mkDerivation (finalAttrs: {

configureFlags = [
"--with-system-luarocks"
# TODO: Explain this flag
# The automake check target uses `pdfinfo` to confirm the output of a test
# run. This flake build eschews that test because it is run from the source
# directory but the binary is already built with system paths, so it can't
# be checked under Nix until after install. By specifying some binary here
# we skip the configure time test for `pdfinfo`, by using `false` we make
# sure that check fails if run (which we don't).
"PDFINFO=false"
#"--with-manual" In Nixpkgs we add this flag, here its not important enough
] ++ lib.optionals lua.pkgs.isLuaJIT [
"--with-luajit"
];

postPatch = ''
patchShebangs build-aux/*.sh
patchShebangs build-aux/*.sh build-aux/git-version-gen
'' + lib.optionalString stdenv.isDarwin ''
sed -i -e 's|@import AppKit;|#import <AppKit/AppKit.h>|' src/macfonts.m
'';
Expand Down

0 comments on commit 6c9f048

Please sign in to comment.