Merge pull request #34317 from dtzWill/update/fac-1.0.4

fac: 1.0.1 -> 1.0.4, add man page
This commit is contained in:
Andreas Rammhold 2018-01-27 09:41:03 +00:00 committed by GitHub
commit 30e7a09b26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,14 @@
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, git }:
{ stdenv, buildGoPackage, fetchFromGitHub, fetchurl, makeWrapper, git }:
buildGoPackage rec {
let
# TODO: Remove this on next update, should be included
fac_1 = fetchurl {
url = https://raw.githubusercontent.com/mkchoi212/fac/0a500c2a2dba9017fe7c2a45f15c328755f561a6/doc/fac.1;
sha256 = "1fsyx9i20ryhpihdpvs2z7vccl13b9bnh5hcdxn7bvqjz78mbqhw";
};
in buildGoPackage rec {
name = "fac-${version}";
version = "1.0.1";
version = "1.0.4";
goPackagePath = "github.com/mkchoi212/fac";
@ -10,7 +16,7 @@ buildGoPackage rec {
owner = "mkchoi212";
repo = "fac";
rev = "v${version}";
sha256 = "1j5kip3l3p9qlly03pih905sdz3ncvpj7135jpnfhckbk1s5x9dc";
sha256 = "0jhx80jbkxfxj95hmdpb9wwwya064xpfkaa218l1lwm3qwfbpk95";
};
nativeBuildInputs = [ makeWrapper ];
@ -18,6 +24,8 @@ buildGoPackage rec {
postInstall = ''
wrapProgram $bin/bin/fac \
--prefix PATH : ${git}/bin
install -D ${fac_1} $out/share/man/man1/fac.1
'';
meta = with stdenv.lib; {