mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, testers
|
|
, go-task
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-task";
|
|
version = "3.33.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "task";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-GeAVI1jsYH66KIJsdC20j3HADl6y8gRezSWBUEF1Muw=";
|
|
};
|
|
|
|
vendorHash = "sha256-kKYE8O+07ha35koSO+KG/K98rVbmDLqAhvaZsVHwUjY=";
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
subPackages = [ "cmd/task" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/go-task/task/v3/internal/version.version=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/task $out/bin/go-task
|
|
|
|
installShellCompletion completion/{bash,fish,zsh}/*
|
|
'';
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion {
|
|
package = go-task;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://taskfile.dev/";
|
|
description = "A task runner / simpler Make alternative written in Go";
|
|
changelog = "https://github.com/go-task/task/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ parasrah ];
|
|
};
|
|
}
|