1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/tools/glock/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

26 lines
676 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "glock";
version = "20160816-${stdenv.lib.strings.substring 0 7 rev}";
rev = "b8c84ff5ade15a6238ca61c20d3afc70d2e41276";
goPackagePath = "github.com/robfig/glock";
src = fetchFromGitHub {
inherit rev;
owner = "robfig";
repo = "glock";
sha256 = "10jwn3k71p340g8d43zjx7k1j534rcd7rss8pif09mpfrn9qndhh";
};
goDeps = ./deps.nix;
meta = with stdenv.lib; {
homepage = https://github.com/robfig/glock;
description = "A command-line tool to lock Go dependencies to specific revisions";
license = licenses.mit;
maintainers = [ maintainers.rushmorem ];
};
}