diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-02-13 12:25:07 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-02-13 12:25:07 +0100 |
commit | a5e1520e4538e29ecfbd4b168306f890566d7bfd (patch) | |
tree | 28099c268b5d4b1e33c2b29f0714c45f0b961382 /nixpkgs/pkgs/by-name/te | |
parent | 822f7c15c04567fbdc27020e862ea2b70cfbf8eb (diff) | |
parent | 3560d1c8269d0091b9aae10731b5e85274b7bbc1 (diff) | |
download | nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.gz nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.bz2 nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.lz nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.xz nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.zst nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/nixos/modules/services/mail/rss2email.nix nixpkgs/pkgs/build-support/go/module.nix
Diffstat (limited to 'nixpkgs/pkgs/by-name/te')
-rw-r--r-- | nixpkgs/pkgs/by-name/te/tecla/package.nix | 58 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/te/telegraph/package.nix | 52 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/te/terraform-plugin-docs/package.nix | 6 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/te/terrapin-scanner/package.nix | 4 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/te/tetragon/package.nix | 69 |
5 files changed, 184 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/by-name/te/tecla/package.nix b/nixpkgs/pkgs/by-name/te/tecla/package.nix new file mode 100644 index 000000000000..03631469889b --- /dev/null +++ b/nixpkgs/pkgs/by-name/te/tecla/package.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchurl +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "tecla"; + version = "1.6.3"; + + src = fetchurl { + url = "https://www.astro.caltech.edu/~mcs/tecla/libtecla-${finalAttrs.version}.tar.gz"; + hash = "sha256-8nV8xVBAhZ/Pj1mgt7JuAYSiK+zkTtlWikU0pHjB7ho="; + }; + + outputs = [ "out" "man" ]; + + postPatch = '' + substituteInPlace install-sh \ + --replace "stripprog=" "stripprog=\$STRIP # " + ''; + + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; + }; + + meta = { + homepage = "https://www.astro.caltech.edu/~mcs/tecla/"; + description = "Command-line editing library"; + longDescription = '' + The tecla library provides UNIX and LINUX programs with interactive + command line editing facilities, similar to those of the UNIX tcsh + shell. In addition to simple command-line editing, it supports recall of + previously entered command lines, TAB completion of file names or other + tokens, and in-line wild-card expansion of filenames. The internal + functions which perform file-name completion and wild-card expansion are + also available externally for optional use by programs. + + In addition, the library includes a path-searching module. This allows an + application to provide completion and lookup of files located in UNIX + style paths. Although not built into the line editor by default, it can + easily be called from custom tab-completion callback functions. This was + originally conceived for completing the names of executables and + providing a way to look up their locations in the user's PATH environment + variable, but it can easily be asked to look up and complete other types + of files in any list of directories. + + Note that special care has been taken to allow the use of this library in + threaded programs. The option to enable this is discussed in the + Makefile, and specific discussions of thread safety are presented in the + included man pages. + ''; + changelog = "https://sites.astro.caltech.edu/~mcs/tecla/release.html"; + license = with lib.licenses; [ mit ]; + mainProgram = "enhance"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/nixpkgs/pkgs/by-name/te/telegraph/package.nix b/nixpkgs/pkgs/by-name/te/telegraph/package.nix new file mode 100644 index 000000000000..332c09884c65 --- /dev/null +++ b/nixpkgs/pkgs/by-name/te/telegraph/package.nix @@ -0,0 +1,52 @@ +{ lib +, desktop-file-utils +, fetchFromGitHub +, gobject-introspection +, gtk4 +, libadwaita +, meson +, ninja +, pkg-config +, python3 +, stdenv +, wrapGAppsHook4 +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "telegraph"; + version = "0.1.8"; + + src = fetchFromGitHub { + owner = "fkinoshita"; + repo = "Telegraph"; + rev = "v${finalAttrs.version}"; + hash = "sha256-m36YHIo1PaDunnC12feSAbwwG1+E7s90fzOKskHtIag="; + }; + + nativeBuildInputs = [ + desktop-file-utils + gobject-introspection + meson + ninja + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + gtk4 + libadwaita + (python3.withPackages (ps: with ps; [ + pygobject3 + ])) + ]; + + meta = with lib; { + changelog = "https://github.com/fkinoshita/Telegraph/releases/v${finalAttrs.version}"; + description = "Write and decode Morse"; + homepage = "https://github.com/fkinoshita/Telegraph"; + license = licenses.gpl3Only; + mainProgram = "telegraph"; + maintainers = with maintainers; [ michaelgrahamevans ]; + platforms = platforms.linux; + }; +}) diff --git a/nixpkgs/pkgs/by-name/te/terraform-plugin-docs/package.nix b/nixpkgs/pkgs/by-name/te/terraform-plugin-docs/package.nix index de64c81093c5..e1468d251313 100644 --- a/nixpkgs/pkgs/by-name/te/terraform-plugin-docs/package.nix +++ b/nixpkgs/pkgs/by-name/te/terraform-plugin-docs/package.nix @@ -10,16 +10,16 @@ buildGoModule rec { pname = "terraform-plugin-docs"; - version = "0.16.0"; + version = "0.18.0"; src = fetchFromGitHub { owner = "hashicorp"; repo = "terraform-plugin-docs"; rev = "refs/tags/v${version}"; - sha256 = "sha256-5vbi69GMgkzvN3aEQbNTbk99rg+kfvAvUrdDsuyIm9s="; + sha256 = "sha256-8rNoH01fWNGWH3cSqqFCGetl5S/d3yVh+pmIzg79g3k="; }; - vendorHash = "sha256-AjW6BokLVDkIWXToJ7wNq/g19xKTAfpQ/gVlKCV5qw0="; + vendorHash = "sha256-9ddxgceILBP1NqbGr08cfdPs0BHSjQWN0MkFA5oqyPE="; nativeBuildInputs = [ makeWrapper ]; diff --git a/nixpkgs/pkgs/by-name/te/terrapin-scanner/package.nix b/nixpkgs/pkgs/by-name/te/terrapin-scanner/package.nix index df8dd1158c1a..2bf04dc676de 100644 --- a/nixpkgs/pkgs/by-name/te/terrapin-scanner/package.nix +++ b/nixpkgs/pkgs/by-name/te/terrapin-scanner/package.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "terrapin-scanner"; - version = "1.1.2"; + version = "1.1.3"; src = fetchFromGitHub { owner = "RUB-NDS"; repo = "Terrapin-Scanner"; rev = "refs/tags/v${version}"; - hash = "sha256-LBcoD/adIcda6ZxlEog8ArW0thr3g14fvEMFfgxiTsI="; + hash = "sha256-PmKfHvad+YAwLcdoiDSOBMQFgOKzJ6NbGbt4v570gyI="; }; vendorHash = "sha256-x3fzs/TNGRo+u+RufXzzjDCeQayEZIKlgokdEQJRNaI="; diff --git a/nixpkgs/pkgs/by-name/te/tetragon/package.nix b/nixpkgs/pkgs/by-name/te/tetragon/package.nix new file mode 100644 index 000000000000..cbb940da53e4 --- /dev/null +++ b/nixpkgs/pkgs/by-name/te/tetragon/package.nix @@ -0,0 +1,69 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, go +, llvm_16 +, clang_16 +, bash +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "tetragon"; + version = "0.11.0"; + + src = fetchFromGitHub { + owner = "cilium"; + repo = "tetragon"; + rev = "refs/tags/v${finalAttrs.version}"; + sha256 = "sha256-KOR5MMRnhrlcMPqRjzjSJXvitiZQ8/tlxEnBiQG2x/Q="; + }; + + buildInputs = [ + clang_16 + go + llvm_16 + pkg-config + ]; + + env.NIX_CFLAGS_COMPILE = "-fno-stack-protector -Qunused-arguments"; + + buildPhase = '' + runHook preBuild + export HOME=$TMP + export LOCAL_CLANG=1 + export LOCAL_CLANG_FORMAT=1 + make tetragon + make tetragon-operator + make tetra + make tetragon-bpf + runHook postBuild + ''; + + postPatch = '' + substituteInPlace bpf/Makefile --replace '/bin/bash' '${lib.getExe bash}' + substituteInPlace pkg/defaults/defaults.go --replace '/var/lib/tetragon/' $out/lib/tetragon/bpf/ + ''; + + installPhase = '' + runHook preInstall + mkdir -p $out/lib/tetragon $out/lib/tetragon/tetragon.tp.d/ + sed -i "s+/usr/local/+$out/+g" install/linux-tarball/usr/local/lib/tetragon/tetragon.conf.d/bpf-lib + cp -n -r install/linux-tarball/usr/local/lib/tetragon/tetragon.conf.d/ $out/lib/tetragon/ + cp -n -r ./bpf/objs $out/lib/tetragon/bpf + install -m755 -D ./tetra $out/bin/tetra + install -m755 -D ./tetragon $out/bin/tetragon + runHook postInstall + ''; + + meta = with lib; { + description = "Real-time, eBPF-based Security Observability and Runtime Enforcement tool"; + homepage = "https://github.com/cilium/tetragon"; + license = licenses.asl20; + mainProgram = "tetragon"; + maintainers = with maintainers; [ gangaram ]; + platforms = platforms.linux; + sourceProvenance = with sourceTypes; [ fromSource ]; + }; +}) + |