Loading pkgs/by-name/ne/nelm/package.nix 0 → 100644 +68 −0 Original line number Diff line number Diff line { buildGoModule, buildPackages, fetchFromGitHub, installShellFiles, lib, stdenv, versionCheckHook, }: buildGoModule (finalAttrs: { pname = "nelm"; version = "1.3.0"; src = fetchFromGitHub { owner = "werf"; repo = "nelm"; tag = "v${finalAttrs.version}"; hash = "sha256-voSGwr4wpei9U5L/6uAcapjNZ5CVn49mwngfsXMcxB0="; }; vendorHash = "sha256-kLFQtRAsxA7fdQIgpa0eV3hSpX5pAGT1DTGeGkawvVk="; subPackages = [ "cmd/nelm" ]; ldflags = [ "-s" "-w" "-X github.com/werf/nelm/internal/common.Brand=Nelm" "-X github.com/werf/nelm/internal/common.Version=${finalAttrs.version}" ]; nativeBuildInputs = [ installShellFiles ]; preCheck = '' # Test all packages. unset subPackages ''; postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( let emulator = stdenv.hostPlatform.emulator buildPackages; in '' for shell in bash fish zsh; do installShellCompletion \ --cmd nelm \ --$shell <(${emulator} $out/bin/nelm completion $shell) done '' ); nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; versionCheckProgramArg = "version"; meta = { description = "Kubernetes deployment tool, alternative to Helm 3"; longDescription = '' Nelm is a Helm 3 alternative. It is a Kubernetes deployment tool that manages Helm Charts and deploys them to Kubernetes. ''; homepage = "https://github.com/werf/nelm"; changelog = "https://github.com/werf/nelm/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.azahi ]; mainProgram = "nelm"; }; }) Loading
pkgs/by-name/ne/nelm/package.nix 0 → 100644 +68 −0 Original line number Diff line number Diff line { buildGoModule, buildPackages, fetchFromGitHub, installShellFiles, lib, stdenv, versionCheckHook, }: buildGoModule (finalAttrs: { pname = "nelm"; version = "1.3.0"; src = fetchFromGitHub { owner = "werf"; repo = "nelm"; tag = "v${finalAttrs.version}"; hash = "sha256-voSGwr4wpei9U5L/6uAcapjNZ5CVn49mwngfsXMcxB0="; }; vendorHash = "sha256-kLFQtRAsxA7fdQIgpa0eV3hSpX5pAGT1DTGeGkawvVk="; subPackages = [ "cmd/nelm" ]; ldflags = [ "-s" "-w" "-X github.com/werf/nelm/internal/common.Brand=Nelm" "-X github.com/werf/nelm/internal/common.Version=${finalAttrs.version}" ]; nativeBuildInputs = [ installShellFiles ]; preCheck = '' # Test all packages. unset subPackages ''; postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ( let emulator = stdenv.hostPlatform.emulator buildPackages; in '' for shell in bash fish zsh; do installShellCompletion \ --cmd nelm \ --$shell <(${emulator} $out/bin/nelm completion $shell) done '' ); nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; versionCheckProgramArg = "version"; meta = { description = "Kubernetes deployment tool, alternative to Helm 3"; longDescription = '' Nelm is a Helm 3 alternative. It is a Kubernetes deployment tool that manages Helm Charts and deploys them to Kubernetes. ''; homepage = "https://github.com/werf/nelm"; changelog = "https://github.com/werf/nelm/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.azahi ]; mainProgram = "nelm"; }; })