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";
|
2020-01-26 07:47:16 +00:00
|
|
|
version = "1.9.0";
|
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}";
|
2020-01-26 07:47:16 +00:00
|
|
|
sha256 = "0lazf4r5ps1s04pvz608qaxbrbc6dv0j99n39iv42zwxxh0mbd0p";
|
2018-11-18 16:35:41 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
|
2019-07-12 04:58:26 +01:00
|
|
|
|
|
|
|
buildFlagsArray = [
|
2018-11-18 16:35:41 +00:00
|
|
|
"-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"
|
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
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2020-05-01 02:59:00 +01:00
|
|
|
}
|