Make all versions of AbleScript available

Signed-off-by: Federico Damián Schonborn <fdschonborn@gmail.com>
main
parent 979b03d102
commit 4b668fe3c7
No known key found for this signature in database
GPG Key ID: 193F70F15C9AB0A0

@ -1,4 +1,4 @@
packages := "ablescript ablescript-unstable"
packages := "ablescript0_5_2 ablescript0_5 ablescript0_4 ablescript0_3 ablescript0_2 ablescript-unstable"
@_default:
just --list

@ -7,7 +7,7 @@ Nix Flake for AbleScript.
### Using `nix run`
```sh
$ nix run github:FedericoSchonborn/nix-ablescript#ablescript
$ nix run github:FedericoSchonborn/ablescript-nix#ablescript
Hi [AbleScript 0.5.2]
:: /*Hello, AbleScript!*/ print;
Hello, AbleScript!
@ -17,7 +17,7 @@ Hello, AbleScript!
### Inside a `nix shell`
```sh
$ nix shell github:FedericoSchonborn/nix-ablescript#ablescript
$ nix shell github:FedericoSchonborn/ablescript-nix#ablescript
[nix-shell] $ ablescript_cli
Hi [AbleScript 0.5.2]
:: /*Hello, AbleScript!*/ print;
@ -33,7 +33,7 @@ Hello, AbleScript!
# Provides:
# packages.${system}.default (-> packages.${system}.ablescript)
# overlays.default (-> overlays.ablescript)
ablescript.url = "github:FedericoSchonborn/nix-ablescript";
ablescript.url = "github:FedericoSchonborn/ablescript-nix";
# ablescript.inputs.nixpkgs.url = "...";
# ablescript.inputs.flake-utils.url = "...";
};
@ -51,7 +51,7 @@ Hello, AbleScript!
# overlays.default (-> overlays.ablescript)
let
ablescript = fetchTarball {
url = "https://github.com/FedericoSchonborn/nix-ablescript/archive/${commitHash}.zip";
url = "https://github.com/FedericoSchonborn/ablescript-nix/archive/${commitHash}.zip";
sha256 = lib.fakeSha256;
};
in

