mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
commit
f02e22b36e
|
@ -1,4 +1,10 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, testers
|
||||
, go-task
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "go-task";
|
||||
|
@ -20,7 +26,9 @@ buildGoModule rec {
|
|||
subPackages = [ "cmd/task" ];
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.version=${version}"
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=github.com/go-task/task/v3/internal/version.version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
|
@ -29,6 +37,12 @@ buildGoModule rec {
|
|||
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";
|
||||
|
|
Loading…
Reference in a new issue