Merge staging-next into staging
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, perlPackages, beancount }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
perlDeps = with perlPackages; [
|
||||
ConfigOnion DateCalc
|
||||
FileBaseDir YAMLLibYAML
|
||||
GetoptLongDescriptive DateTimeFormatStrptime
|
||||
StringInterpolate
|
||||
];
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "ledger2beancount";
|
||||
version = "2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zacchiro";
|
||||
repo = "ledger2beancount";
|
||||
rev = "${version}";
|
||||
sha256 = "0w88jb1x0w02jwwf6ipx3cxr89kzffrrdqws3556zrvvs01bh84j";
|
||||
};
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
"fixupPhase"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ perlPackages.perl beancount ] ++ perlDeps;
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
installFlags = [ "INSTALL=install" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r $src/bin $out/bin
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/ledger2beancount" \
|
||||
--set PERL5LIB "${perlPackages.makeFullPerlPath perlDeps}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Ledger to Beancount text-based converter";
|
||||
longDescription = ''
|
||||
A script to automatically convert Ledger-based textual ledgers to Beancount ones.
|
||||
|
||||
Conversion is based on (concrete) syntax, so that information that is not meaningful for accounting reasons but still valuable (e.g., comments, formatting, etc.) can be preserved.
|
||||
'';
|
||||
homepage = "https://github.com/zacchiro/ledger2beancount";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ pablovsky ];
|
||||
};
|
||||
}
|
||||
@@ -1,29 +1,28 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, scdoc }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "shfmt";
|
||||
version = "3.1.2";
|
||||
version = "3.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mvdan";
|
||||
repo = "sh";
|
||||
rev = "v${version}";
|
||||
sha256 = "03zgi0rlra3gz8cbqwmhpjxsg5048anfc6ccd2w50fjhx6farsnv";
|
||||
sha256 = "1ybrx82c4djp7izyqhvzk0rcf9ac7nv5g5ahxr0k0jhm752ba5z2";
|
||||
};
|
||||
|
||||
vendorSha256 = "1jq2x4yxshsy4ahp7nrry8dc9cyjj46mljs447rq57sgix4ndpq8";
|
||||
vendorSha256 = "1ma7nvyn6ylbi8bd7x900i94pzs877kfy9xh0nf1bbify1vcpd29";
|
||||
|
||||
subPackages = [ "cmd/shfmt" ];
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
|
||||
patches = [
|
||||
# fix failing test on go 1.15, remove with > 3.1.2
|
||||
(fetchpatch {
|
||||
url = "https://github.com/mvdan/sh/commit/88956f97dae1f268af6c030bf2ba60762ebb488a.patch";
|
||||
sha256 = "1zg8i7kklr12zjkaxh8djd2bzkdx8klgfj271r2wivkc2x61shgv";
|
||||
})
|
||||
];
|
||||
nativeBuildInputs = [ installShellFiles scdoc ];
|
||||
|
||||
postBuild = ''
|
||||
scdoc < cmd/shfmt/shfmt.1.scd > shfmt.1
|
||||
installManPage shfmt.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mvdan/sh";
|
||||
|
||||
@@ -1,20 +1,28 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, go-md2man, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "vgrep";
|
||||
version = "2.4.0";
|
||||
version = "2.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vrothberg";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "109j04my2xib8m52a0337996a27nvfgzackpg20zs3nzn66dmvb7";
|
||||
sha256 = "1waxp66286q325avvsq58s8qkfjqa39s5p8c3z59scpm0244nr80";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
||||
|
||||
nativeBuildInputs = [ go-md2man installShellFiles ];
|
||||
|
||||
postBuild = ''
|
||||
sed -i '/SHELL= /d' Makefile
|
||||
make docs
|
||||
installManPage docs/*.[1-9]
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "User-friendly pager for grep/git-grep/ripgrep";
|
||||
homepage = "https://github.com/vrothberg/vgrep";
|
||||
|
||||
Reference in New Issue
Block a user