From 22dbb8ce4719102669890e5dbdbf210081dacd87 Mon Sep 17 00:00:00 2001 From: Arnar Gauti Ingason Date: Fri, 24 Jan 2020 23:53:34 +0000 Subject: [PATCH 1/2] maintainers: add arnarg --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 656fc37f46bc..2ff03c031891 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -633,6 +633,12 @@ githubId = 1296771; name = "Anders Riutta"; }; + arnarg = { + email = "arnarg@fastmail.com"; + github = "arnarg"; + githubId = 1291396; + name = "Arnar Ingason"; + }; arnoldfarkas = { email = "arnold.farkas@gmail.com"; github = "arnoldfarkas"; From 5458f54a8301f59a8acf5d42856d84f8019efd8d Mon Sep 17 00:00:00 2001 From: Arnar Gauti Ingason Date: Sat, 25 Jan 2020 00:07:53 +0000 Subject: [PATCH 2/2] operator-sdk: init at 0.18.2 Operator-sdk is a cli tool for scaffolding and building Kubernetes operators. --- .../tools/operator-sdk/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/tools/operator-sdk/default.nix diff --git a/pkgs/development/tools/operator-sdk/default.nix b/pkgs/development/tools/operator-sdk/default.nix new file mode 100644 index 000000000000..a157041cf98c --- /dev/null +++ b/pkgs/development/tools/operator-sdk/default.nix @@ -0,0 +1,33 @@ +{ buildGoModule, go, lib, fetchFromGitHub, makeWrapper }: + +buildGoModule rec { + pname = "operator-sdk"; + version = "0.18.2"; + + src = fetchFromGitHub { + owner = "operator-framework"; + repo = pname; + rev = "v${version}"; + sha256 = "02vzxqbh4yw9yvr9cr43hyi0v4hzii4mdb8am41n5y71bcld73v8"; + }; + + vendorSha256 = "0kdbpm6phdcw1rcjggrdvc8hgs3hjc81545qh8jv6zwipmn89i1p"; + + subPackages = [ "cmd/operator-sdk" ]; + + buildInputs = [ go makeWrapper ]; + + # 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"; + license = licenses.asl20; + maintainers = with maintainers; [ arnarg ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a8d8192481d8..bff7b2699453 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5726,6 +5726,8 @@ in oppai-ng = callPackage ../tools/misc/oppai-ng { }; + operator-sdk = callPackage ../development/tools/operator-sdk { }; + update-dotdee = with python3Packages; toPythonApplication update-dotdee; update-resolv-conf = callPackage ../tools/networking/openvpn/update-resolv-conf.nix { };