Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions pkgs/by-name/mo/mop/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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=";
Comment thread
DieracDelta marked this conversation as resolved.

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'
Comment thread
gepbird marked this conversation as resolved.
# 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 = {
Expand Down
Loading