Skip to content

Commit

Permalink
Pinned agda version to 2.6.4.3. (#22)
Browse files Browse the repository at this point in the history
* Pinned agda version to 2.6.4.3.
* Added agda instructions to read-me file.

Fixes #21
  • Loading branch information
bwbush authored Sep 24, 2024
1 parent c30a055 commit 6831421
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 20 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ More documentation about Leios can be found in the [web site](https://leios.card
* [leios-sim](leios-sim) contains experimental code to simulate the Leios protocol
* [site](site) contains the sources of the aforementioned web site

## Specification

Build the Agda specification for Leios using either

```console
$ nix build --no-link --accept-flake-config .#leiosSpec
```

or

```console
$ nix develop

$ cd formal-spec

$ agda Leios/SimpleSpec.agda
```

## Archive

The [Leios CIP](https://github.com/cardano-foundation/CIPs/pull/379)
Expand Down
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 3 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,18 @@
# Docs for this file: https://github.com/input-output-hk/iogx/blob/main/doc/api.md#flakenix
{
description = "Change the description field in your flake.nix";
description = "Ouroboros Leios";


inputs = {
iogx = {
url = "github:input-output-hk/iogx";
};

# nixpkgs.follows = "haskell-nix/nixpkgs";

# hackage = {
# url = "github:input-output-hk/hackage.nix";
# flake = false;
# };

# CHaP = {
# url = "github:input-output-hk/cardano-haskell-packages?ref=repo";
# flake = false;
# };

# haskell-nix = {
# url = "github:input-output-hk/haskell.nix";
# inputs.hackage.follows = "hackage";
# };
# Agda version 2.6.4.3
agda-nixpkgs.url = "github:NixOS/nixpkgs?ref=4284c2b73c8bce4b46a6adf23e16d9e2ec8da4bb";

};


# Docs for mkFlake: https://github.com/input-output-hk/iogx/blob/main/doc/api.md#mkflake
outputs = inputs: inputs.iogx.lib.mkFlake {

inherit inputs;
Expand Down
2 changes: 1 addition & 1 deletion nix/agda.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let
else "";
};

customAgda = pkgs;
customAgda = inputs.agda-nixpkgs.legacyPackages;

agdaStdlib = customAgda.agdaPackages.standard-library;

Expand Down

0 comments on commit 6831421

Please sign in to comment.