Commit b4c8350f authored by Justin Restivo's avatar Justin Restivo
Browse files

mop: 1.0.0 -> 0-unstable-2025-12-20

parent 363408f7
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -4,25 +4,25 @@
  fetchFromGitHub,
}:

buildGoModule rec {
buildGoModule {
  pname = "mop";
  version = "1.0.0";
  version = "0-unstable-2025-12-20";

  src = fetchFromGitHub {
    owner = "mop-tracker";
    repo = "mop";
    rev = "v${version}";
    sha256 = "sha256-oe8RG8E7xcp3ZqdDXYvpOVF3AfeSBFMherHD1YYFE/M=";
    rev = "64f37500a195d9c4e01eb3a97199b00515e9fd7a";
    hash = "sha256-j6+bzWfYTBMjgJbyd6JQno2eFTUGHYAv8c4x1Ocp878=";
  };

  vendorHash = "sha256-kLQH7mMmBSsS9av+KnnEuBwiH6hzBOSozrn+1X+8774=";
  vendorHash = "sha256-Jq6SMnCUvuccEP85x1EEYnafUEeBT+AmqeikFvesMYY=";

  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
  postPatch = ''
    # unsafe.Slice requires go1.17 or later
    substituteInPlace go.mod --replace-fail 'go 1.15' 'go 1.17'
    # go says: github.com/rivo/uniseg@v0.2.0: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod
    # so need to explicitly require it
    echo 'require github.com/rivo/uniseg v0.2.0' >> go.mod
  '';

  meta = {