codesearch: switch to fetchFromGitHub

main
Felix Buehler 2 years ago
parent bc4ca276a8
commit 2dfbdb27d5
  1. 22
      pkgs/tools/text/codesearch/default.nix

@ -1,24 +1,22 @@
# This file was generated by go2nix. { lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoPackage, fetchgit }:
buildGoPackage rec { buildGoPackage rec {
pname = "codesearch"; pname = "codesearch";
version = "20150717-${lib.strings.substring 0 7 rev}"; version = "1.0.0";
rev = "a45d81b686e85d01f2838439deaf72126ccd5a96";
goPackagePath = "github.com/google/codesearch"; goPackagePath = "github.com/google/codesearch";
src = fetchgit { src = fetchFromGitHub {
inherit rev; owner = "google";
url = "https://github.com/google/codesearch"; repo = "codesearch";
sha256 = "12bv3yz0l3bmsxbasfgv7scm9j719ch6pmlspv4bd4ix7wjpyhny"; rev = "v${version}";
sha256 = "sha256-3kJ/JT89krbIvprWayBL4chUmT77Oa1W13UNCr4fe4k=";
}; };
meta = { meta = with lib; {
description = "Fast, indexed regexp search over large file trees"; description = "Fast, indexed regexp search over large file trees";
homepage = "https://github.com/google/codesearch"; homepage = "https://github.com/google/codesearch";
license = [ lib.licenses.bsd3 ]; license = [ licenses.bsd3 ];
maintainers = [ lib.maintainers.bennofs ]; maintainers = with maintainers; [ bennofs ];
platforms = lib.platforms.unix;
}; };
} }

Loading…
Cancel
Save