3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/go-task/default.nix

39 lines
869 B
Nix
Raw Normal View History

2021-12-22 04:56:27 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2020-07-23 01:48:48 +01:00
buildGoModule rec {
pname = "go-task";
2022-01-05 05:58:03 +00:00
version = "3.10.0";
2020-07-23 01:48:48 +01:00
src = fetchFromGitHub {
owner = pname;
repo = "task";
rev = "v${version}";
2022-01-05 05:58:03 +00:00
sha256 = "sha256-E0wMFdLK8lA8oluFQuq7hPMWh4t6OsoJ14d7ErDjAdA=";
2020-07-23 01:48:48 +01:00
};
2022-01-05 05:58:03 +00:00
vendorSha256 = "sha256-ClMvbxDKwwoVUC9+AJPZfBxJ26KKuLueUn9Nz/gh4Fs=";
2020-07-23 01:48:48 +01:00
doCheck = false;
2021-12-22 04:56:27 +00:00
nativeBuildInputs = [ installShellFiles ];
2020-07-23 01:48:48 +01:00
subPackages = [ "cmd/task" ];
2021-08-26 07:45:51 +01:00
ldflags = [
"-s" "-w" "-X main.version=${version}"
2020-07-23 01:48:48 +01:00
];
postInstall = ''
ln -s $out/bin/task $out/bin/go-task
2021-12-22 04:56:27 +00:00
installShellCompletion completion/{bash,fish,zsh}/*
2020-07-23 01:48:48 +01:00
'';
meta = with lib; {
homepage = "https://taskfile.dev/";
description = "A task runner / simpler Make alternative written in Go";
license = licenses.mit;
maintainers = with maintainers; [ parasrah ];
};
}