3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/mop/default.nix
Kamil Chmielewski 914e0e594c buildGoPackage: deps.json -> deps.nix in NIXON
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541

* update docs to describe `deps.nix`
* include goDeps in nix-shell GOPATH
* NixOS 16.09 rel notes about replacing goPackages
2016-09-16 00:04:55 +01:00

31 lines
784 B
Nix

{ stdenv, lib, buildGoPackage, fetchgit }:
buildGoPackage rec {
name = "mop-${version}";
version = "0.2.0";
rev = "bc666ec165d08b43134f7ec0bf29083ad5466243";
goPackagePath = "github.com/michaeldv/mop";
goDeps = ./deps.nix;
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;
};
}