Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 44370fa3 authored by Josué Moreau's avatar Josué Moreau
Browse files

add flake.nix for development environment

parent efd0875d
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@
/.merlin
/_CoqProject
/compile.pl
flake.lock
# Generated files
/.depend
/.depend.extr
......
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
flake-utils.url = "github:numtide/flake-utils";
# compcert-capla.url =
# "git+ssh://git@gitlab.inria.fr/fresco/capla/compiler?submodules=1&ref=master-merge-test";
# compcert-capla.flake = false;
};
outputs = { self, nixpkgs, flake-utils }:
with flake-utils.lib;
eachSystem defaultSystems (system:
let
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
# compcert-mod = pkgs.compcert.overrideAttrs (oA: {
# src = compcert-capla;
# });
in rec {
# devShell = pkgs.mkShell {
# nativeBuildInputs = with pkgs; [
# compcert-mod
# coq ocaml
# ocamlPackages.findlib
# ocamlPackages.menhir
# ocamlPackages.menhirLib
# coqPackages.MenhirLib
# coqPackages.flocq
# lapack
# clang
# bash
# gcc
# ];
# };
devShell = pkgs.coqPackages.mkCoqDerivation {
pname = "compcert";
owner = "compcert";
version = "1.0.0";
src = ./.;
propagatedBuildInputs = (with pkgs; [
]) ++ (with pkgs.coqPackages.coq.ocamlPackages; [
ocaml
menhir menhirLib findlib
]) ++ (with pkgs.coqPackages; [
coq
MenhirLib flocq mathcomp-ssreflect mathcomp-algebra mathcomp-zify
]);
};
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment