fix: add dependencies to nix flake (solves #257 & solves #259)#258
Draft
faretek1 wants to merge 7 commits intoaspizu:mainfrom
Draft
fix: add dependencies to nix flake (solves #257 & solves #259)#258faretek1 wants to merge 7 commits intoaspizu:mainfrom
faretek1 wants to merge 7 commits intoaspizu:mainfrom
Conversation
faretek1
commented
Mar 20, 2026
| outputs = inputs@{ self, nixpkgs, flake-utils, ... }: | ||
| outputs = inputs@{ self, nixpkgs, flake-utils, rust-overlay, ... }: | ||
| flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-darwin" ] (system: let | ||
| pkgs = nixpkgs.legacyPackages.${system}; |
Author
There was a problem hiding this comment.
I'm not sure if this line is important, so i changed it to the more conventional import nixpkgs { inherit system};
faretek1
commented
Mar 20, 2026
faretek1
commented
Mar 20, 2026
this way it only is built once if the nix store path stays the same
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
motivation
considerations
rust-toolchain.tomlfile for this and other stuff. afaik, It's like.python-versionbut for rustdefault.nixis called by external flakes, but there is a lot of setup in flake.nix. Is there a way to simplify this in a proper way?Here is a nix flake you can use to open a shell with goboscript installed. It will cache so it only builds goboscript once