From d08cb91f18643abe9914a5f43cb28bdf17a0d2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 10 Feb 2021 13:25:29 +0100 Subject: [PATCH] hound: unstable-2018-11-02 -> unstable-2021-01-26 --- pkgs/development/tools/misc/hound/default.nix | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/pkgs/development/tools/misc/hound/default.nix b/pkgs/development/tools/misc/hound/default.nix index 476179ac8e7..201241fb835 100644 --- a/pkgs/development/tools/misc/hound/default.nix +++ b/pkgs/development/tools/misc/hound/default.nix @@ -1,39 +1,38 @@ -{ lib, stdenv -, buildGoPackage +{ lib +, buildGoModule , fetchFromGitHub , makeWrapper , mercurial , git }: -buildGoPackage rec { - pname = "hound-unstable"; - version = "2018-11-02"; - rev = "74ec7448a234d8d09e800b92e52c92e378c07742"; +buildGoModule rec { + pname = "hound"; + version = "unstable-2021-01-26"; + + src = fetchFromGitHub { + owner = "hound-search"; + repo = "hound"; + rev = "b88fc1f79d668e6671a478ddf4fb3e73a63067b9"; + sha256 = "00xc3cj7d3klvhsh9hivvjwgzb6lycw3r3w7nch98nv2j8iljc44"; + }; + + vendorSha256 = "0x1nhhhvqmz3qssd2d44zaxbahj8lh9r4m5jxdvzqk6m3ly7y0b6"; nativeBuildInputs = [ makeWrapper ]; - goPackagePath = "github.com/etsy/hound"; + # requires network access + doCheck = false; - src = fetchFromGitHub { - inherit rev; - owner = "etsy"; - repo = "hound"; - sha256 = "0g6nvgqjabprcl9z5ci5frhbam1dzq978h1d6aanf8vvzslfgdpq"; - }; - - postInstall = with stdenv; let - binPath = lib.makeBinPath [ mercurial git ]; - in '' - wrapProgram $out/bin/houndd --prefix PATH : ${binPath} + postInstall = '' + wrapProgram $out/bin/houndd --prefix PATH : ${lib.makeBinPath [ mercurial git ]} ''; - meta = { + meta = with lib; { inherit (src.meta) homepage; - description = "Lightning fast code searching made easy"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ grahamc ]; - platforms = lib.platforms.unix; + license = licenses.mit; + maintainers = with maintainers; [ grahamc SuperSandro2000 ]; + platforms = platforms.unix; }; }