@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitHub, python3Packages }:
2+
3+stdenv.mkDerivation rec {
4+ name = "bean-add-2016-10-01";
5+
6+ src = fetchFromGitHub {
7+ owner = "simon-v";
8+ repo = "bean-add";
9+ rev = "ea0c21090a9af171e60f325a3a4de810a565aba7";
10+ sha256 = "11xx3p29z40xwc9m9ajn1lrkphyyi6kr9ww7f761lj3y8h7q5jcr";
11+ };
12+
13+ propagatedBuildInputs = with python3Packages; [ python readline ];
14+
15+ installPhase = ''
16+ mkdir -p $out/bin/
17+ cp bean-add $out/bin/bean-add
18+ chmod +x $out/bin/bean-add
19+ '';
20+
21+ meta = {
22+ homepage = https://github.com/simon-v/bean-add/;
23+ description = "beancount transaction entry assistant";
24+
25+ # The (only) source file states:
26+ # License: "Do what you feel is right, but don't be a jerk" public license.
27+
28+ maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ];
29+ };
30+}
31+