Files
nixpkgs/pkgs/development/ocaml-modules/git/default.nix
T
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

105 lines
1.5 KiB
Nix

{
stdenv,
lib,
fetchurl,
buildDunePackage,
alcotest,
mirage-crypto-rng,
git-binary,
angstrom,
astring,
cstruct,
decompress,
digestif,
encore,
fmt,
checkseum,
ke,
logs,
lwt,
ocamlgraph,
uri,
rresult,
base64,
hxd,
bigstringaf,
optint,
mirage-flow,
domain-name,
emile,
mimic,
carton,
carton-lwt,
carton-git,
ipaddr,
psq,
crowbar,
alcotest-lwt,
cmdliner,
}:
buildDunePackage rec {
pname = "git";
version = "3.17.0";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
hash = "sha256-7yANBBLtGlOFJdBQEpiJDguJPgIFKAlNajrhI1n9AmU=";
};
buildInputs = [
base64
];
propagatedBuildInputs = [
angstrom
astring
checkseum
cstruct
decompress
digestif
encore
fmt
ke
logs
lwt
ocamlgraph
uri
rresult
bigstringaf
optint
mirage-flow
domain-name
emile
mimic
carton
carton-lwt
carton-git
ipaddr
psq
hxd
];
nativeCheckInputs = [
git-binary
];
checkInputs = [
alcotest
alcotest-lwt
mirage-crypto-rng
crowbar
cmdliner
];
doCheck = !stdenv.hostPlatform.isAarch64;
meta = {
description = "Git format and protocol in pure OCaml";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [
sternenseemann
vbgl
];
homepage = "https://github.com/mirage/ocaml-git";
};
}