fac: 1.0.1 -> 1.0.4, add man page
This commit is contained in:
parent
bdf4eeb49c
commit
77a6cb32c6
@ -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}";
|
name = "fac-${version}";
|
||||||
version = "1.0.1";
|
version = "1.0.4";
|
||||||
|
|
||||||
goPackagePath = "github.com/mkchoi212/fac";
|
goPackagePath = "github.com/mkchoi212/fac";
|
||||||
|
|
||||||
@ -10,7 +16,7 @@ buildGoPackage rec {
|
|||||||
owner = "mkchoi212";
|
owner = "mkchoi212";
|
||||||
repo = "fac";
|
repo = "fac";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1j5kip3l3p9qlly03pih905sdz3ncvpj7135jpnfhckbk1s5x9dc";
|
sha256 = "0jhx80jbkxfxj95hmdpb9wwwya064xpfkaa218l1lwm3qwfbpk95";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
@ -18,6 +24,8 @@ buildGoPackage rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $bin/bin/fac \
|
wrapProgram $bin/bin/fac \
|
||||||
--prefix PATH : ${git}/bin
|
--prefix PATH : ${git}/bin
|
||||||
|
|
||||||
|
install -D ${fac_1} $out/share/man/man1/fac.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user