Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / gitbatch / default.nix
blobcb19964f733bd11eac92d48ffed528501cdb80b1
1 { lib, buildGoModule, fetchFromGitHub, git }:
3 buildGoModule rec {
4   pname = "gitbatch";
5   version = "0.6.1";
7   src = fetchFromGitHub {
8     owner = "isacikgoz";
9     repo = "gitbatch";
10     rev = "v${version}";
11     sha256 = "sha256-ovmdbyPRSebwmW6AW55jBgBKaNdY6w5/wrpUF2cMKw8=";
12   };
14   vendorHash = "sha256-wwpaJO5cXMsvqFXj+qGiIm4zg/SL4YCm2mNnG/qdilw=";
16   ldflags = [ "-s" "-w" ];
18   nativeBuildInputs = [
19     git # required by unit tests
20   ];
22   preCheck = ''
23     HOME=$(mktemp -d)
24     # Disable tests requiring network access to gitlab.com
25     buildFlagsArray+=("-run" "[^(Test(Run|Start|(Fetch|Pull)With(Go|)Git))]")
26   '';
28   meta = with lib; {
29     description = "Running git UI commands";
30     homepage = "https://github.com/isacikgoz/gitbatch";
31     license = licenses.mit;
32     maintainers = with maintainers; [ teto ];
33     platforms = with platforms; linux;
34   };