Skip to content

Commit

Permalink
Use latest version of Agda from horizon-advance
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Jun 18, 2024
1 parent 38ce47e commit 12952b8
Show file tree
Hide file tree
Showing 2 changed files with 343 additions and 9 deletions.
340 changes: 334 additions & 6 deletions flake.lock

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

12 changes: 9 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

description = "Hydra Formal Specification in Agda";

nixConfig = {
extra-substituters = "https://horizon.cachix.org";
extra-trusted-public-keys = "horizon.cachix.org-1:MeEEDRhRZTgv/FFGCv3479/dmJDfJ82G6kfUDxMSAw0=";
};

inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
horizon-advance.url = "git+https://gitlab.horizon-haskell.net/package-sets/horizon-advance";
nixpkgs.url = "github:nixos/nixpkgs";
};

Expand All @@ -13,14 +19,14 @@
"aarch64-darwin"
"x86_64-linux"
];
perSystem = { pkgs, ... }:
perSystem = { pkgs, system, ... }:
rec {
packages = {
hydra-agda-spec = pkgs.agdaPackages.mkDerivation {
hydra-agda-spec = pkgs.stdenv.mkDerivation {
pname = "hydra-formal-specification";
version = "0.0.1";
src = ./.;
buildInputs = [ pkgs.agda ];
buildInputs = [ inputs.horizon-advance.packages.${system}.Agda ];
meta = { };
buildPhase = ''
agda --latex Hydra/Protocol/Main.lagda
Expand Down

0 comments on commit 12952b8

Please sign in to comment.