mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
35 lines
759 B
Nix
35 lines
759 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-task";
|
|
version = "3.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "task";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-632ISkBIZJBJpybuiuRHOV3CAJg1rSe3hK+W7hmW2cM=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-qKjCGZnCts4GfBafSRXR7xTvfJdqK8zjpu01eiyITkU=";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "cmd/task" ];
|
|
|
|
buildFlagsArray = [
|
|
"-ldflags=-s -w -X main.version=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/task $out/bin/go-task
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://taskfile.dev/";
|
|
description = "A task runner / simpler Make alternative written in Go";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ parasrah ];
|
|
};
|
|
}
|