From 611ef594852768e9b98ad71a409444e39198e8bf Mon Sep 17 00:00:00 2001 From: Scott Dunlop Date: Sun, 18 Nov 2018 08:35:41 -0800 Subject: [PATCH] mage: init at 1.7.1 (#46407) * mage: init at 1.2.4 * mage: init at 1.7.1 --- .../tools/build-managers/mage/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/tools/build-managers/mage/default.nix diff --git a/pkgs/development/tools/build-managers/mage/default.nix b/pkgs/development/tools/build-managers/mage/default.nix new file mode 100644 index 000000000000..bce8dedbf58a --- /dev/null +++ b/pkgs/development/tools/build-managers/mage/default.nix @@ -0,0 +1,32 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 010f8e5d4f66..6aeb9a6fd83b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8711,6 +8711,8 @@ with pkgs; go-md2man = callPackage ../development/tools/misc/md2man {}; + mage = callPackage ../development/tools/build-managers/mage { }; + minify = callPackage ../development/web/minify { }; minizinc = callPackage ../development/tools/minizinc { };