Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 12, 2024
2 parents 3118b08 + 27bcfed commit c7d8397
Show file tree
Hide file tree
Showing 11 changed files with 175 additions and 35 deletions.
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@
./programs/kclock.nix
./programs/kdeconnect.nix
./programs/lazygit.nix
./programs/kubeswitch.nix
./programs/less.nix
./programs/liboping.nix
./programs/light.nix
Expand Down
56 changes: 56 additions & 0 deletions nixos/modules/programs/kubeswitch.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.programs.kubeswitch;
in
{
options = {
programs.kubeswitch = {
enable = lib.mkEnableOption (lib.mdDoc "kubeswitch");

commandName = lib.mkOption {
type = lib.types.str;
default = "kswitch";
description = "The name of the command to use";
};

package = lib.mkOption {
type = lib.types.package;
default = pkgs.kubeswitch;
defaultText = lib.literalExpression "pkgs.kubeswitch";
description = "The package to install for kubeswitch";
};
};
};

config =
let
shell_files = pkgs.stdenv.mkDerivation rec {
name = "kubeswitch-shell-files";
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/share
for shell in bash zsh; do
${cfg.package}/bin/switcher init $shell | sed 's/switch(/${cfg.commandName}(/' > $out/share/${cfg.commandName}_init.$shell
${cfg.package}/bin/switcher --cmd ${cfg.commandName} completion $shell > $out/share/${cfg.commandName}_completion.$shell
done
'';
};
in
lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];

programs.bash.interactiveShellInit = ''
source ${shell_files}/share/${cfg.commandName}_init.bash
source ${shell_files}/share/${cfg.commandName}_completion.bash
'';
programs.zsh.interactiveShellInit = ''
source ${shell_files}/share/${cfg.commandName}_init.zsh
source ${shell_files}/share/${cfg.commandName}_completion.zsh
'';
};
}
4 changes: 3 additions & 1 deletion pkgs/applications/editors/aewan/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ lib, stdenv, fetchurl, fetchpatch, zlib, ncurses }:
{ lib, gccStdenv, fetchurl, fetchpatch, zlib, ncurses }:

let stdenv = gccStdenv;
in
stdenv.mkDerivation rec {
pname = "aewan";
version = "1.0.01";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/vscode/extensions/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ let
mktplcRef = {
name = "vscode-neovim";
publisher = "asvetliakov";
version = "1.7.1";
sha256 = "0ib4sjk7r370ckvaqb4yzgy7csy8pli9z2jhibhhwwcq2748ah4q";
version = "1.8.1";
sha256 = "0kqzry0cbvvy1pkbx5rhnk5ry7j91cbf11vz1s1jrqc7j0hq0yx8";
};
meta = {
changelog = "https://marketplace.visualstudio.com/items/asvetliakov.vscode-neovim/changelog";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/mo/mountpoint-s3/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@

rustPlatform.buildRustPackage rec {
pname = "mountpoint-s3";
version = "1.5.0";
version = "1.6.0";

src = fetchFromGitHub {
owner = "awslabs";
repo = "mountpoint-s3";
rev = "v${version}";
hash = "sha256-DsxcQ/FEVcrzPyv9LgssNut4XnbU3mPKbuBwQKLiRLA=";
hash = "sha256-1d2PPbTheUcHw2xS5LEcdchnfwu7szBApv+FnPaxt+I=";
fetchSubmodules = true;
};

cargoHash = "sha256-UOQRdSQ/whlOTZL2vaNiIcKB+Zgpk8tbinWBRWPyllc=";
cargoHash = "sha256-tBi41kdaa4mVHh0MkXJ8kaG1e3CQURIKVk9Lboy1N8Y=";

# thread 'main' panicked at cargo-auditable/src/collect_audit_data.rs:77:9:
# cargo metadata failure: error: none of the selected packages contains these features: libfuse3
Expand Down
63 changes: 63 additions & 0 deletions pkgs/by-name/po/pomodoro-gtk/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, gjs
, gobject-introspection
, blueprint-compiler
, wrapGAppsHook4
, desktop-file-utils
, libadwaita
, libgda6
, gsound
, gst_all_1
, libportal-gtk4
}:

stdenv.mkDerivation {
pname = "pomodoro-gtk";
version = "1.4.1";

src = fetchFromGitLab {
owner = "idevecore";
repo = "pomodoro";
rev = "44b724557539084991f3eb55b9593053a2c73eba"; # author didn't make a tag
fetchSubmodules = true;
hash = "sha256-krVRVMrrzuqPY/3P9dCz7rVCCW7/j5cpT95XniGpBEs=";
};

postPatch = ''
patchShebangs --build troll/gjspack/bin/gjspack
'';

nativeBuildInputs = [
meson
ninja
pkg-config
gjs # runtime for gjspack
gobject-introspection
blueprint-compiler
wrapGAppsHook4
desktop-file-utils
];

buildInputs = [
gjs
libadwaita
libgda6
gsound
gst_all_1.gst-plugins-base
libportal-gtk4
];

meta = {
description = "A simple and intuitive timer application (also named Planytimer)";
homepage = "https://gitlab.com/idevecore/pomodoro";
license = lib.licenses.gpl3Plus;
mainProgram = "pomodoro";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.unix;
};
}
3 changes: 0 additions & 3 deletions pkgs/development/libraries/flint/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
, stdenv
, fetchurl
, gmp
, mpir
, mpfr
, ntl
, openblas ? null, blas, lapack
Expand All @@ -22,7 +21,6 @@ stdenv.mkDerivation rec {

buildInputs = [
gmp
mpir
mpfr
ntl
] ++ lib.optionals withBlas [
Expand All @@ -35,7 +33,6 @@ stdenv.mkDerivation rec {

configureFlags = [
"--with-gmp=${gmp}"
"--with-mpir=${mpir}"
"--with-mpfr=${mpfr}"
"--with-ntl=${ntl}"
] ++ lib.optionals withBlas [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/webkitgtk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

stdenv.mkDerivation (finalAttrs: {
pname = "webkitgtk";
version = "2.44.0";
version = "2.44.1";
name = "${finalAttrs.pname}-${finalAttrs.version}+abi=${if lib.versionAtLeast gtk3.version "4.0" then "6.0" else "4.${if lib.versions.major libsoup.version == "2" then "0" else "1"}"}";

outputs = [ "out" "dev" "devdoc" ];
Expand All @@ -80,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {

src = fetchurl {
url = "https://webkitgtk.org/releases/webkitgtk-${finalAttrs.version}.tar.xz";
hash = "sha256-xmUw5Bulmx7bpO6J7yCyGI4nO+0El+lQhHKePPvjDIc=";
hash = "sha256-QlsUWbDwTQYAx40au15+36PAYKQg+LIx6aai1dKcVWE=";
};

patches = lib.optionals stdenv.isLinux [
Expand Down
40 changes: 26 additions & 14 deletions pkgs/development/tools/kubeswitch/default.nix
Original file line number Diff line number Diff line change
@@ -1,40 +1,52 @@
{ lib, buildGoModule, fetchFromGitHub, testers, kubeswitch }:
{
lib,
buildGoModule,
fetchFromGitHub,
testers,
kubeswitch,
installShellFiles,
}:

buildGoModule rec {
pname = "kubeswitch";
version = "0.8.1";

src = fetchFromGitHub {
owner = "danielfoehrKn";
repo = pname;
repo = "kubeswitch";
rev = version;
sha256 = "sha256-zf7o41YYAppRge0EMXgIN8rI5Kco4/n7BJ90b/X6L1M=";
hash = "sha256-zf7o41YYAppRge0EMXgIN8rI5Kco4/n7BJ90b/X6L1M=";
};

vendorHash = null;

subPackages = [ "cmd/main.go" ];

ldflags = [
"-s" "-w"
"-s"
"-w"
"-X github.com/danielfoehrkn/kubeswitch/cmd/switcher.version=${version}"
"-X github.com/danielfoehrkn/kubeswitch/cmd/switcher.buildDate=1970-01-01"

];

passthru.tests.version = testers.testVersion {
package = kubeswitch;
};
nativeBuildInputs = [ installShellFiles ];

postInstall = ''
mv $out/bin/main $out/bin/switch
mv $out/bin/main $out/bin/switcher
for shell in bash zsh fish; do
$out/bin/switcher --cmd switcher completion $shell > switcher.$shell
installShellCompletion --$shell switcher.$shell
done
'';

meta = with lib; {
description = "The kubectx for operators";
license = licenses.asl20;
passthru.tests.version = testers.testVersion { package = kubeswitch; };

meta = {
changelog = "https://github.com/danielfoehrKn/kubeswitch/releases/tag/${version}";
description = "The kubectx for operators, a drop-in replacement for kubectx";
license = lib.licenses.asl20;
homepage = "https://github.com/danielfoehrKn/kubeswitch";
maintainers = with maintainers; [ bryanasdev000 ];
mainProgram = "switch";
maintainers = with lib.maintainers; [ bryanasdev000 ];
mainProgram = "switcher";
};
}
8 changes: 4 additions & 4 deletions pkgs/misc/ananicy-rules-cachyos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
pname = "ananicy";
version = "unstable-2023-10-11";
version = "unstable-2024-04-10";

src = fetchFromGitHub {
owner = "CachyOS";
repo = "ananicy-rules";
rev = "3dafc3eb667b6ed7024359de78bf961c7248954d";
sha256 = "sha256-bMwM/2R6jdgrQ6C0JnHyMp9L4OWI6KVGcninrr7wLQ8=";
rev = "de55e2f55e6adf559bf4990aa433f5c202dc073d";
sha256 = "sha256-TWaOMVEeTLI67eG5BPyb+OSnz31QvTueQD2yfEEbTEo=";
};

dontConfigure = true;
Expand All @@ -27,6 +27,6 @@ stdenv.mkDerivation rec {
description = "ananicy-cpp-rules for CachyOS ";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ artturin ];
maintainers = with maintainers; [ artturin johnrtitor ];
};
}
21 changes: 15 additions & 6 deletions pkgs/tools/archivers/afio/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub } :
{ lib, stdenv, fetchFromGitHub, fetchpatch } :

stdenv.mkDerivation rec {
version = "2.5.2";
Expand All @@ -11,11 +11,20 @@ stdenv.mkDerivation rec {
sha256 = "1vbxl66r5rp5a1qssjrkfsjqjjgld1cq57c871gd0m4qiq9rmcfy";
};

/*
* A patch to simplify the installation and for removing the
* hard coded dependency on GCC.
*/
patches = [ ./0001-makefile-fix-installation.patch ];
patches = [
/*
* A patch to simplify the installation and for removing the
* hard coded dependency on GCC.
*/
./0001-makefile-fix-installation.patch

# fix darwin build (include headers)
(fetchpatch {
url = "https://github.com/kholtman/afio/pull/18/commits/a726614f99913ced08f6ae74091c56969d5db210.patch";
name = "darwin-headers.patch";
hash = "sha256-pK8mN29fC2mL4B69Fv82dWFIQMGwquyl825OBDTxzpo=";
})
];

installFlags = [ "DESTDIR=$(out)" ];

Expand Down

0 comments on commit c7d8397

Please sign in to comment.