summaryrefslogtreecommitdiff
path: root/.envrc
AgeCommit message (Collapse)Author
2023-08-22Reload direnv on file changesBen Sima
I only just now learned about watch_file.
2022-07-29Implement Guile linking for C buildsBen Sima
In order to write Guile code against C, I need to distiguish between libs and bins, so I did that, then I got the flags that gcc needs from `guile-config` and put them in the args for any C lib build. I tested this with Bessel.c and Bessel.scm (not in this patch, because I don't really want that code in my tree, I'll come up with another way to test it later).
2022-07-26Put _/bin on the PATHBen Sima
The motivation for this was to prevent `lint` from rebuilding every time I ran it. That was really annoying.
2022-07-21Remove rustc and scheme from global environmentBen Sima
2022-07-19Add note about direnv refreshingBen Sima
2022-07-18Delete ShellHook.sh in favor of just using direnvBen Sima
2022-02-07Use nix-direnvBen Sima
2021-11-26Fix GitHub OAuth argsBen Sima
This makes it explicit that we are using GitHub vs some other OAuth args. The idea is that we should be making a new type for every service, this allows us to have type safety in the implementation but a common set or pattern of names for the environment variables and record fields. Also using 'notset' instead of 'mempty' is really helpful for debugging when this breaks, as I found out.
2021-11-26Move commands and add ns functionBen Sima
2021-11-26Add GUILE_LOAD_PATHBen Sima
2020-12-30Add stripe pubkey to environmentBen Sima
2020-12-07Auth and load repos from GitHubBen Sima
2020-07-25bild: port to haskellBen Sima
2020-07-19hero: rename stuff to new structureBen Sima
Working toward https://github.com/bsima/biz/issues/5
2020-06-27hero: implement the basics of user loginsBen Sima
There's also a lot of refactoring/renaming in here, so the diff is really messy. The overall problem is that I've only ever added code, I've never gone back and reorganized/rearchitected stuff. So adding even small features is becoming an enormous effort. Anyway, this adds the basics of user auth. Next I need to add the auth checks for every route that needs it, and make sure everything is back to working correctly.
2020-06-17Fix dev envarsBen Sima
2020-06-02Add EDITOR to .envrcBen Sima
I'm using vim lately for biz coding...
2020-06-02Initialize Hero databaseBen Sima
2020-05-02Auto-overlay niv sourcesBen Sima
This is somewhat experimental, the idea is automatically set the sources from my niv pinned deps. It seems to work, so I'll keep at it and see if I can improve it as issues come up.
2020-04-28Add guile load path backBen Sima
This works, I tested it.
2020-04-19Switch to niv for managing third party sourcesBen Sima
2020-04-19Basic use of nix-shell with direnv/lorriBen Sima
2020-04-10Replace Config/Init/Logger with envy and simpler codeBen Sima
Idk what I was thinking, I dodn't need any of that stuff.
2020-04-03Rewrite buildGhc and buildGhcjsBen Sima
I wanted to even further simplify the build tooling overhead. My general goal is to not have to think about declaring packages, or dependencies, or really anything that you might find in a cabal file. Not all of these goals are possible, but we can get pretty close. With this commit all I need for the 'buildGhc/buildGhcjs' functions is the path to the entrypoint file; everything else is either inferred by the Nix code or declared in the Haskell code comments. The strategy is to map a Haskell module to an executable artifact, and pass just that module to 'ghc --make'. Then we can rely on ghc to handle walking the local filesystem for imports. The only thing ghc really needs to know is a name for the output executable; it is hard to automatically infer this, so we have a simple comment syntax to declare this in the file. The comment syntax is inspired by existing Haskell 'LANGUAGE' pragmas; having this in the same file keeps the configuration as close to the real code as possible. The Nix code then extracts this info from the code comments, and sets the required ghc flags. Second, we need to declare the set of 3rd-party packages that our program relies on. For this we can re-use the same comment syntax and just list the dependencies, then extract them in Nix and construct a package set as we were before. This reduces the amount of "package declaration" code we have to write in default.nix, and reduces the amount of time we have to spend switching between the Haskell code and the Nix code (I find such context switching super annoying). I also think having the configuration in with the Haskell code encourages us to write smaller, simpler modules and only write code that we need. Additionally, I refactored the bild and ghci (now called 'repl') scripts to work in any directory. The .envrc uses direnv to set the path so that you can run these scripts anywhere. That means the following works: $ cd Run/Que $ bild Website $ repl Server λ> :l Run.Que.Server I find this to be a rather nice workflow.
2019-11-02unify nix entrypoints to default.nixBen Sima
2019-11-01add buildHaskellApp nix functionBen Sima