uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/tools/text/ledger2beancount/default.nix
Normal file
59
pkgs/tools/text/ledger2beancount/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib, stdenv, fetchFromGitHub, makeWrapper, perlPackages, beancount }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
perlDeps = with perlPackages; [
|
||||
DateCalc
|
||||
DateTimeFormatStrptime
|
||||
enum
|
||||
FileBaseDir
|
||||
GetoptLongDescriptive
|
||||
ListMoreUtils
|
||||
RegexpCommon
|
||||
StringInterpolate
|
||||
YAMLLibYAML
|
||||
];
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "ledger2beancount";
|
||||
version = "2.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "beancount";
|
||||
repo = "ledger2beancount";
|
||||
rev = version;
|
||||
sha256 = "sha256-0Br+zuSUYrNP+ZL/FtNoaYoYBYho5kVfxu0tqKJSuBk=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
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/beancount/ledger2beancount";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ pablovsky ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue