-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
taskwarrior3: fix version and add versionCheckHook test #368520
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -19,15 +19,18 @@ | |||||
|
||||||
# nativeCheckInputs | ||||||
python3, | ||||||
|
||||||
# nativeInstallCheckInputs | ||||||
versionCheckHook, | ||||||
}: | ||||||
stdenv.mkDerivation (finalAttrs: { | ||||||
pname = "taskwarrior"; | ||||||
version = "3.3.0"; | ||||||
src = fetchFromGitHub { | ||||||
owner = "GothenburgBitFactory"; | ||||||
repo = "taskwarrior"; | ||||||
rev = "dcbe916286792e6f5d2d3af3baab79918ebc5f71"; | ||||||
hash = "sha256-jma1BYZugMH+JiX5Xu6VI8ZFn4FBr1NxbNrOHX0bFk0="; | ||||||
rev = "v${finalAttrs.version}"; | ||||||
hash = "sha256-aKDwRCJ1yopRdsPxnHhgOpSho1i8/dcAurI+XhpSbn4="; | ||||||
fetchSubmodules = true; | ||||||
}; | ||||||
cargoDeps = rustPlatform.fetchCargoTarball { | ||||||
|
@@ -90,6 +93,14 @@ stdenv.mkDerivation (finalAttrs: { | |||||
python3 | ||||||
]; | ||||||
|
||||||
doInstallCheck = true; | ||||||
|
||||||
nativeInstallCheckInputs = [ | ||||||
versionCheckHook | ||||||
]; | ||||||
|
||||||
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
I remember someone somewhere saying that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I too heard that said, and TBH I'm not very good at explaining why. I heard that though mostly about |
||||||
|
||||||
postInstall = '' | ||||||
# ZSH is installed automatically from some reason, only bash and fish need | ||||||
# manual installation | ||||||
|
@@ -108,7 +119,7 @@ stdenv.mkDerivation (finalAttrs: { | |||||
passthru.tests.nixos = nixosTests.taskchampion-sync-server; | ||||||
|
||||||
meta = { | ||||||
changelog = "https://github.com/GothenburgBitFactory/taskwarrior/blob/${finalAttrs.src.rev}/ChangeLog"; | ||||||
changelog = "https://github.com/GothenburgBitFactory/taskwarrior/releases/tag/v${finalAttrs.src.rev}"; | ||||||
description = "Highly flexible command-line tool to manage TODO lists"; | ||||||
homepage = "https://taskwarrior.org"; | ||||||
license = lib.licenses.mit; | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks! I counted on
nix-update
to the job for me, even when the current version is "unstable".