Merge master into staging-next
This commit is contained in:
43
pkgs/development/tools/bashate/default.nix
Normal file
43
pkgs/development/tools/bashate/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, Babel
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, fixtures
|
||||
, mock
|
||||
, pbr
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "bashate";
|
||||
version = "2.0.0";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "05qsaaqfpvr6h4g19prbkpznwb9a4dwzyzivdzh9x80cgkq0r6gb";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
Babel
|
||||
pbr
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
fixtures
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "bashate" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Style enforcement for bash programs";
|
||||
homepage = "https://opendev.org/openstack/bashate";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
77
pkgs/development/tools/ocaml/merlin/4.x.nix
Normal file
77
pkgs/development/tools/ocaml/merlin/4.x.nix
Normal file
@@ -0,0 +1,77 @@
|
||||
{ lib
|
||||
, substituteAll
|
||||
, fetchurl
|
||||
, ocaml
|
||||
, dune_2
|
||||
, buildDunePackage
|
||||
, yojson
|
||||
, csexp
|
||||
, result
|
||||
, dot-merlin-reader
|
||||
, jq
|
||||
, menhir
|
||||
}:
|
||||
|
||||
let
|
||||
merlinVersion = "4.1";
|
||||
|
||||
hashes = {
|
||||
"4.1-411" = "9e2e6fc799c93ce1f2c7181645eafa37f64e43ace062b69218e1c29ac459937d";
|
||||
"4.1-412" = "fb4caede73bdb8393bd60e31792af74b901ae2d319ac2f2a2252c694d2069d8d";
|
||||
};
|
||||
|
||||
ocamlVersionShorthand = lib.concatStrings
|
||||
(lib.take 2 (lib.splitVersion ocaml.version));
|
||||
|
||||
version = "${merlinVersion}-${ocamlVersionShorthand}";
|
||||
in
|
||||
|
||||
if !lib.hasAttr version hashes
|
||||
then builtins.throw "merlin ${merlinVersion} is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
buildDunePackage {
|
||||
pname = "merlin";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-v${version}.tbz";
|
||||
sha256 = hashes."${version}";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader";
|
||||
dune = "${dune_2}/bin/dune";
|
||||
})
|
||||
];
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
buildInputs = [
|
||||
dot-merlin-reader
|
||||
yojson
|
||||
csexp
|
||||
result
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
patchShebangs tests/merlin-wrapper
|
||||
dune runtest # filtering with -p disables tests
|
||||
runHook postCheck
|
||||
'';
|
||||
checkInputs = [
|
||||
jq
|
||||
menhir
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An editor-independent tool to ease the development of programs in OCaml";
|
||||
homepage = "https://github.com/ocaml/merlin";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.vbgl maintainers.sternenseemann ];
|
||||
};
|
||||
}
|
||||
@@ -3,8 +3,14 @@
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "merlin";
|
||||
version = "3.4.2";
|
||||
|
||||
inherit (dot-merlin-reader) src version useDune2;
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-v${version}.tbz";
|
||||
sha256 = "e1b7b897b11119d92995c558530149fd07bd67a4aaf140f55f3c4ffb5e882a81";
|
||||
};
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.02.3";
|
||||
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "dot-merlin-reader";
|
||||
version = "3.4.2";
|
||||
version = "4.1";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.02.1";
|
||||
minimumOCamlVersion = "4.06";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-v${version}.tbz";
|
||||
sha256 = "109ai1ggnkrwbzsl1wdalikvs1zx940m6n65jllxj68in6bvidz1";
|
||||
url = "https://github.com/ocaml/merlin/releases/download/v${version}/dot-merlin-reader-v${version}.tbz";
|
||||
sha256 = "14a36d6fb8646a5df4530420a7861722f1a4ee04753717947305e3676031e7cd";
|
||||
};
|
||||
|
||||
buildInputs = [ yojson csexp result ];
|
||||
|
||||
Reference in New Issue
Block a user