2022-04-15 01:41:22 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mop";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.0.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mop-tracker";
|
|
|
|
repo = "mop";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-oe8RG8E7xcp3ZqdDXYvpOVF3AfeSBFMherHD1YYFE/M=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-kLQH7mMmBSsS9av+KnnEuBwiH6hzBOSozrn+1X+8774=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2021-09-26 12:46:18 +00:00
|
|
|
for i in *.go **/*.go; do
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace $i --replace michaeldv/termbox-go nsf/termbox-go
|
|
|
|
done
|
|
|
|
substituteInPlace Makefile --replace mop/cmd mop/mop
|
|
|
|
mv cmd mop
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple stock tracker implemented in go";
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://github.com/mop-tracker/mop";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "mop";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|