nixpkgs/pkgs/by-name/fa/fac/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
985 B
Nix
Raw Normal View History

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 {
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 = ''
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";
maintainers = [ ];
2018-01-02 16:25:45 +00:00
};
}