commit
59625af8c8
2 changed files with 7 additions and 19 deletions
|
@ -1,18 +1,17 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "mop";
|
||||
version = "0.2.0";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mop-tracker";
|
||||
repo = "mop";
|
||||
rev = "bc666ec165d08b43134f7ec0bf29083ad5466243";
|
||||
sha256 = "sha256-fX7G4M3gfv31Eb2HChTY4RfVF2U92000U4ZnFNML5X4=";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-oe8RG8E7xcp3ZqdDXYvpOVF3AfeSBFMherHD1YYFE/M=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/michaeldv/mop";
|
||||
goDeps = ./deps.nix;
|
||||
vendorSha256 = "sha256-kLQH7mMmBSsS9av+KnnEuBwiH6hzBOSozrn+1X+8774=";
|
||||
|
||||
preConfigure = ''
|
||||
for i in *.go **/*.go; do
|
||||
|
@ -24,7 +23,7 @@ buildGoPackage rec {
|
|||
|
||||
meta = with lib; {
|
||||
description = "Simple stock tracker implemented in go";
|
||||
homepage = "https://github.com/mop-tracker/mop";
|
||||
homepage = "https://github.com/mop-tracker/mop";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
|
11
pkgs/applications/misc/mop/deps.nix
generated
11
pkgs/applications/misc/mop/deps.nix
generated
|
@ -1,11 +0,0 @@
|
|||
[
|
||||
{
|
||||
goPackagePath = "github.com/nsf/termbox-go";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/nsf/termbox-go";
|
||||
rev = "9aecf65084a5754f12d27508fa2e6ed56851953b";
|
||||
sha256 = "16sak07bgvmax4zxfrd4jia1dgygk733xa8vk8cdx28z98awbfsh";
|
||||
};
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue