Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cyphernetes: init at v0.15.3 #369554

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12608,6 +12608,11 @@
github = "krzaczek";
githubId = 5773701;
};
kshlm = {
name = "kshlm";
github = "kshlm";
githubId = 362086;
};
KSJ2000 = {
email = "[email protected]";
name = "KSJ2000";
Expand Down Expand Up @@ -22105,6 +22110,12 @@
githubId = 203168;
name = "Stefan Fehrenbach";
};
stefankeidel = {
email = "[email protected]";
github = "stefankeidel";
githubId = 1188614;
name = "Stefan Keidel";
};
stehessel = {
email = "[email protected]";
github = "stehessel";
Expand Down
82 changes: 82 additions & 0 deletions pkgs/by-name/cy/cyphernetes/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nodejs,
nix-update-script,
pnpm_9,
stdenvNoCC,
}:
let
pname = "cyphernetes";
version = "0.15.3";
src = fetchFromGitHub {
owner = "AvitalTamir";
repo = "cyphernetes";
tag = "v${version}";
hash = "sha256-dNJo+6yXFwHU3k1CjloHWkUotsRYW3eJhkYeMmpvXYE=";
};

cyphernetes-web-ui =
let
pname = "cyphernetes-web-ui";
sourceRoot = "${src.name}/web";
in
stdenvNoCC.mkDerivation {
inherit
pname
version
src
sourceRoot
;

pnpmDeps = pnpm_9.fetchDeps {
inherit
pname
version
src
sourceRoot
;
hash = "sha256-3uOBSVA4oyPDj9GLiBSPQonalaSYveJ4II01GTfaAUw=";
};
nativeBuildInputs = [
nodejs
pnpm_9.configHook
];
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -R dist/* $out/
runHook postInstall
'';
};
in
buildGoModule {
inherit pname version src;
vendorHash = "sha256-QthLrLhi+hWngtc11nyFPU63exHZ0mh3IWWa8YHXFPA=";
subPackages = [ "cmd/cyphernetes" ];
doCheck = false; # Tests need a kubeconfig with an active context configured
preBuild = ''
cp -r ${cyphernetes-web-ui} cmd/cyphernetes/web/
'';

passthru.updateScript = nix-update-script { };

meta = {
homepage = "https://cyphernet.es/";
changelog = "https://github.com/AvitalTamir/cyphernetes/releases/tag/v${version}";
description = "Kubernetes query language";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
kshlm
stefankeidel
];
mainProgram = "cyphernetes";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}