From 02184088468e1d540070bdb91dc7c387cba14a6b Mon Sep 17 00:00:00 2001 From: Simon Jagoe Date: Wed, 7 Jun 2017 14:22:52 +0300 Subject: [PATCH] grin: Use fetchFromGitHub instead of fetchgit --- pkgs/tools/text/grin/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/text/grin/default.nix b/pkgs/tools/text/grin/default.nix index 5cbeb54a0b1b..837ec5b7a5ff 100644 --- a/pkgs/tools/text/grin/default.nix +++ b/pkgs/tools/text/grin/default.nix @@ -1,11 +1,14 @@ -{ stdenv, fetchgit, python2Packages }: +{ stdenv, fetchFromGitHub, python2Packages }: python2Packages.buildPythonApplication rec { - name = "grin-1.2.1"; + program = "grin"; + version = "1.2.1"; + name = "${program}-${version}"; namePrefix = ""; - src = fetchgit { - url = "git://github.com/rkern/grin"; + src = fetchFromGitHub { + owner = "rkern"; + repo = program; rev = "8dd4b5309b3bc04fe9d3e71836420f7d8d4a293f"; sha256 = "0vz2aahwdcy1296g4w3i79dkvmzk9jc2n2zmlcvlg5m3s6h7b6jd"; }; @@ -13,7 +16,7 @@ python2Packages.buildPythonApplication rec { buildInputs = with python2Packages; [ nose ]; meta = { - homepage = https://pypi.python.org/pypi/grin; + homepage = https://github.com/rkern/grin; description = "A grep program configured the way I like it"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.sjagoe ];