nixpkgs/pkgs/development/tools/build-managers/mage/default.nix
Scott Dunlop 611ef59485 mage: init at 1.7.1
(#46407)
* mage: init at 1.2.4

* mage: init at 1.7.1
2018-11-18 17:35:41 +01:00

33 lines
750 B
Nix

{ buildGoPackage, fetchFromGitHub, lib }:
with lib;
buildGoPackage rec {
name = "mage-${version}";
version = "1.7.1";
goPackagePath = "github.com/magefile/mage";
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "magefile";
repo = "mage";
rev = "v${version}";
sha256 = "0n4k5dy338rxwzj654smxzlanmd0zws6mdzv0wc4byqjhr7mqhg2";
};
buildFlagsArray = [
"-ldflags="
"-X github.com/magefile/mage/mage.commitHash=v${version}"
"-X github.com/magefile/mage/mage.gitTag=v${version}"
];
meta = {
description = "A Make/Rake-like Build Tool Using Go";
license = licenses.asl20;
maintainers = [ maintainers.swdunlop ];
homepage = https://magefile.org/;
platforms = platforms.all;
};
}