2022-02-18 17:55:39 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2016-07-05 14:29:20 +02:00
|
|
|
|
2022-02-18 17:55:39 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mop";
|
2022-02-18 17:55:39 +01:00
|
|
|
version = "1.0.0";
|
2022-03-15 11:32:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mop-tracker";
|
|
|
|
repo = "mop";
|
2022-02-18 17:55:39 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-oe8RG8E7xcp3ZqdDXYvpOVF3AfeSBFMherHD1YYFE/M=";
|
2022-03-15 11:32:23 +01:00
|
|
|
};
|
2016-07-05 14:29:20 +02:00
|
|
|
|
2022-02-18 17:55:39 +01:00
|
|
|
vendorSha256 = "sha256-kLQH7mMmBSsS9av+KnnEuBwiH6hzBOSozrn+1X+8774=";
|
2016-07-05 14:29:20 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-09-25 09:32:35 +02:00
|
|
|
for i in *.go **/*.go; do
|
2016-07-05 14:29:20 +02:00
|
|
|
substituteInPlace $i --replace michaeldv/termbox-go nsf/termbox-go
|
|
|
|
done
|
|
|
|
substituteInPlace Makefile --replace mop/cmd mop/mop
|
|
|
|
mv cmd mop
|
|
|
|
'';
|
|
|
|
|
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";
|
2022-02-18 17:55:39 +01: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
|
|
|
};
|
|
|
|
}
|