{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "dstask"; version = "1.0.1"; src = fetchFromGitHub { owner = "naggie"; repo = "dstask"; rev = "v${version}"; sha256 = "sha256-/SXQz+HDkKWGrIArqEjti93mo6Els9haitV0FfWfVTQ="; }; # Set vendorHash to "sha256-HSqAbxkkjuMulFymeqApWr/JZ+a7OUTu5EYLGPL/j2U=" because dstask vendors its dependencies (meaning # that third party dependencies are stored in the repository). # # Ref # and vendorHash = "sha256-HSqAbxkkjuMulFymeqApWr/JZ+a7OUTu5EYLGPL/j2U="; doCheck = false; # The ldflags reduce the executable size by stripping some debug stuff. # The other variables are set so that the output of dstask version shows the # git ref and the release version from github. # Ref ldflags = [ "-w" "-s" "-X github.com/naggie/dstask.VERSION=${version}" "-X github.com/naggie/dstask.GIT_COMMIT=v${version}" ]; meta = { description = "Command line todo list with super-reliable git sync"; homepage = src.meta.homepage; license = lib.licenses.mit; maintainers = with lib.maintainers; [ stianlagstad ]; platforms = lib.platforms.linux; }; }