nixpkgs/pkgs/applications/misc/mop/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
726 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2016-07-05 12:29:20 +00:00
buildGoModule rec {
pname = "mop";
version = "1.0.0";
2022-03-15 10:32:23 +00:00
src = fetchFromGitHub {
owner = "mop-tracker";
repo = "mop";
rev = "v${version}";
sha256 = "sha256-oe8RG8E7xcp3ZqdDXYvpOVF3AfeSBFMherHD1YYFE/M=";
2022-03-15 10:32:23 +00:00
};
2016-07-05 12:29:20 +00:00
vendorSha256 = "sha256-kLQH7mMmBSsS9av+KnnEuBwiH6hzBOSozrn+1X+8774=";
2016-07-05 12:29:20 +00:00
preConfigure = ''
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
'';
meta = with lib; {
2016-07-05 12:29:20 +00:00
description = "Simple stock tracker implemented in go";
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
};
}