Skip to content

Commit

Permalink
chore: update nix flake
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Caglayan <[email protected]>

<!-- ps-id: 2fce0118-1e74-40fc-8d60-78f1f17bbef3 -->
  • Loading branch information
Alizter committed Oct 8, 2024
1 parent f14c526 commit d1a2856
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
14 changes: 7 additions & 7 deletions flake.lock

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

27 changes: 19 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "A Coq library for Homotopy Type Theory";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/master";

flake-utils.url = "github:numtide/flake-utils";
};
Expand All @@ -16,25 +16,36 @@
coqPackages = pkgs.mkCoqPackages coq // {
__attrsFailEvaluation = true;
};
in { extraPackages ? [ coqPackages.coq-lsp ] }:
in
{ extraPackages ? [ coqPackages.coq-lsp ] }:
pkgs.mkShell {
buildInputs = with coqPackages;
buildInputs =
[ pkgs.dune_3 pkgs.ocaml ] ++ extraPackages ++ [ coq ];
};
in {
in
{
packages.default = pkgs.coqPackages.mkCoqDerivation {
pname = "hott";
version = "8.19";
version = "8.20";
src = self;
useDune = true;
};

devShells.default = makeDevShell { coq = pkgs.coq_8_20; } { };
devShells.coq_8_19 = makeDevShell { coq = pkgs.coq_8_19; } { };
devShells.default =
makeDevShell
{ coq = pkgs.coq_8_20; }
{ };

devShells.coq_8_19 =
makeDevShell
{ coq = pkgs.coq_8_19; }
{ };

# To use, pass --impure to nix develop
devShells.coq_master =
makeDevShell { coq = pkgs.coq.override { version = "master"; }; } { };
makeDevShell
{ coq = pkgs.coq.override { version = "master"; }; }
{ extraPackages = [ ]; };

formatter = pkgs.nixpkgs-fmt;
});
Expand Down

0 comments on commit d1a2856

Please sign in to comment.