@ -1,5 +1,102 @@
{
"nodes": {
"ablescript-unstable-src": {
"flake": false,
"locked": {
"lastModified": 1663712937,
"narHash": "sha256-L2KxlHRBPXMDywMqWVX7ua+d8ceeoDJnSfFJIbjGiRM=",
"rev": "8ef7118dc1270386d5455e4d407a272a0c7b0724",
"revCount": 401,
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
},
"original": {
"rev": "8ef7118dc1270386d5455e4d407a272a0c7b0724",
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
}
},
"ablescript0_2-src": {
"flake": false,
"locked": {
"lastModified": 1639522623,
"narHash": "sha256-oKVbvm8DzCbLDPYc8MnmT9/ECK5yq1CgC6/vMRxz1r0=",
"rev": "5293cd960773f179b0f1cf314aaa993288ebcf23",
"revCount": 273,
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
},
"original": {
"rev": "5293cd960773f179b0f1cf314aaa993288ebcf23",
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
}
},
"ablescript0_3-src": {
"flake": false,
"locked": {
"lastModified": 1650139873,
"narHash": "sha256-PfiGzsrzPzwRFQgJLJjt8fZyYpkqZuPK3z8B2fp78s4=",
"rev": "a4e3b98c6a89839557fbbf85d83626c99bb5b126",
"revCount": 333,
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
},
"original": {
"rev": "a4e3b98c6a89839557fbbf85d83626c99bb5b126",
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
}
},
"ablescript0_4-src": {
"flake": false,
"locked": {
"lastModified": 1651864977,
"narHash": "sha256-9RJ/CHdj+hQO9q/GMksvOo1YK1CLkDe8F3hRjb6sSDI=",
"rev": "cda63c733cb5daff66b596f27ec5765aab227d35",
"revCount": 370,
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
},
"original": {
"rev": "cda63c733cb5daff66b596f27ec5765aab227d35",
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
}
},
"ablescript0_5-src": {
"flake": false,
"locked": {
"lastModified": 1656759310,
"narHash": "sha256-FVtyVO54YANMnAZyKyw9/8RvrrMwqQqyEKu/S4rSfs4=",
"ref": "refs/heads/master",
"rev": "70d6bf661fa89524c72a3ad8ca8027bf9c34000c",
"revCount": 392,
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
},
"original": {
"rev": "70d6bf661fa89524c72a3ad8ca8027bf9c34000c",
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
}
},
"ablescript0_5_2-src": {
"flake": false,
"locked": {
"lastModified": 1663185422,
"narHash": "sha256-3AvAqeZmH5foGS0blKbMdQbXgnAY6lNxNnYJhF9GAys=",
"rev": "daca854db4b8fa61f49212a1735e7ffc2d228850",
"revCount": 398,
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
},
"original": {
"rev": "daca854db4b8fa61f49212a1735e7ffc2d228850",
"type": "git",
"url": "https://git.ablecorp.us/AbleScript/able-script"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -18,11 +115,11 @@
},
"flake-utils": {
"locked": {
"lastModified": 1667077288,
"narHash": "sha256-bdC8sFNDpT0HK74u9fUkpbf1MEzVYJ+ka7NXCdgBoaA=",
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
@ -33,11 +130,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1667055375,
"narHash": "sha256-xfSTHYxuKRiqF4dcuAFdti1OUvrC2lHpQqCHWUK5/JA=",
"lastModified": 1667292599,
"narHash": "sha256-7ISOUI1aj6UKMPIL+wwthENL22L3+A9V+jS8Is3QsRo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7f9be6a505a31f88499c5d20d11f98accf5ae6ba",
"rev": "ef2f213d9659a274985778bff4ca322f3ef3ac68",
"type": "github"
},
"original": {
@ -49,6 +146,12 @@
},
"root": {
"inputs": {
"ablescript-unstable-src": "ablescript-unstable-src",
"ablescript0_2-src": "ablescript0_2-src",
"ablescript0_3-src": "ablescript0_3-src",
"ablescript0_4-src": "ablescript0_4-src",
"ablescript0_5-src": "ablescript0_5-src",
"ablescript0_5_2-src": "ablescript0_5_2-src",
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"

@ -2,35 +2,95 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
ablescript0_5_2-src = {
# v0.5.2
url = "git+https://git.ablecorp.us/AbleScript/able-script?rev=daca854db4b8fa61f49212a1735e7ffc2d228850";
flake = false;
};
ablescript0_5-src = {
# v0.5.0
url = "git+https://git.ablecorp.us/AbleScript/able-script?rev=70d6bf661fa89524c72a3ad8ca8027bf9c34000c";
flake = false;
};
ablescript0_4-src = {
# v0.4.0
url = "git+https://git.ablecorp.us/AbleScript/able-script?rev=cda63c733cb5daff66b596f27ec5765aab227d35";
flake = false;
};
ablescript0_3-src = {
# v0.3.0
url = "git+https://git.ablecorp.us/AbleScript/able-script?rev=a4e3b98c6a89839557fbbf85d83626c99bb5b126";
flake = false;
};
ablescript0_2-src = {
# v0.2.0
url = "git+https://git.ablecorp.us/AbleScript/able-script?rev=5293cd960773f179b0f1cf314aaa993288ebcf23";
flake = false;
};
ablescript-unstable-src = {
url = "git+https://git.ablecorp.us/AbleScript/able-script?rev=8ef7118dc1270386d5455e4d407a272a0c7b0724";
flake = false;
};
};
outputs = {
nixpkgs,
flake-utils,
ablescript0_5_2-src,
ablescript0_5-src,
ablescript0_4-src,
ablescript0_3-src,
ablescript0_2-src,
ablescript-unstable-src,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in rec {
packages = rec {
ablescript = pkgs.callPackage ./packages/ablescript.nix {
ablescript0_5_2 = pkgs.callPackage ./packages/ablescript.nix {
version = "0.5.2";
sha256 = "wFmg9BTo2+JSVabWDIQAoLdT7OYuMxLxlvq6yL8g4EM=";
cargoSha256 = "2tBb8FdXknTbgFrjfO5ZM3O9OAnVuLVY/YcL8y/W7nA=";
src = ablescript0_5_2-src;
};
ablescript0_5 = pkgs.callPackage ./packages/ablescript.nix {
version = "0.5.0";
src = ablescript0_5-src;
};
ablescript0_4 = pkgs.callPackage ./packages/ablescript.nix {
version = "0.4.0";
src = ablescript0_4-src;
};
ablescript0_3 = pkgs.callPackage ./packages/ablescript.nix {
version = "0.3.0";
src = ablescript0_3-src;
};
ablescript0_2 = pkgs.callPackage ./packages/ablescript.nix {
version = "0.2.0";
src = ablescript0_2-src;
};
ablescript-unstable = pkgs.callPackage ./packages/ablescript.nix {
stable = false;
version = "unstable-2022-09-20";
commit = "8ef7118dc1270386d5455e4d407a272a0c7b0724";
sha256 = "5UVuyTEKFpq7DcTn7HHNBOv874MvNwH83CWjtMFXBgA=";
cargoSha256 = "wa1D+C3d+pFhUo8wexCbfv5A/O3QyXaE6xBRH/JclWg=";
src = ablescript-unstable-src;
};
ablescript = ablescript0_5_2;
default = ablescript;
};

@ -3,25 +3,15 @@
rustPlatform,
fetchurl,
version,
stable ? true,
commit ? "",
src,
sha256 ? lib.fakeSha256,
cargoSha256 ? lib.fakeSha256,
...
}:
rustPlatform.buildRustPackage rec {
pname = "ablescript";
inherit version;
src = fetchurl {
url =
if stable
then "https://git.ablecorp.us/AbleScript/able-script/archive/v${version}.tar.gz"
else "https://git.ablecorp.us/AbleScript/able-script/archive/${commit}.tar.gz";
inherit sha256;
};
inherit cargoSha256;
inherit version src cargoSha256;
pname = "ablescript";
meta = with lib; {
description = "A programming language designed to be bad";
homepage = "https://git.ablecorp.us/AbleScript/able-script";

Loading…
Cancel
Save