2023-12-31 10:48:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2023-12-31 10:50:00 +00:00
|
|
|
makeBinaryWrapper,
|
|
|
|
installShellFiles,
|
2023-12-31 10:48:13 +00:00
|
|
|
git,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fac";
|
2023-12-31 10:50:00 +00:00
|
|
|
version = "2.0.0-unstable-2023-12-29";
|
2018-01-02 16:25:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkchoi212";
|
|
|
|
repo = "fac";
|
2023-12-31 10:48:13 +00:00
|
|
|
rev = "d232b05149564701ca3a21cd1a07be2540266cb2";
|
|
|
|
hash = "sha256-puSHbrzxTUebK1qRdWh71jY/f7TKgONS45T7PcZcy00=";
|
2018-01-02 16:25:45 +00:00
|
|
|
};
|
|
|
|
|
2023-12-31 10:48:13 +00:00
|
|
|
vendorHash = "sha256-bmGRVTjleAFS5GGf2i/zN8k3SBtaEc3RbKSVZyF6eN4=";
|
2018-05-16 16:07:43 +00:00
|
|
|
|
2023-12-31 10:50:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeBinaryWrapper
|
|
|
|
installShellFiles
|
|
|
|
];
|
2018-01-02 16:25:45 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-28 01:50:57 +00:00
|
|
|
wrapProgram $out/bin/fac \
|
2023-12-31 10:50:00 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ git ]}
|
2018-01-27 00:20:29 +00:00
|
|
|
|
2018-05-16 16:07:43 +00:00
|
|
|
# Install man page, not installed by default
|
2023-12-31 10:50:00 +00:00
|
|
|
installManPage assets/doc/fac.1
|
2018-01-02 16:25:45 +00:00
|
|
|
'';
|
|
|
|
|
2023-12-31 10:48:13 +00:00
|
|
|
meta = {
|
2023-12-31 10:50:00 +00:00
|
|
|
changelog = "https://github.com/mkchoi212/fac/releases/tag/v${version}";
|
2018-01-02 16:25:45 +00:00
|
|
|
description = "CUI for fixing git conflicts";
|
2023-12-31 10:48:13 +00:00
|
|
|
homepage = "https://github.com/mkchoi212/fac";
|
|
|
|
license = lib.licenses.mit;
|
2023-12-31 10:50:00 +00:00
|
|
|
mainProgram = "fac";
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2018-01-02 16:25:45 +00:00
|
|
|
};
|
|
|
|
}
|