mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1005 B
Nix
43 lines
1005 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, woodpecker-plugin-git
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "woodpecker-plugin-git";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "woodpecker-ci";
|
|
repo = "plugin-git";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ffP4CmvoxmXdwrWWOG2HIoz1pgmxTUdG5rPsgJ1+3do=";
|
|
};
|
|
|
|
vendorHash = "sha256-wB1Uv7ZSIEHzR8z96hwXScoGA31uhoql/wwAH3Olj2E=";
|
|
|
|
CGO_ENABLED = "0";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
# Checks fail because they require network access.
|
|
doCheck = false;
|
|
|
|
passthru.tests.version = testers.testVersion { package = woodpecker-plugin-git; };
|
|
|
|
meta = with lib; {
|
|
description = "Woodpecker plugin for cloning Git repositories";
|
|
homepage = "https://woodpecker-ci.org/";
|
|
changelog = "https://github.com/woodpecker-ci/plugin-git/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
mainProgram = "plugin-git";
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|