mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
383b3b36d0
After 33518fcb45
"stdenv/setup.sh: fix read -N 0 for bash 5"
build started failing as:
consumeEntire(): ERROR: Input null bytes, won't process
Let's avoid running substituteInPlace on arbitrary binary files.
31 lines
760 B
Nix
31 lines
760 B
Nix
{ lib, buildGoPackage, fetchgit }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "mop";
|
|
version = "0.2.0";
|
|
rev = "bc666ec165d08b43134f7ec0bf29083ad5466243";
|
|
|
|
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
|
|
'';
|
|
|
|
src = fetchgit {
|
|
inherit rev;
|
|
url = "https://github.com/mop-tracker/mop";
|
|
sha256 = "0zp51g9i8rw6acs4vnrxclbxa5z1v0a0m1xx27szszp0rphcczkx";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Simple stock tracker implemented in go";
|
|
homepage = "https://github.com/mop-tracker/mop";
|
|
license = licenses.mit;
|
|
};
|
|
}
|