2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper, git }:
|
2018-01-02 16:25:45 +00:00
|
|
|
|
2018-05-16 17:07:43 +01:00
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fac";
|
2018-06-25 15:15:02 +01:00
|
|
|
version = "2.0.0";
|
2018-01-02 16:25:45 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mkchoi212/fac";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkchoi212";
|
|
|
|
repo = "fac";
|
|
|
|
rev = "v${version}";
|
2018-06-25 15:15:02 +01:00
|
|
|
sha256 = "054bbiw0slz9szy3ap2sh5dy97w3g7ms27rd3ww3i1zdhvnggwpc";
|
2018-01-02 16:25:45 +00:00
|
|
|
};
|
|
|
|
|
2018-05-16 17:07:43 +01:00
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2018-01-02 16:25:45 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-28 02:50:57 +01:00
|
|
|
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 17:07:43 +01:00
|
|
|
# Install man page, not installed by default
|
|
|
|
install -D go/src/${goPackagePath}/assets/doc/fac.1 $out/share/man/man1/fac.1
|
2018-01-02 16:25:45 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-01-02 16:25:45 +00:00
|
|
|
description = "CUI for fixing git conflicts";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|