From 06d0d4604952ffab8b5b13583865308bdaac5c43 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Fri, 18 Feb 2022 17:55:39 +0100 Subject: [PATCH] mop: 0.2.0 -> 1.0.0 Also switch to buildGoModule. --- pkgs/applications/misc/mop/default.nix | 15 +++++++-------- pkgs/applications/misc/mop/deps.nix | 11 ----------- 2 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 pkgs/applications/misc/mop/deps.nix diff --git a/pkgs/applications/misc/mop/default.nix b/pkgs/applications/misc/mop/default.nix index 105728b7f044..e07fce797507 100644 --- a/pkgs/applications/misc/mop/default.nix +++ b/pkgs/applications/misc/mop/default.nix @@ -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; }; } diff --git a/pkgs/applications/misc/mop/deps.nix b/pkgs/applications/misc/mop/deps.nix deleted file mode 100644 index 4081cd1ddaa2..000000000000 --- a/pkgs/applications/misc/mop/deps.nix +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - goPackagePath = "github.com/nsf/termbox-go"; - fetch = { - type = "git"; - url = "https://github.com/nsf/termbox-go"; - rev = "9aecf65084a5754f12d27508fa2e6ed56851953b"; - sha256 = "16sak07bgvmax4zxfrd4jia1dgygk733xa8vk8cdx28z98awbfsh"; - }; - } -]