depot/third_party/nixpkgs/pkgs/applications/misc/mop/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

30 lines
755 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "mop";
version = "0.2.0";
src = fetchFromGitHub {
owner = "mop-tracker";
repo = "mop";
rev = "bc666ec165d08b43134f7ec0bf29083ad5466243";
sha256 = "sha256-fX7G4M3gfv31Eb2HChTY4RfVF2U92000U4ZnFNML5X4=";
};
goPackagePath = "github.com/michaeldv/mop";
goDeps = ./deps.nix;
preConfigure = ''
for i in *.go **/*.go; do
substituteInPlace $i --replace michaeldv/termbox-go nsf/termbox-go
done
substituteInPlace Makefile --replace mop/cmd mop/mop
mv cmd mop
'';
meta = with lib; {
description = "Simple stock tracker implemented in go";
homepage = "https://github.com/mop-tracker/mop";
license = licenses.mit;
};
}