This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
42
unikernel/duniverse/csexp/flake.nix
Normal file
42
unikernel/duniverse/csexp/flake.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
description = "csexp Nix Flake";
|
||||
|
||||
inputs.nix-filter.url = "github:numtide/nix-filter";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, nix-filter }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages."${system}";
|
||||
inherit (pkgs.ocamlPackages) buildDunePackage;
|
||||
in
|
||||
rec {
|
||||
packages = rec {
|
||||
default = csexp;
|
||||
csexp = buildDunePackage {
|
||||
pname = "csexp";
|
||||
version = "n/a";
|
||||
src = ./.;
|
||||
duneVersion = "3";
|
||||
propagatedBuildInputs = with pkgs.ocamlPackages; [ ];
|
||||
checkInputs = with pkgs.ocamlPackages; [
|
||||
ppx_inline_test
|
||||
ppx_expect
|
||||
];
|
||||
doCheck = true;
|
||||
};
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
inputsFrom = pkgs.lib.attrValues packages;
|
||||
buildInputs = with pkgs.ocamlPackages; [
|
||||
dune-release
|
||||
pkgs.ccls
|
||||
ocaml-lsp
|
||||
pkgs.ocamlformat
|
||||
ppx_bench
|
||||
core_bench
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue