nixpkgs/pkgs/development/tools/fac/default.nix
Will Dietz 44de467c7c fac: 1.1.0 -> 2.0.0
* update deps (dep2nix)
* seems to need $HOME/.fac.yml or emits warning
  (looks like even `touch ~/.fac.yml` appeases this)
2018-06-25 09:21:52 -05:00

36 lines
842 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, fetchurl, makeWrapper, git }:
buildGoPackage rec {
name = "fac-${version}";
version = "2.0.0";
goPackagePath = "github.com/mkchoi212/fac";
src = fetchFromGitHub {
owner = "mkchoi212";
repo = "fac";
rev = "v${version}";
sha256 = "054bbiw0slz9szy3ap2sh5dy97w3g7ms27rd3ww3i1zdhvnggwpc";
};
goDeps = ./deps.nix;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $bin/bin/fac \
--prefix PATH : ${git}/bin
# Install man page, not installed by default
install -D go/src/${goPackagePath}/assets/doc/fac.1 $out/share/man/man1/fac.1
'';
meta = with stdenv.lib; {
description = "CUI for fixing git conflicts";
inherit (src.meta) homepage;
license = licenses.mit;
maintainers = with maintainers; [ dtzWill ];
};
}