From 86809b838f731e287e30770889290619e4c70d4c Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Tue, 5 Jul 2016 14:29:20 +0200 Subject: [PATCH] mop: init at 0.2.0 Fixes #16728. --- pkgs/applications/misc/mop/default.nix | 30 ++++++++++++++++++++++++++ pkgs/applications/misc/mop/deps.json | 8 +++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 pkgs/applications/misc/mop/default.nix create mode 100644 pkgs/applications/misc/mop/deps.json diff --git a/pkgs/applications/misc/mop/default.nix b/pkgs/applications/misc/mop/default.nix new file mode 100644 index 000000000000..ccdb47c4b608 --- /dev/null +++ b/pkgs/applications/misc/mop/default.nix @@ -0,0 +1,30 @@ +{ stdenv, lib, buildGoPackage, fetchgit }: + +buildGoPackage rec { + name = "mop-${version}"; + version = "0.2.0"; + rev = "bc666ec165d08b43134f7ec0bf29083ad5466243"; + + goPackagePath = "github.com/michaeldv/mop"; + goDeps = ./deps.json; + + preConfigure = '' + for i in $(find . -type f);do + substituteInPlace $i --replace michaeldv/termbox-go nsf/termbox-go + done + substituteInPlace Makefile --replace mop/cmd mop/mop + mv cmd mop + ''; + + src = fetchgit { + inherit rev; + url = "https://github.com/mop-tracker/mop"; + sha256 = "0zp51g9i8rw6acs4vnrxclbxa5z1v0a0m1xx27szszp0rphcczkx"; + }; + + meta = { + description = "Simple stock tracker implemented in go"; + homepage = https://github.com/mop-tracker/mop; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/applications/misc/mop/deps.json b/pkgs/applications/misc/mop/deps.json new file mode 100644 index 000000000000..e1b40df83104 --- /dev/null +++ b/pkgs/applications/misc/mop/deps.json @@ -0,0 +1,8 @@ +[ + { + "include": "../../libs.json", + "packages": [ + "github.com/nsf/termbox-go" + ] + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b620268a303..b7c8549faf88 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13655,6 +13655,8 @@ in inherit (gnome) libgnomecanvas glib; }; + mop = callPackage ../applications/misc/mop { }; + mopidy = callPackage ../applications/audio/mopidy { }; mopidy-gmusic = callPackage ../applications/audio/mopidy-gmusic { };