Just a collection of javascript scripts run via bun, in a nix flake so they can be invoked/installed conveniently.
Important
You must have either Nix or NixOS installed to run these commands.
Warning
If you get an error about 'experimental Nix features' being disabled, append --extra-experimental-features "nix-command flakes" after nix to the commands below. Eg. nix --extra-experimental-features "nix-command flakes" run github:ilioscio/jsflake#script1
nix run github:ilioscio/jsflake#script1
nix run github:ilioscio/jsflake#script2
nix run github:ilioscio/jsflake/commit-hash#script1
nix run github:ilioscio/jsflake/v1#script1
# In your configuration.nix:
{
environment.systemPackages = with pkgs; [
inputs.jsscripts.packages.${pkgs.system}.script1
inputs.jsscripts.packages.${pkgs.system}.script2
];
}
Important
You must also include the flake as an input in your flake.nix (or wherever you configure your flake inputs)
# In your flake.nix
{
inputs = {
jsscripts.url = "github:ilioscic/jsflake";
};
}
nix profile install github:ilioscio/jsflake#script1
nix profile install github:ilioscio/jsflake#script1 github:ilioscio/jsflake#script2