1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 08:05:40 +00:00
nixpkgs/pkgs/development/tools/misc/hound/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

42 lines
885 B
Nix

{ stdenv
, buildGoPackage
, fetchFromGitHub
, makeWrapper
, mercurial
, git
}:
buildGoPackage rec {
pname = "hound-unstable";
version = "2018-11-02";
rev = "74ec7448a234d8d09e800b92e52c92e378c07742";
nativeBuildInputs = [ makeWrapper ];
goPackagePath = "github.com/etsy/hound";
src = fetchFromGitHub {
inherit rev;
owner = "etsy";
repo = "hound";
sha256 = "0g6nvgqjabprcl9z5ci5frhbam1dzq978h1d6aanf8vvzslfgdpq";
};
goDeps = ./deps.nix;
postInstall = with stdenv; let
binPath = lib.makeBinPath [ mercurial git ];
in ''
wrapProgram $bin/bin/houndd --prefix PATH : ${binPath}
'';
meta = {
inherit (src.meta) homepage;
description = "Lightning fast code searching made easy";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ grahamc ];
platforms = stdenv.lib.platforms.unix;
};
}