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

31 lines
812 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";
version = "1.8.0";
src = fetchFromGitHub {
owner = "magefile";
2019-07-12 04:58:26 +01:00
repo = pname;
rev = "v${version}";
2019-07-12 04:58:26 +01:00
sha256 = "0vkzm2k2v3np30kdgz9kpwkhnshbjcn8j1y321djz2h3w23k5h7r";
};
2019-07-12 04:58:26 +01:00
modSha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
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 ];
platforms = platforms.all;
};
}