Skip to content

fix: nix flake (ignore test failure (it's vercel))#258

Merged
aspizu merged 15 commits intoaspizu:mainfrom
infgs:main
Apr 5, 2026
Merged

fix: nix flake (ignore test failure (it's vercel))#258
aspizu merged 15 commits intoaspizu:mainfrom
infgs:main

Conversation

@faretek1
Copy link
Copy Markdown
Contributor

@faretek1 faretek1 commented Mar 20, 2026

I fixed the nix flake's dependencies

I also added some documentation about how to use the nix flake

Note

Until this pr is merged, you will need to replace aspizu/goboscript in any code snippets with infgs/goboscript

Also once you've read it, you probably want to get rid of the bracketed text in the title of this pr

motivation

Here is a nix flake you can use to open a shell with goboscript installed. It will cache so it only builds goboscript once
{
  description = "Goboscript development environment";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    rust-overlay.url = "github:oxalica/rust-overlay";
    goboscript.url = "github:faretek1/goboscript?ref=9145b8330c092f15d4a11b728c28979e7b08a5bc";
  };

  outputs = inputs@{ self, nixpkgs, flake-utils, rust-overlay, goboscript, ... }:
  flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-darwin" ] (system: let
    overlays = [ (import rust-overlay) ];
    pkgs = import nixpkgs {
      inherit system overlays;
    };
    rust = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default);
  in rec {

    devShell = pkgs.mkShell {
      buildInputs = with pkgs; [ ];
      packages = [ 
        (import goboscript
        {
          inherit (pkgs) lib rustPlatform pkg-config openssl;
          inherit rust;
        })
      ];
      nativeBuildInputs = [ rust ];
    };
  });
}

@faretek1 faretek1 changed the title fix: add dependencies to nix flake fix: add dependencies to nix flake (solves #257 & solves #259) Mar 20, 2026
@faretek1 faretek1 marked this pull request as ready for review March 20, 2026 20:18
This was referenced Mar 21, 2026
@faretek1 faretek1 marked this pull request as draft March 22, 2026 14:33
@faretek1 faretek1 changed the title fix: add dependencies to nix flake (solves #257 & solves #259) fix: nix flake (ignore ci (it's vercel)) Apr 5, 2026
@faretek1
Copy link
Copy Markdown
Contributor Author

faretek1 commented Apr 5, 2026

todo:

  • improve documentation to show how to install on nix

@faretek1
Copy link
Copy Markdown
Contributor Author

faretek1 commented Apr 5, 2026

i tested it. it works for making a dev shell, and it also works for installing to system. The current official flake does not work.

faretek1 added 2 commits April 5, 2026 09:30
this config doesn't work completely by itself as you need hardware-configuration.nix etc
@faretek1 faretek1 marked this pull request as ready for review April 5, 2026 08:39
@faretek1 faretek1 changed the title fix: nix flake (ignore ci (it's vercel)) fix: nix flake (ignore test failure (it's vercel)) Apr 5, 2026
nativeBuildInputs = [ pkg-config rust ];
buildInputs = [ openssl ];

meta = {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

are there other fields such as author email, etc?

@faretek1 faretek1 requested a review from aspizu April 5, 2026 09:15
@faretek1 faretek1 marked this pull request as draft April 5, 2026 09:37
@faretek1 faretek1 marked this pull request as ready for review April 5, 2026 09:45
@aspizu aspizu merged commit 9c86348 into aspizu:main Apr 5, 2026
1 of 2 checks passed
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.

2 participants