Skip to content

feat: nix package for vscode extension and nix flake improvements - #390

Open
faretek1 wants to merge 5 commits into
aspizu:mainfrom
infgs:nix-ext
Open

faretek1 wants to merge 5 commits into
aspizu:mainfrom
infgs:nix-ext

Conversation

@faretek1

@faretek1 faretek1 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Run a formatter (alejandra) on the nix code
  • Remove rust-overlay dependency since goboscript can be built using stable rust again
  • Fix usage of pkgs.callPackage (you don't need to inherit (pkgs) - that's the whole point of pkgs.callPackage)
  • Remove flake-utils dependency (I would prefer flake-parts, but I think this flake can do without either). Additionally, support aarch64-linux which is a common target for system.
  • Add the vscode extension as a package (Would close chore: package vscode extension for nix #389)
  • Check that it works using my own system configuration
  • Add/update corresponding documentation

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
faretek1 marked this pull request as ready for review October 2, 2026 20:10
Comment thread docs/install.md
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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: package vscode extension for nix

1 participant