mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
36 lines
801 B
Nix
36 lines
801 B
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "mage";
|
|
version = "1.17.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "magefile";
|
|
repo = "mage";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-QYvgKq7I+YGoDbECFGtQHPPP/z8oo5n3BT4LoShrEPc=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-X github.com/magefile/mage/mage.commitHash=v${finalAttrs.version}"
|
|
"-X github.com/magefile/mage/mage.gitTag=v${finalAttrs.version}"
|
|
"-X github.com/magefile/mage/mage.timestamp=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
meta = {
|
|
description = "Make/Rake-like Build Tool Using Go";
|
|
mainProgram = "mage";
|
|
homepage = "https://magefile.org/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ swdunlop ];
|
|
};
|
|
})
|