Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6let 7 version = "0.8.0"; 8in 9 10buildGoModule { 11 pname = "agola"; 12 inherit version; 13 14 src = fetchFromGitHub { 15 owner = "agola-io"; 16 repo = "agola"; 17 rev = "v${version}"; 18 hash = "sha256-nU04MVkUC+m6Ga4qDUH9KrA0zbYmttAicpvdxbaBG0Y="; 19 }; 20 21 vendorHash = "sha256-k3Sip9CqTGRTWxr3RzZf0jCrm4AfUrpY/wSTmHy+yik="; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 "-X agola.io/agola/cmd.Version=${version}" 27 ]; 28 29 tags = [ 30 "sqlite_unlock_notify" 31 ]; 32 33 # somehow the tests get stuck 34 doCheck = false; 35 36 meta = with lib; { 37 description = "Agola: CI/CD Redefined "; 38 homepage = "https://agola.io"; 39 maintainers = with maintainers; [ happysalada ]; 40 license = licenses.mit; 41 }; 42}