Skip to content

Commit

Permalink
the 'coq.color' dependency is now not needed for the concrete Minuska
Browse files Browse the repository at this point in the history
  • Loading branch information
h0nzZik committed Jan 22, 2024
1 parent 8bc5558 commit afe4e68
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 3 deletions.
28 changes: 26 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

in {

# The 'matching logic in Coq' library
packages.minuska
= coqPackages.callPackage
( { coq, stdenv }:
Expand All @@ -26,7 +25,6 @@
coq
coqPackages.equations
coqPackages.stdpp
coqPackages.CoLoR
coq.ocaml
coq.ocamlPackages.zarith
];
Expand All @@ -36,6 +34,22 @@
passthru = { inherit coqPackages; };
} ) { } ;

packages.minuska-symbolic
= coqPackages.callPackage
( { coq, stdenv }:
stdenv.mkDerivation {
name = "minuska-symbolic";
src = ./minuska-symbolic;

propagatedBuildInputs = [
self.outputs.packages.${system}.minuska
coqPackages.CoLoR
];
enableParallelBuilding = true;
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];

passthru = { inherit coqPackages; };
} ) { } ;

packages.default = self.outputs.packages.${system}.minuska;

Expand All @@ -48,6 +62,16 @@
inputsFrom = [minuska];
packages = [minuska.coqPackages.coq-lsp minuska.coqPackages.coqide];
};

minuska-symbolic =
let
minuska-symbolic = self.outputs.packages.${system}.minuska-symbolic;
in
pkgs.mkShell {
inputsFrom = [minuska-symbolic];
packages = [minuska-symbolic.coqPackages.coq-lsp minuska-symbolic.coqPackages.coqide];
};

};
}
)
Expand Down
19 changes: 19 additions & 0 deletions minuska-symbolic/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
all: Makefile.coq
@+$(MAKE) -f Makefile.coq all

install: Makefile.coq
@+$(MAKE) -f Makefile.coq install

clean: Makefile.coq
@+$(MAKE) -f Makefile.coq cleanall
@rm -f Makefile.coq Makefile.coq.conf

Makefile.coq: _CoqProject
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq

force _CoqProject Makefile: ;

%: Makefile.coq force
@+$(MAKE) -f Makefile.coq $@

.PHONY: all clean force install
4 changes: 4 additions & 0 deletions minuska-symbolic/_CoqProject
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-R theories MinuskaSymbolic

theories/color.v

File renamed without changes.
1 change: 0 additions & 1 deletion minuska/_CoqProject
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ theories/minuska.v
theories/string_variables.v
theories/BuiltinValue.v
theories/builtins.v
theories/color.v
theories/basic_matching.v
theories/try_match.v
theories/naive_interpreter.v
Expand Down

0 comments on commit afe4e68

Please sign in to comment.