2022-02-18 16:55:39 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2016-07-05 12:29:20 +00:00
|
|
|
|
2022-02-18 16:55:39 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mop";
|
2022-02-18 16:55:39 +00:00
|
|
|
version = "1.0.0";
|
2022-03-15 10:32:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mop-tracker";
|
|
|
|
repo = "mop";
|
2022-02-18 16:55:39 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-oe8RG8E7xcp3ZqdDXYvpOVF3AfeSBFMherHD1YYFE/M=";
|
2022-03-15 10:32:23 +00:00
|
|
|
};
|
2016-07-05 12:29:20 +00:00
|
|
|
|
2022-02-18 16:55:39 +00:00
|
|
|
vendorSha256 = "sha256-kLQH7mMmBSsS9av+KnnEuBwiH6hzBOSozrn+1X+8774=";
|
2016-07-05 12:29:20 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-09-25 07:32:35 +00:00
|
|
|
for i in *.go **/*.go; do
|
2016-07-05 12:29:20 +00:00
|
|
|
substituteInPlace $i --replace michaeldv/termbox-go nsf/termbox-go
|
|
|
|
done
|
|
|
|
substituteInPlace Makefile --replace mop/cmd mop/mop
|
|
|
|
mv cmd mop
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-07-05 12:29:20 +00:00
|
|
|
description = "Simple stock tracker implemented in go";
|
2022-02-18 16:55:39 +00:00
|
|
|
homepage = "https://github.com/mop-tracker/mop";
|
2018-09-01 12:13:00 +00:00
|
|
|
license = licenses.mit;
|
2016-07-05 12:29:20 +00:00
|
|
|
};
|
|
|
|
}
|