Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-04-01 | Add nixfmt to Lint.hs | Ben Sima | |
nixfmt is the soon-to-be official formatter for Nix code, as per the NixOS GitHub group. So I figure I should just adopt it without worrying too much about the specifics of the formatting. I just formatted everything in one go, hence the huge diff, oh well. | |||
2023-08-21 | Refactor the build system for readability | Ben Sima | |
Lots of changes here but the code is much improved. The nix code is clearer and structured better. The Haskell code improved in response to the nix changes. I needed to use a qualified path instead of the abspath because the BIZ_ROOT changes based on whether bild runs in nix or runs in the user environment. Rather than passing every argument into Builder.nix, now I just pass the json from bild and deconstruct it in nix. This is obviously a much better design and it only came to be after sleeping on it the other night. | |||
2021-11-26 | Move Biz/Bild/Rules.nix -> Biz/Bild.nix | Ben Sima | |
2020-11-18 | Extend bild to nix targets properly | Ben Sima | |
Also had to capitalize some stuff, and move some nix files around and rename the metadata directive from 'exe' to 'out' because that just makes more sense, and fix some compiler errors. But now bild treats both nix and hs files as buildable things. So that's cool. One interesting example is Biz/Pie.{nix,hs} - I can either create a dev build of the hs file with ghc, or I can create a fully-encapsulated nix build. Its nice to have both options because a dev build with ghc takes half the amount of time, and I can rely on my locally cached hi and ho files. I think this shows the power of bild, but also can be a somewhat subtle thing. The issue really is with the separate command calls in nix builds vs dev builds. I figure there are a few ways to fix this: 1. Try to use bild inside the nix rules. That could be interesting, but could also lead to some weird behavior or worm holes forming. 2. Extract the command line invocation into a separate file, some kind of really simple template that gets pulled into both programs. It is important to consider that in the future I might want to have bild do a module-by-module nix build of programs, but I'm not sure how that would effect my choice here. | |||
2020-07-14 | dev: move some commands to shell | Ben Sima | |
2020-07-10 | dev: fixes for macos build | Ben Sima | |
2020-04-19 | Unify dev packages and base packages | Ben Sima | |
2020-04-19 | Switch to niv for managing third party sources | Ben Sima | |
2020-04-19 | Basic use of nix-shell with direnv/lorri | Ben Sima | |
2019-01-21 | add ibb | Ben Sima | |
2019-01-21 | Init | Ben Sima | |