nixpkgs/pkgs/development/tools/build-managers/mage/default.nix

32 lines
754 B
Nix
Raw Normal View History

2019-07-12 04:58:26 +01:00
{ buildGoModule, fetchFromGitHub, lib }:
2019-07-12 04:58:26 +01:00
buildGoModule rec {
pname = "mage";
2021-01-21 17:58:34 +00:00
version = "1.11.0";
src = fetchFromGitHub {
owner = "magefile";
2019-07-12 04:58:26 +01:00
repo = pname;
rev = "v${version}";
2021-01-21 17:58:34 +00:00
sha256 = "sha256-ghOk44VcQUAAYm9NCLsgYdky1KEpwOeChBNrgUKjnC8=";
};
2021-01-21 17:58:34 +00:00
vendorSha256 = null;
2019-07-12 04:58:26 +01:00
doCheck = false;
2019-07-12 04:58:26 +01:00
buildFlagsArray = [
"-ldflags="
"-X github.com/magefile/mage/mage.commitHash=v${version}"
"-X github.com/magefile/mage/mage.gitTag=v${version}"
2019-07-12 04:58:26 +01:00
"-X github.com/magefile/mage/mage.timestamp=1970-01-01T00:00:00Z"
];
2019-07-12 04:58:26 +01:00
meta = with lib; {
description = "A Make/Rake-like Build Tool Using Go";
2019-07-12 04:58:26 +01:00
homepage = "https://magefile.org/";
license = licenses.asl20;
2019-07-12 04:58:26 +01:00
maintainers = with maintainers; [ swdunlop ];
};
2020-07-11 17:06:12 +01:00
}