mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
![aleksana](/assets/img/avatar_default.png)
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.
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, go
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "operator-sdk";
|
|
version = "1.37.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "operator-framework";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ANG9KpyEO+fpjelYU+HNTkbg2S0vFNyPzPRFjcLoLOI=";
|
|
};
|
|
|
|
vendorHash = "sha256-pr3WTUZetps/Gof8lttN2beomiobVPCgX0j9V77g5sI=";
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
go
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [
|
|
"cmd/helm-operator"
|
|
"cmd/operator-sdk"
|
|
];
|
|
|
|
# operator-sdk uses the go compiler at runtime
|
|
allowGoReference = true;
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/operator-sdk --prefix PATH : ${lib.makeBinPath [ go ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "SDK for building Kubernetes applications. Provides high level APIs, useful abstractions, and project scaffolding";
|
|
homepage = "https://github.com/operator-framework/operator-sdk";
|
|
changelog = "https://github.com/operator-framework/operator-sdk/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ arnarg ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|