Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ manager_deepsec
/Examples/session_equivalence/tests/scratch.dps
/documentation/files/*
!/documentation/files/.content

.envrc
.direnv
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ config:

# configures and compiles
compil:
@ocamlbuild $(PACKAGES) main.$(EXTENSION) worker.$(EXTENSION) main_api.$(EXTENSION)
@ocamlbuild -use-ocamlfind $(PACKAGES) main.$(EXTENSION) worker.$(EXTENSION) main_api.$(EXTENSION)
@mv _build/Source/main.$(EXTENSION) deepsec
@mv _build/Source/main_api.$(EXTENSION) deepsec_api
@mv _build/Source/distributed/worker.$(EXTENSION) deepsec_worker
Expand Down
207 changes: 207 additions & 0 deletions flake.lock

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

37 changes: 37 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
description = "DeepSec: Deciding Equivalence Properties in Security Protocols.

Automated verification has become an essential part in the security evaluation of cryptographic protocols. Recently, there has been a considerable effort to lift the theory and tool support that existed for reachability properties to the more complex case of equivalence properties. **DeepSec** allows you to decide trace equivalence and session equivalence for a large variety of cryptographic primitives---those that can be represented by a subterm convergent destructor rewrite system.
";

inputs = {
opam-nix.url = "github:tweag/opam-nix";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.follows = "opam-nix/nixpkgs";
# nixpkgs.url = "github:nixos/nixpkgs";
};

outputs = { self, flake-utils, opam-nix
, nixpkgs
}@inputs:
# Don't forget to put the package name instead of `throw':
let
package = "deepsec";
in
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
on = opam-nix.lib.${system};
scope =
on.buildOpamProject { } package ./. { ocaml-base-compiler = "*"; };
overlay = final: prev:
{
# Your overrides go here
};
in {
legacyPackages = scope.overrideScope overlay;

defaultPackage = self.legacyPackages.${system}.${package};

});
}
2 changes: 1 addition & 1 deletion script/check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/nix/store/rj7zvmif800bgg3sbznq6g5g438jx104-bash-5.2p37/bin/bash

# checks requirements for DeepSec installation

Expand Down
2 changes: 1 addition & 1 deletion script/cpu_linux_osx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/nix/store/rj7zvmif800bgg3sbznq6g5g438jx104-bash-5.2p37/bin/sh

# macOS: Use `sysctl -n hw.*cpu_max`, which returns the values of
# interest directly.
Expand Down