nixpkgs/pkgs/development/tools/fac/default.nix

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

39 lines
922 B
Nix
Raw Normal View History

2023-12-31 10:48:13 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, makeWrapper
, git
}:
buildGoModule rec {
pname = "fac";
2023-12-31 10:48:13 +00:00
version = "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
2018-01-02 16:25:45 +00:00
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/fac \
2018-01-02 16:25:45 +00:00
--prefix PATH : ${git}/bin
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:48:13 +00:00
install -D assets/doc/fac.1 $out/share/man/man1/fac.1
2018-01-02 16:25:45 +00:00
'';
2023-12-31 10:48:13 +00:00
meta = {
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";
changelog = "https://github.com/mkchoi212/fac/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dtzWill ];
2018-01-02 16:25:45 +00:00
};
}