Nix Flake for AbleScript
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.
Federico Damián Schonborn e9177cb813
Remove Nil and Alejandra inputs
7 months ago
.github/workflows Rename repo, add Nil and Alejandra inputs and macOS support (maybe?) 7 months ago
packages/ablescript Add missing shell.nix 7 months ago
.envrc Drop flake-utils 7 months ago
.gitignore Drop flake-utils 7 months ago
Justfile Make all versions of AbleScript available 7 months ago
LICENSE Initial commit 8 months ago
README.md Add missing shell.nix 7 months ago
default.nix Initial commit 8 months ago
flake.lock Remove Nil and Alejandra inputs 7 months ago
flake.nix Remove Nil and Alejandra inputs 7 months ago
shell.nix Add missing shell.nix 7 months ago

README.md

AbleScript for Nix

Cachix

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