style: Formatting

This commit is contained in:
Alain 2021-10-29 14:59:16 +02:00
parent cfcc454022
commit bba896c949
6 changed files with 22 additions and 44 deletions

1
.gitignore vendored
View File

@ -1,7 +1,6 @@
_build/
_opam/
result
*.install
*.spellok
*.catala*.errors

View File

@ -1,7 +1,4 @@
{ lib
, fetchFromGitHub
, buildDunePackage
}:
{ lib, fetchFromGitHub, buildDunePackage }:
# We need the very last version "bleeding edge" since previous versions don't use dune.
@ -23,7 +20,8 @@ buildDunePackage rec {
meta = with lib; {
homepage = "https://rlepigre.github.io/ocaml-bindlib/";
description = "Bindlib is a library allowing the manipulation of data structures with bound variables";
description =
"Bindlib is a library allowing the manipulation of data structures with bound variables";
license = licenses.lgpl3;
maintainers = [ ];
};

View File

@ -1,7 +1,4 @@
{ lib
, fetchurl
, buildDunePackage
}:
{ lib, fetchurl, buildDunePackage }:
buildDunePackage rec {
pname = "unionFind";
@ -12,7 +9,8 @@ buildDunePackage rec {
useDune2 = true;
src = fetchurl {
url = "https://gitlab.inria.fr/fpottier/unionFind/-/archive/20200320/archive.tar.gz";
url =
"https://gitlab.inria.fr/fpottier/unionFind/-/archive/20200320/archive.tar.gz";
hash = "sha256-szIwK9QyAw6fIIWDOiiyfyrEFZaaErGPRLkGhIK9STI=";
};

View File

@ -1,24 +1,6 @@
{ lib
, fetchFromGitHub
, buildDunePackage
, ansiterminal
, sedlex_2
, menhir
, unionfind
, bindlib
, cmdliner
, re
, zarith
, zarith_stubs_js
, ocamlgraph
, calendar
, visitors
, benchmark
, js_of_ocaml
, js_of_ocaml-ppx
, camomile
, cppo
}:
{ lib, fetchFromGitHub, buildDunePackage, ansiterminal, sedlex_2, menhir
, unionfind, bindlib, cmdliner, re, zarith, zarith_stubs_js, ocamlgraph
, calendar, visitors, benchmark, js_of_ocaml, js_of_ocaml-ppx, camomile, cppo }:
buildDunePackage rec {
pname = "catala";
@ -54,11 +36,11 @@ buildDunePackage rec {
patches = [ ./.nix/no-web.patch ];
meta = with lib; {
homepage = "https://catala-lang.org";
description = "Catala is a domain-specific programming language designed for deriving correct-by-construction implementations from legislative texts.";
description =
"Catala is a domain-specific programming language designed for deriving correct-by-construction implementations from legislative texts.";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}
}

View File

@ -2,6 +2,6 @@
with pkgs;
ocamlPackages.callPackage ./. {
bindlib = ocamlPackages.callPackage ./.nix/bindlib.nix {};
unionfind = ocamlPackages.callPackage ./.nix/unionfind.nix {};
}
bindlib = ocamlPackages.callPackage ./.nix/bindlib.nix { };
unionfind = ocamlPackages.callPackage ./.nix/unionfind.nix { };
}

View File

@ -1,10 +1,11 @@
{ pkgs? import <nixpkgs> { } }:
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let pkg = ocamlPackages.callPackage ./. {
bindlib = ocamlPackages.callPackage ./.nix/bindlib.nix {};
unionfind = ocamlPackages.callPackage ./.nix/unionfind.nix {};
};
let
pkg = ocamlPackages.callPackage ./. {
bindlib = ocamlPackages.callPackage ./.nix/bindlib.nix { };
unionfind = ocamlPackages.callPackage ./.nix/unionfind.nix { };
};
in mkShell {
inputsFrom = [ pkg ];
buildInputs = pkg.propagatedBuildInputs ++ [
@ -15,4 +16,4 @@ in mkShell {
ocamlPackages.utop
ocamlPackages.ocaml-lsp
];
}
}