nixpkgs/pkgs/by-name/mo/mop/package.nix

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

31 lines
749 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2016-07-05 13:29:20 +01: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 13:29:20 +01:00
vendorHash = "sha256-kLQH7mMmBSsS9av+KnnEuBwiH6hzBOSozrn+1X+8774=";
2016-07-05 13:29:20 +01:00
preConfigure = ''
for i in *.go **/*.go; do
2016-07-05 13:29:20 +01: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 13:29:20 +01:00
description = "Simple stock tracker implemented in go";
homepage = "https://github.com/mop-tracker/mop";
2018-09-01 13:13:00 +01:00
license = licenses.mit;
2024-02-11 02:19:15 +00:00
mainProgram = "mop";
2016-07-05 13:29:20 +01:00
};
}