1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/development/tools/godef/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

25 lines
621 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "godef";
version = "1.1.1";
rev = "v${version}";
goPackagePath = "github.com/rogpeppe/godef";
subPackages = [ "." ];
src = fetchFromGitHub {
inherit rev;
owner = "rogpeppe";
repo = "godef";
sha256 = "1bpzqnb9fsk1pjjap3gm94pqch1jz02rfah9hg8iqbfm0dzpy31b";
};
meta = {
description = "Print where symbols are defined in Go source code";
homepage = https://github.com/rogpeppe/godef/;
maintainers = with stdenv.lib.maintainers; [ vdemeester rvolosatovs ];
license = stdenv.lib.licenses.bsd3;
};
}