2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchgit }:
|
2016-07-05 14:29:20 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mop";
|
2016-07-05 14:29:20 +02:00
|
|
|
version = "0.2.0";
|
|
|
|
rev = "bc666ec165d08b43134f7ec0bf29083ad5466243";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/michaeldv/mop";
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./deps.nix;
|
2016-07-05 14:29:20 +02:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-07-05 14:29:20 +02:00
|
|
|
description = "Simple stock tracker implemented in go";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mop-tracker/mop";
|
2018-09-01 14:13:00 +02:00
|
|
|
license = licenses.mit;
|
2016-07-05 14:29:20 +02:00
|
|
|
};
|
|
|
|
}
|