summary refs log tree commit diff
path: root/pkgs/applications/misc/mop/default.nix
blob: 81c236589654dff67bcb00832f128f774fabc850 (plain) (blame)
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
{ stdenv, buildGoPackage, fetchgit }:

buildGoPackage rec {
  pname = "mop";
  version = "0.2.0";
  rev = "bc666ec165d08b43134f7ec0bf29083ad5466243";

  goPackagePath = "github.com/michaeldv/mop";
  goDeps = ./deps.nix;

  preConfigure = ''
    for i in $(find . -type f);do
        substituteInPlace $i --replace michaeldv/termbox-go nsf/termbox-go
    done
    substituteInPlace Makefile --replace mop/cmd mop/mop
    mv cmd mop
  '';

  src = fetchgit {
    inherit rev;
    url = "https://github.com/mop-tracker/mop";
    sha256 = "0zp51g9i8rw6acs4vnrxclbxa5z1v0a0m1xx27szszp0rphcczkx";
  };

  meta = with stdenv.lib; {
    description = "Simple stock tracker implemented in go";
    homepage =  "https://github.com/mop-tracker/mop";
    license = licenses.mit;
    platforms = platforms.all;
  };
}