3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/fac/default.nix

36 lines
842 B
Nix
Raw Normal View History

2018-01-27 00:20:29 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchurl, makeWrapper, git }:
2018-01-02 16:25:45 +00:00
2018-05-16 17:07:43 +01:00
buildGoPackage rec {
2018-01-02 16:25:45 +00:00
name = "fac-${version}";
2018-05-16 17:07:43 +01:00
version = "1.1.0";
2018-01-02 16:25:45 +00:00
goPackagePath = "github.com/mkchoi212/fac";
src = fetchFromGitHub {
owner = "mkchoi212";
repo = "fac";
rev = "v${version}";
2018-05-16 17:07:43 +01:00
sha256 = "054j8yrblf1frcfn3dwrjbgf000i3ngbaz2c172nwbx75g309ihx";
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 = ''
wrapProgram $bin/bin/fac \
--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
'';
meta = with stdenv.lib; {
description = "CUI for fixing git conflicts";
inherit (src.meta) homepage;
license = licenses.mit;
maintainers = with maintainers; [ dtzWill ];
};
}