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, fetchgit }:
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "codesearch";
version = "20150717-${lib.strings.substring 0 7 rev}";
rev = "a45d81b686e85d01f2838439deaf72126ccd5a96";
version = "1.0.0";
goPackagePath = "github.com/google/codesearch";
src = fetchgit {
inherit rev;
url = "https://github.com/google/codesearch";
sha256 = "12bv3yz0l3bmsxbasfgv7scm9j719ch6pmlspv4bd4ix7wjpyhny";
src = fetchFromGitHub {
owner = "google";
repo = "codesearch";
rev = "v${version}";
sha256 = "sha256-3kJ/JT89krbIvprWayBL4chUmT77Oa1W13UNCr4fe4k=";
};
meta = {
meta = with lib; {
description = "Fast, indexed regexp search over large file trees";
homepage = "https://github.com/google/codesearch";
license = [ lib.licenses.bsd3 ];
maintainers = [ lib.maintainers.bennofs ];
platforms = lib.platforms.unix;
license = [ licenses.bsd3 ];
maintainers = with maintainers; [ bennofs ];
};
}

Loading…
Cancel
Save