mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
b7ed446cd1
Fixes #33321.
31 lines
676 B
Nix
31 lines
676 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, git }:
|
|
|
|
buildGoPackage rec {
|
|
name = "fac-${version}";
|
|
version = "1.0.1";
|
|
|
|
goPackagePath = "github.com/mkchoi212/fac";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mkchoi212";
|
|
repo = "fac";
|
|
rev = "v${version}";
|
|
sha256 = "1j5kip3l3p9qlly03pih905sdz3ncvpj7135jpnfhckbk1s5x9dc";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $bin/bin/fac \
|
|
--prefix PATH : ${git}/bin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "CUI for fixing git conflicts";
|
|
inherit (src.meta) homepage;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|
|
|