2022-03-30 09:31:56 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "mop";
|
|
|
|
version = "0.2.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mop-tracker";
|
|
|
|
repo = "mop";
|
|
|
|
rev = "bc666ec165d08b43134f7ec0bf29083ad5466243";
|
|
|
|
sha256 = "sha256-fX7G4M3gfv31Eb2HChTY4RfVF2U92000U4ZnFNML5X4=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/michaeldv/mop";
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "https://github.com/mop-tracker/mop";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|