From a25bdf17421ce9a5a12416865f9f9441b68141d2 Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Thu, 28 May 2020 21:13:27 -0400 Subject: [PATCH] colormake: use fetchFromGitHub Verified the sha256 does not change. --- .../tools/build-managers/colormake/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/build-managers/colormake/default.nix b/pkgs/development/tools/build-managers/colormake/default.nix index 99ed58324afb..7eed88069557 100644 --- a/pkgs/development/tools/build-managers/colormake/default.nix +++ b/pkgs/development/tools/build-managers/colormake/default.nix @@ -1,13 +1,14 @@ -{stdenv, fetchgit, perl}: +{ stdenv, fetchFromGitHub, perl }: stdenv.mkDerivation { pname = "colormake"; version = "2.1.0"; - buildInputs = [perl]; + buildInputs = [ perl ]; - src = fetchgit { - url = "https://github.com/pagekite/Colormake.git"; + src = fetchFromGitHub { + owner = "pagekite"; + repo = "Colormake"; rev = "66544f40d"; sha256 = "8e714c5540305d169989d9387dbac47b8b9fb2cfb424af7bcd412bfe684dc6d7"; }; @@ -17,9 +18,11 @@ stdenv.mkDerivation { cp -fa colormake.pl colormake colormake-short clmake clmake-short $out/bin ''; - meta = { + meta = with stdenv.lib; { description = "Simple wrapper around make to colorize the output"; - license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.unix; + homepage = "https://bre.klaki.net/programs/colormake/"; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = with maintainers; [ bhipple ]; }; }