mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +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.
37 lines
878 B
Nix
37 lines
878 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
version = "1.8.0";
|
|
pname = "drone-cli";
|
|
revision = "v${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "harness";
|
|
repo = "drone-cli";
|
|
rev = revision;
|
|
hash = "sha256-moxsGlm7Q9E0q9SZ2gZotn3tRbnbtwhDc9UNCCSb3pY=";
|
|
};
|
|
|
|
vendorHash = "sha256-rKZq2vIXvw4bZ6FXPqOip9dLiV5rSb1fWDJe3oxOBjw=";
|
|
|
|
# patch taken from https://patch-diff.githubusercontent.com/raw/harness/drone-cli/pull/179.patch
|
|
# but with go.mod changes removed due to conflict
|
|
patches = [ ./0001-use-builtin-go-syscerts.patch ];
|
|
|
|
ldflags = [
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
mainProgram = "drone";
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
license = licenses.asl20;
|
|
description = "Command line client for the Drone continuous integration server";
|
|
};
|
|
}
|