Repository navigation
Conversation
pkgs.callPackage automatically fills the arguments to default.nix from the nixpkgs package set. But rust still needs to be overridden. However, since goboscript builds on stable rust again, it may be possible to remove the rust-overlay dependency and use rust directly from nixpkgs
this required an update of nixpkgs
However this means that legacyPackages is no longer exported among any other implicit flake-utils behavior Also refactored default.nix to return an attribute set, so the vscode extension can be added in that same file.
This just fetches the built extension from the marketplace closes aspizu#389
faretek1
marked this pull request as ready for review
October 2, 2026 20:10
faretek1
commented
Oct 2, 2026
| To install the goboscript *compiler*, you can add `goboscript.packages.${pkgs.stdenv.hostPlatform.system}.goboscript` to your system packages list. | ||
| For nix flakes, add the input `goboscript` and add it to `environment.systemPackages` in your flake like so: | ||
|
|
||
| [This repository](https://codeberg.org/rtk/dotfiles) is an example usage of the goboscript flake. |
Contributor
Author
There was a problem hiding this comment.
You may want to remove the link to my dotfiles repo. I just added since it is relatively common for nix projects to have reference configs. In this case, the use of the goboscript nix stuff is rather simple so perhaps it is unnecessary.
This branch has not been deployed
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.
This PR serves to improve the nix flake and add the vscode extension as a package by removing unnecessary dependencies and has improvements regarding the usage of the nix language more generally.
alejandra) on the nix coderust-overlaydependency since goboscript can be built using stable rust againpkgs.callPackage(you don't need toinherit (pkgs)- that's the whole point ofpkgs.callPackage)flake-utilsdependency (I would preferflake-parts, but I think this flake can do without either). Additionally, supportaarch64-linuxwhich is a common target forsystem.