mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
style: Formatting
This commit is contained in:
parent
cfcc454022
commit
bba896c949
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
_build/
|
||||
_opam/
|
||||
result
|
||||
|
||||
*.install
|
||||
*.spellok
|
||||
*.catala*.errors
|
||||
|
@ -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 = [ ];
|
||||
};
|
||||
|
@ -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=";
|
||||
};
|
||||
|
||||
|
28
default.nix
28
default.nix
@ -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,10 +36,10 @@ 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; [ ];
|
||||
};
|
||||
|
@ -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 { };
|
||||
}
|
11
shell.nix
11
shell.nix
@ -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 ++ [
|
||||
|
Loading…
Reference in New Issue
Block a user