2019-07-12 04:58:26 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2018-11-18 16:35:41 +00:00
|
|
|
|
2019-07-12 04:58:26 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mage";
|
2021-12-25 17:39:37 +00:00
|
|
|
version = "1.12.1";
|
2018-11-18 16:35:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magefile";
|
2019-07-12 04:58:26 +01:00
|
|
|
repo = pname;
|
2018-11-18 16:35:41 +00:00
|
|
|
rev = "v${version}";
|
2021-12-25 17:39:37 +00:00
|
|
|
sha256 = "sha256-hfLclI9bzsvITwdo8LTqNcr25yZN82B0pqwlk559tRU=";
|
2018-11-18 16:35:41 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:58:34 +00:00
|
|
|
vendorSha256 = null;
|
2019-07-12 04:58:26 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [
|
2018-11-18 16:35:41 +00:00
|
|
|
"-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"
|
2018-11-18 16:35:41 +00:00
|
|
|
];
|
|
|
|
|
2019-07-12 04:58:26 +01:00
|
|
|
meta = with lib; {
|
2018-11-18 16:35:41 +00:00
|
|
|
description = "A Make/Rake-like Build Tool Using Go";
|
2019-07-12 04:58:26 +01:00
|
|
|
homepage = "https://magefile.org/";
|
2018-11-18 16:35:41 +00:00
|
|
|
license = licenses.asl20;
|
2019-07-12 04:58:26 +01:00
|
|
|
maintainers = with maintainers; [ swdunlop ];
|
2018-11-18 16:35:41 +00:00
|
|
|
};
|
2020-07-11 17:06:12 +01:00
|
|
|
}
|