Add Nix support #62

Merged
cory merged 6 commits from tasiaiso/tildefriends:tasiaiso-nix into main 2024-05-22 20:31:11 -04:00
Contributor

Enter a shell with the needed dependencies: $ nix develop

Build Tilde Friends: $ nix build

The built derivation is placed in the result directory, the executable is at ./result/bin/tildefriends

Format the Nix code: $ nix fmt

Enter a shell with the needed dependencies: `$ nix develop` Build Tilde Friends: `$ nix build` > The built derivation is placed in the `result` directory, the executable is at `./result/bin/tildefriends` Format the Nix code: `$ nix fmt`
tasiaiso added 1 commit 2024-05-12 14:35:58 -04:00
tasiaiso added 1 commit 2024-05-12 14:56:14 -04:00
tasiaiso added 2 commits 2024-05-12 15:13:51 -04:00
tasiaiso added 1 commit 2024-05-12 15:15:38 -04:00
tasiaiso added 1 commit 2024-05-12 15:17:46 -04:00
tasiaiso reviewed 2024-05-12 15:18:03 -04:00
tasiaiso left a comment
Author
Contributor

@cory Ready for review

@cory Ready for review
tasiaiso requested review from cory 2024-05-12 15:18:10 -04:00
tasiaiso changed title from build(nix): add Nix support to Add Nix support 2024-05-12 15:18:19 -04:00
Owner

This sounds pretty exciting, but I want to make some time to play with nix bit first before blindly merging this.

I've done no research, but I wonder if it's possible for any of the new files to live in a subdirectory. I also wonder if result can be moved into out/.

This sounds pretty exciting, but I want to make some time to play with nix bit first before blindly merging this. I've done no research, but I wonder if it's possible for any of the new files to live in a subdirectory. I also wonder if `result` can be moved into `out/`.
Author
Contributor

I wonder if it's possible for any of the new files to live in a subdirectory.

flake.nix and flake.lock have to stay in the root directory. I can merge default.nix into flake.nix but I'm pretty sure that'll break compatibility with those that don't use flakes.

I also wonder if result can be moved into out/.

It can be by passing a flag to nix build.

Should I write more doc in the nix files ?

> I wonder if it's possible for any of the new files to live in a subdirectory. `flake.nix` and `flake.lock` have to stay in the root directory. I *can* merge default.nix into flake.nix but I'm pretty sure that'll break compatibility with those that don't use flakes. > I also wonder if result can be moved into out/. It can be by [passing a flag to nix build](https://nixos.org/manual/nix/stable/command-ref/nix-build.html#opt-out-link). Should I write more doc in the nix files ?
cory merged commit 801ab20723 into main 2024-05-22 20:31:11 -04:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cory/tildefriends#62
No description provided.