1 { lib, buildGoPackage, go-bindata, gotools, nix-prefetch-git, git, makeWrapper,
9 goPackagePath = "github.com/kamilchm/go2nix";
11 src = fetchFromGitHub {
15 sha256 = "1q61mgngvyl2bnmrqahh3bji402n76c7xwv29lwk007gymzgff0n";
20 outputs = [ "out" "man" ];
22 nativeBuildInputs = [ go-bindata gotools makeWrapper ];
24 preBuild = "go generate ./...";
27 wrapProgram $out/bin/go2nix \
28 --prefix PATH : ${nix-prefetch-git}/bin \
29 --prefix PATH : ${git}/bin
31 mkdir -p $man/share/man/man1
32 cp $src/go2nix.1 $man/share/man/man1
35 allowGoReference = true;
37 doCheck = false; # tries to access the net
40 description = "Go apps packaging for Nix";
41 homepage = "https://github.com/kamilchm/go2nix";
42 license = licenses.mit;
43 maintainers = with maintainers; [ kamilchm ];