depot/pkgs/applications/version-management/merge-fmt/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
931 B
Nix

{ lib, fetchurl, buildDunePackage, cmdliner, base, stdio }:
buildDunePackage rec {
pname = "merge-fmt";
version = "0.3";
src = fetchurl {
url =
"https://github.com/hhugo/merge-fmt/releases/download/${version}/merge-fmt-${version}.tbz";
hash = "sha256-F+ds0ToWcKD4NJU3yYSVW4B3m2LBnhR+4QVTDO79q14=";
};
minimalOCamlVersion = "4.06";
duneVersion = "3";
buildInputs = [ cmdliner base stdio ];
# core v0.17 compatibility, obtained by `git diff -r 3e37827~2..3e37827`
patches = [ ./merge-fmt.patch ];
meta = with lib; {
description = "Git mergetool leveraging code formatters";
homepage = "https://github.com/hhugo/merge-fmt";
license = licenses.mit;
longDescription = ''
`merge-fmt` is a small wrapper on top git commands to help resolve
conflicts by leveraging code formatters.
'';
maintainers = [ maintainers.alizter ];
mainProgram = "merge-fmt";
};
}