You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 months ago | |
---|---|---|
.github/workflows | 7 months ago | |
packages/ablescript | 7 months ago | |
.envrc | 7 months ago | |
.gitignore | 7 months ago | |
Justfile | 7 months ago | |
LICENSE | 8 months ago | |
README.md | 7 months ago | |
default.nix | 8 months ago | |
flake.lock | 7 months ago | |
flake.nix | 7 months ago | |
shell.nix | 7 months ago |
README.md
AbleScript for Nix
Nix Flake for AbleScript.
Usage
Using nix run
$ nix run github:FedericoSchonborn/ablescript-nix#ablescript
Hi [AbleScript 0.5.2]
:: /*Hello, AbleScript!*/ print;
Hello, AbleScript!
::
Inside a nix shell
$ nix shell github:FedericoSchonborn/ablescript-nix#ablescript
[nix-shell] $ ablescript_cli
Hi [AbleScript 0.5.2]
:: /*Hello, AbleScript!*/ print;
Hello, AbleScript!
::
In a Nix Flake
{
inputs = {
# Provides:
# packages.${system}.default (-> packages.${system}.ablescript)
# overlays.default (-> overlays.ablescript)
ablescript.url = "github:FedericoSchonborn/ablescript-nix";
# ablescript.inputs.nixpkgs.url = "...";
# ablescript.inputs.flake-utils.url = "...";
};
outputs = { ablescript, ... }: { ... };
}
Using fetchTarball
{ lib, fetchTarball, ... }:
# Provides:
# packages.${system}.default (-> packages.${system}.ablescript)
# overlays.default (-> overlays.ablescript)
let
ablescript = fetchTarball {
url = "https://github.com/FedericoSchonborn/ablescript-nix/archive/${commitHash}.zip";
sha256 = lib.fakeSha256;
};
in
{ ... }
Binary cache
A binary cache is available at ablescript
.
$ cachix use ablescript
Configured https://ablescript.cachix.org binary cache in .../nix/nix.conf