nixpkgs/pkgs/development/tools/misc/go-repo-root/default.nix

27 lines
645 B
Nix
Raw Normal View History

2015-02-04 05:00:26 -08:00
{ lib, goPackages, fetchFromGitHub }:
2014-09-14 16:07:29 -07:00
let
version = "0.0.1";
in
2015-02-04 05:00:26 -08:00
with lib; with goPackages;
buildGoPackage rec {
2014-09-14 16:07:29 -07:00
name = "go-repo-root-${version}";
2015-02-04 05:00:26 -08:00
goPackagePath = "github.com/cstrahan/go-repo-root";
src = fetchFromGitHub {
owner = "cstrahan";
repo = "go-repo-root";
rev = "90041e5c7dc634651549f96814a452f4e0e680f9";
sha256 = "1rlzp8kjv0a3dnfhyqcggny0ad648j5csr2x0siq5prahlp48mg4";
2014-09-14 16:07:29 -07:00
};
2015-02-04 05:00:26 -08:00
buildInputs = [ tools ];
2014-09-14 16:07:29 -07:00
meta = with lib; {
homepage = "https://github.com/cstrahan/go-repo-root";
maintainers = with maintainers; [ cstrahan ];
license = licenses.mit;
platforms = platforms.all;
};
}