-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
120 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ ocamlPackages, fetchurl }: | ||
|
||
ocamlPackages.overrideScope' (self: super: { | ||
cmdliner_1_1_0 = super.cmdliner.overrideAttrs (o: rec { | ||
version = "1.1.0"; | ||
src = fetchurl { | ||
url = "https://erratique.ch/software/${o.pname}/releases/${o.pname }-${version}.tbz"; | ||
sha256 = "sha256-irWd4HTlJSYuz3HMgi1de2GVL2qus0QjeCe1WdsSs8Q="; | ||
}; | ||
}); | ||
alcotest = (super.alcotest.override { | ||
cmdliner = self.cmdliner_1_1_0; | ||
}).overrideAttrs (_: { | ||
doCheck = false; | ||
}); | ||
bindlib = ocamlPackages.callPackage ./bindlib.nix { }; | ||
unionfind = ocamlPackages.callPackage ./unionfind.nix { }; | ||
ppx_yojson_conv = ocamlPackages.callPackage ./ppx_yojson_conv.nix { }; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ lib, fetchurl, buildDunePackage, ppxlib, ppx_yojson_conv_lib, ppx_js_style }: | ||
|
||
buildDunePackage rec { | ||
pname = "ppx_yojson_conv"; | ||
version = "0.14.0"; | ||
|
||
minimumOCamlVersion = "4.0.8"; | ||
|
||
useDune2 = true; | ||
|
||
propagatedBuildInputs = [ | ||
ppxlib ppx_yojson_conv_lib ppx_js_style | ||
]; | ||
|
||
src = fetchurl | ||
{ | ||
url = "https://ocaml.janestreet.com/ocaml-core/v0.14/files/ppx_yojson_conv-v0.14.0.tar.gz"; | ||
sha256 = "0ls6vzj7k0wrjliifqczs78anbc8b88as5w7a3wixfcs1gjfsp2w"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
inputs = { | ||
flake-utils.url = github:numtide/flake-utils; | ||
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable; | ||
}; | ||
|
||
outputs = {nixpkgs, flake-utils, ...}: | ||
let | ||
systems = [ "x86_64-linux" ]; | ||
in flake-utils.lib.eachSystem systems (system: | ||
let | ||
pkgs = import nixpkgs { inherit system; }; | ||
ocamlPackages = pkgs.callPackage ./.nix/packages.nix {}; | ||
in | ||
rec { | ||
packages = { | ||
catala = ocamlPackages.callPackage ./. {}; | ||
}; | ||
defaultPackage = packages.catala; | ||
devShell = pkgs.mkShell { | ||
inputsFrom = [packages.catala]; | ||
buildInputs = [ | ||
pkgs.inotify-tools | ||
ocamlPackages.merlin | ||
pkgs.ocamlformat | ||
ocamlPackages.ocp-indent | ||
ocamlPackages.utop | ||
ocamlPackages.ocaml-lsp | ||
]; | ||
}; | ||
} | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.