at 23.11-beta 35 lines 870 B view raw
1{ lib, buildGoModule, fetchFromGitHub, git }: 2 3buildGoModule rec { 4 pname = "gitbatch"; 5 version = "0.6.1"; 6 7 src = fetchFromGitHub { 8 owner = "isacikgoz"; 9 repo = "gitbatch"; 10 rev = "v${version}"; 11 sha256 = "sha256-ovmdbyPRSebwmW6AW55jBgBKaNdY6w5/wrpUF2cMKw8="; 12 }; 13 14 vendorHash = "sha256-wwpaJO5cXMsvqFXj+qGiIm4zg/SL4YCm2mNnG/qdilw="; 15 16 ldflags = [ "-s" "-w" ]; 17 18 nativeBuildInputs = [ 19 git # required by unit tests 20 ]; 21 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 ''; 27 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 }; 35}