File: default.nix

package info (click to toggle)
ledger 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,540 kB
  • sloc: cpp: 37,485; python: 4,186; perl: 1,319; sh: 475; lisp: 435; yacc: 103; makefile: 61
file content (53 lines) | stat: -rw-r--r-- 1,439 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ packages ? "llvmPackages_9"

, rev    ? "1fe82110febdf005d97b2927610ee854a38a8f26"
, sha256 ? "08x6saa7iljyq2m0j6p9phy0v17r3p8l7vklv7y7gvhdc7a85ppi"

, pkgs ? import (builtins.fetchTarball {
    url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
    inherit sha256; }) {
    config.allowUnfree = true;
    config.allowBroken = false;
    overlays = [
      (self: super: {})
    ];
  }
}:

let
  version = "3.2.1";
  rev = "20200518";
in

pkgs.stdenv.mkDerivation {
  name = "ledger-${version}-${rev}";

  src = ./.;

  buildInputs = with pkgs; [ cmake boost gmp mpfr libedit python texinfo gnused ];

  enableParallelBuilding = true;

  cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ];

  buildPhase = "make -j$NIX_BUILD_CORES";
  checkPhase = "ctest -j$NIX_BUILD_CORES";

  doCheck = true;

  meta = {
    homepage = "http://ledger-cli.org/";
    description = "A double-entry accounting system with a command-line reporting interface";
    license = pkgs.stdenv.lib.licenses.bsd3;

    longDescription = ''
      Ledger is a powerful, double-entry accounting system that is accessed
      from the UNIX command-line. This may put off some users, as there is
      no flashy UI, but for those who want unparalleled reporting access to
      their data, there really is no alternative.
    '';

    platforms = pkgs.stdenv.lib.platforms.all;
    maintainers = with pkgs.stdenv.lib.maintainers; [ the-kenny jwiegley ];
  };
}