Skip to content

Commit

Permalink
flake: Fix Coq build
Browse files Browse the repository at this point in the history
Properly use the `release` attribute set in `mkCoqDerivation`.
  • Loading branch information
spacefrogg committed May 13, 2024
1 parent 909c318 commit 30e0dfc
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@
let
koikaPkg = { lib, mkCoqDerivation, coq, python3, boost, gtkwave }: mkCoqDerivation rec {
pname = "koika";
version = "0.0.1";
defaultVersion = "0.0.1";

opam-name = "koika";
useDune = true;

src = lib.cleanSourceWith {
src = lib.cleanSource ./.;
filter = let inherit (lib) hasSuffix; in path: type:
(! hasSuffix ".gitignore" path)
&& (! hasSuffix "flake.nix" path)
&& (! hasSuffix "flake.lock" path)
&& (! hasSuffix "_build" path);
};

# NOTE: Add more Coq releases here and at the callsite of injectKoika
release."8.14" = {
version = "0.0.1";
inherit src;
release."0.0.1" = {
src = lib.const (lib.cleanSourceWith {
src = lib.cleanSource ./.;
filter = let inherit (lib) hasSuffix; in path: type:
(! hasSuffix ".gitignore" path)
&& (! hasSuffix "flake.nix" path)
&& (! hasSuffix "flake.lock" path)
&& (! hasSuffix "_build" path);
});
};

enableParallelBuilding = true;
Expand Down

0 comments on commit 30e0dfc

Please sign in to comment.