Merge master into staging-next
This commit is contained in:
commit
b33aedbb4d
@ -44,10 +44,9 @@ in {
|
|||||||
telephony-service
|
telephony-service
|
||||||
teleports
|
teleports
|
||||||
]);
|
]);
|
||||||
variables = {
|
|
||||||
# To override the keyboard layouts in Lomiri
|
# To override the default keyboard layout in Lomiri
|
||||||
NIXOS_XKB_LAYOUTS = config.services.xserver.xkb.layout;
|
etc.${pkgs.lomiri.lomiri.passthru.etcLayoutsFile}.text = lib.strings.replaceStrings [","] ["\n"] config.services.xserver.xkb.layout;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
@ -234,11 +234,12 @@ in
|
|||||||
system.activationScripts.var = ""; # obsolete
|
system.activationScripts.var = ""; # obsolete
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
|
"D /var/empty 0555 root root -"
|
||||||
|
"h /var/empty - - - - +i"
|
||||||
|
] ++ lib.optionals config.nix.enable [
|
||||||
# Prevent the current configuration from being garbage-collected.
|
# Prevent the current configuration from being garbage-collected.
|
||||||
"d /nix/var/nix/gcroots -"
|
"d /nix/var/nix/gcroots -"
|
||||||
"L+ /nix/var/nix/gcroots/current-system - - - - /run/current-system"
|
"L+ /nix/var/nix/gcroots/current-system - - - - /run/current-system"
|
||||||
"D /var/empty 0555 root root -"
|
|
||||||
"h /var/empty - - - - +i"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
system.activationScripts.usrbinenv = if config.environment.usrbinenv != null
|
system.activationScripts.usrbinenv = if config.environment.usrbinenv != null
|
||||||
|
@ -281,15 +281,19 @@ in
|
|||||||
) cfg.settings);
|
) cfg.settings);
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /nix/var 0755 root root - -"
|
|
||||||
"L+ /nix/var/nix/gcroots/booted-system 0755 root root - /run/booted-system"
|
|
||||||
"d /run/lock 0755 root root - -"
|
"d /run/lock 0755 root root - -"
|
||||||
"d /var/db 0755 root root - -"
|
"d /var/db 0755 root root - -"
|
||||||
"L /var/lock - - - - ../run/lock"
|
"L /var/lock - - - - ../run/lock"
|
||||||
# Boot-time cleanup
|
] ++ lib.optionals config.nix.enable [
|
||||||
|
"d /nix/var 0755 root root - -"
|
||||||
|
"L+ /nix/var/nix/gcroots/booted-system 0755 root root - /run/booted-system"
|
||||||
|
]
|
||||||
|
# Boot-time cleanup
|
||||||
|
++ [
|
||||||
"R! /etc/group.lock - - - - -"
|
"R! /etc/group.lock - - - - -"
|
||||||
"R! /etc/passwd.lock - - - - -"
|
"R! /etc/passwd.lock - - - - -"
|
||||||
"R! /etc/shadow.lock - - - - -"
|
"R! /etc/shadow.lock - - - - -"
|
||||||
|
] ++ lib.optionals config.nix.enable [
|
||||||
"R! /nix/var/nix/gcroots/tmp - - - - -"
|
"R! /nix/var/nix/gcroots/tmp - - - - -"
|
||||||
"R! /nix/var/nix/temproots - - - - -"
|
"R! /nix/var/nix/temproots - - - - -"
|
||||||
];
|
];
|
||||||
|
@ -31,10 +31,11 @@
|
|||||||
services.bind.forwarders = lib.mkForce [];
|
services.bind.forwarders = lib.mkForce [];
|
||||||
services.bind.zones = lib.singleton {
|
services.bind.zones = lib.singleton {
|
||||||
name = ".";
|
name = ".";
|
||||||
|
master = true;
|
||||||
file = let
|
file = let
|
||||||
addDot = zone: zone + lib.optionalString (!lib.hasSuffix "." zone) ".";
|
addDot = zone: zone + lib.optionalString (!lib.hasSuffix "." zone) ".";
|
||||||
mkNsdZoneNames = zones: map addDot (lib.attrNames zones);
|
mkNsdZoneNames = zones: map addDot (lib.attrNames zones);
|
||||||
mkBindZoneNames = zones: map (zone: addDot zone.name) zones;
|
mkBindZoneNames = zones: map addDot (lib.attrNames zones);
|
||||||
getZones = cfg: mkNsdZoneNames cfg.services.nsd.zones
|
getZones = cfg: mkNsdZoneNames cfg.services.nsd.zones
|
||||||
++ mkBindZoneNames cfg.services.bind.zones;
|
++ mkBindZoneNames cfg.services.bind.zones;
|
||||||
|
|
||||||
|
@ -700,4 +700,92 @@ in
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
keymap =
|
||||||
|
let
|
||||||
|
pwInput = "qwerty";
|
||||||
|
pwOutput = "qwertz";
|
||||||
|
in
|
||||||
|
makeTest (
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
name = "lomiri-keymap";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
maintainers = lib.teams.lomiri.members;
|
||||||
|
};
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
imports = [ ./common/user-account.nix ];
|
||||||
|
|
||||||
|
virtualisation.memorySize = 2047;
|
||||||
|
|
||||||
|
users.users.${user} = {
|
||||||
|
inherit description;
|
||||||
|
password = lib.mkForce pwOutput;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.desktopManager.lomiri.enable = lib.mkForce true;
|
||||||
|
services.displayManager.defaultSession = lib.mkForce "lomiri";
|
||||||
|
|
||||||
|
# Help with OCR
|
||||||
|
fonts.packages = [ pkgs.inconsolata ];
|
||||||
|
|
||||||
|
# Non-QWERTY keymap to test keymap patch
|
||||||
|
services.xserver.xkb.layout = "de";
|
||||||
|
};
|
||||||
|
|
||||||
|
enableOCR = true;
|
||||||
|
|
||||||
|
testScript =
|
||||||
|
{ nodes, ... }:
|
||||||
|
''
|
||||||
|
def wait_for_text(text):
|
||||||
|
"""
|
||||||
|
Wait for on-screen text, and try to optimise retry count for slow hardware.
|
||||||
|
"""
|
||||||
|
machine.sleep(10)
|
||||||
|
machine.wait_for_text(text)
|
||||||
|
|
||||||
|
start_all()
|
||||||
|
machine.wait_for_unit("multi-user.target")
|
||||||
|
|
||||||
|
# Lomiri in greeter mode should use the correct keymap
|
||||||
|
with subtest("lomiri greeter keymap works"):
|
||||||
|
machine.wait_for_unit("display-manager.service")
|
||||||
|
machine.wait_until_succeeds("pgrep -u lightdm -f 'lomiri --mode=greeter'")
|
||||||
|
|
||||||
|
# Start page shows current time
|
||||||
|
wait_for_text(r"(AM|PM)")
|
||||||
|
machine.screenshot("lomiri_greeter_launched")
|
||||||
|
|
||||||
|
# Advance to login part
|
||||||
|
machine.send_key("ret")
|
||||||
|
wait_for_text("${description}")
|
||||||
|
machine.screenshot("lomiri_greeter_login")
|
||||||
|
|
||||||
|
# Login
|
||||||
|
machine.send_chars("${pwInput}\n")
|
||||||
|
machine.wait_until_succeeds("pgrep -u ${user} -f 'lomiri --mode=full-shell'")
|
||||||
|
|
||||||
|
# Output rendering from Lomiri has started when it starts printing performance diagnostics
|
||||||
|
machine.wait_for_console_text("Last frame took")
|
||||||
|
# Look for datetime's clock, one of the last elements to load
|
||||||
|
wait_for_text(r"(AM|PM)")
|
||||||
|
machine.screenshot("lomiri_launched")
|
||||||
|
|
||||||
|
# Lomiri in desktop mode should use the correct keymap
|
||||||
|
with subtest("lomiri session keymap works"):
|
||||||
|
machine.send_key("ctrl-alt-t")
|
||||||
|
wait_for_text(r"(${user}|machine)")
|
||||||
|
machine.screenshot("terminal_opens")
|
||||||
|
|
||||||
|
machine.send_chars("touch ${pwInput}\n")
|
||||||
|
machine.wait_for_file("/home/alice/${pwOutput}", 10)
|
||||||
|
|
||||||
|
machine.send_key("alt-f4")
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@ -18528,6 +18528,18 @@ final: prev:
|
|||||||
meta.homepage = "https://github.com/samodostal/image.nvim/";
|
meta.homepage = "https://github.com/samodostal/image.nvim/";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
resession-nvim = buildVimPlugin {
|
||||||
|
pname = "resession.nvim";
|
||||||
|
version = "2024-08-16";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "stevearc";
|
||||||
|
repo = "resession.nvim";
|
||||||
|
rev = "c4d92a57b3936a2d6e1c087dbd6b670da2b1b082";
|
||||||
|
sha256 = "sha256-S5mN/1yzUjV76YTYB41aaTL1xuGEfTN2LpEsc28RhDM=";
|
||||||
|
};
|
||||||
|
meta.homepage = "https://github.com/stevearc/resession.nvim";
|
||||||
|
};
|
||||||
|
|
||||||
tinykeymap = buildVimPlugin {
|
tinykeymap = buildVimPlugin {
|
||||||
pname = "tinykeymap";
|
pname = "tinykeymap";
|
||||||
version = "2024-02-17";
|
version = "2024-02-17";
|
||||||
|
@ -878,6 +878,7 @@ https://github.com/vladdoster/remember.nvim/,,
|
|||||||
https://github.com/filipdutescu/renamer.nvim/,,
|
https://github.com/filipdutescu/renamer.nvim/,,
|
||||||
https://github.com/MeanderingProgrammer/render-markdown.nvim/,,
|
https://github.com/MeanderingProgrammer/render-markdown.nvim/,,
|
||||||
https://github.com/gabrielpoca/replacer.nvim/,HEAD,
|
https://github.com/gabrielpoca/replacer.nvim/,HEAD,
|
||||||
|
https://github.com/stevearc/resession.nvim/,HEAD,
|
||||||
https://github.com/NTBBloodbath/rest.nvim/,,
|
https://github.com/NTBBloodbath/rest.nvim/,,
|
||||||
https://github.com/vim-scripts/restore_view.vim/,HEAD,restore-view-vim
|
https://github.com/vim-scripts/restore_view.vim/,HEAD,restore-view-vim
|
||||||
https://github.com/gu-fan/riv.vim/,,
|
https://github.com/gu-fan/riv.vim/,,
|
||||||
|
@ -1642,8 +1642,8 @@ let
|
|||||||
mktplcRef = {
|
mktplcRef = {
|
||||||
name = "elixir-ls";
|
name = "elixir-ls";
|
||||||
publisher = "JakeBecker";
|
publisher = "JakeBecker";
|
||||||
version = "0.23.1";
|
version = "0.24.0";
|
||||||
hash = "sha256-rwpaixQbuxVkH4wlKPG4Qk69IylwjfCtyfUcqCuN/e8=";
|
hash = "sha256-zNiKtOeZEO9zVpyF4AE/3FjiEy4jtCSCjB9T8e8PjRE=";
|
||||||
};
|
};
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://marketplace.visualstudio.com/items/JakeBecker.elixir-ls/changelog";
|
changelog = "https://marketplace.visualstudio.com/items/JakeBecker.elixir-ls/changelog";
|
||||||
@ -5393,6 +5393,8 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
yzane.markdown-pdf = callPackage ./yzane.markdown-pdf { };
|
||||||
|
|
||||||
yzhang.dictionary-completion = buildVscodeMarketplaceExtension {
|
yzhang.dictionary-completion = buildVscodeMarketplaceExtension {
|
||||||
mktplcRef = {
|
mktplcRef = {
|
||||||
publisher = "yzhang";
|
publisher = "yzhang";
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
vscode-utils,
|
||||||
|
jq,
|
||||||
|
moreutils,
|
||||||
|
ungoogled-chromium,
|
||||||
|
}:
|
||||||
|
|
||||||
|
vscode-utils.buildVscodeMarketplaceExtension {
|
||||||
|
mktplcRef = {
|
||||||
|
name = "markdown-pdf";
|
||||||
|
publisher = "yzane";
|
||||||
|
version = "1.5.0";
|
||||||
|
hash = "sha256-aiifZgHXC4GUEbkKAbLc0p/jUZxp1jF/J1Y/KIyvLIE=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
jq
|
||||||
|
moreutils
|
||||||
|
];
|
||||||
|
postInstall = ''
|
||||||
|
jq '.contributes.configuration.properties."markdown-pdf.executablePath".default = "${lib.getExe ungoogled-chromium}"' $out/$installPrefix/package.json | sponge $out/$installPrefix/package.json
|
||||||
|
'';
|
||||||
|
meta = {
|
||||||
|
description = "Converts Markdown files to pdf, html, png or jpeg files";
|
||||||
|
homepage = "https://github.com/yzane/vscode-markdown-pdf#readme";
|
||||||
|
changelog = "https://github.com/yzane/vscode-markdown-pdf/blob/master/CHANGELOG.md";
|
||||||
|
downloadPage = "https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ pandapip1 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,27 +0,0 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
|
||||||
|
|
||||||
buildGoModule rec {
|
|
||||||
pname = "kconf";
|
|
||||||
version = "2.0.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "particledecay";
|
|
||||||
repo = "kconf";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "sha256-bLyLXkXOZRFaplv5sY0TgFffvbA3RUwz6b+7h3MN7kA=";
|
|
||||||
};
|
|
||||||
|
|
||||||
vendorHash = "sha256-REguLiYlcC2Q6ao2oMl92/cznW+E8MO2UGhQKRXZ1vQ=";
|
|
||||||
|
|
||||||
ldflags = [
|
|
||||||
"-s" "-w" "-X github.com/particledecay/kconf/build.Version=${version}"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Opinionated command line tool for managing multiple kubeconfigs";
|
|
||||||
mainProgram = "kconf";
|
|
||||||
homepage = "https://github.com/particledecay/kconf";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ thmzlt ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -8,16 +8,16 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "databricks-cli";
|
pname = "databricks-cli";
|
||||||
version = "0.228.1";
|
version = "0.229.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "databricks";
|
owner = "databricks";
|
||||||
repo = "cli";
|
repo = "cli";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-zQ39PwVjyxOTo6P+RA4F20/28loMbu3Bprd4C3jgu5A=";
|
hash = "sha256-ap2IypBPFV4yJVXRS8zSXC0kW/QKpOvFS9Cod0pSlG0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-SOeVIwMbx1eRzBvyfT3aaJOL7BCb745yezn1QYrf5vU=";
|
vendorHash = "sha256-yCwevuivIHZ0dns9QljiKvwws4cFknIydvfjs4Jib3s=";
|
||||||
|
|
||||||
excludedPackages = [ "bundle/internal" ];
|
excludedPackages = [ "bundle/internal" ];
|
||||||
|
|
||||||
|
@ -9,17 +9,17 @@ let
|
|||||||
|
|
||||||
in buildGoModule rec {
|
in buildGoModule rec {
|
||||||
pname = "go-ethereum";
|
pname = "go-ethereum";
|
||||||
version = "1.14.9";
|
version = "1.14.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ethereum";
|
owner = "ethereum";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-W0wHQMvbQJC3PdCZLVpE3cTasii/CkF+gdVOV2MX2Mo=";
|
hash = "sha256-y4tUV5TGhvvaLTukT0jVhoBWxXQlDFVKHScQC8Ytl/A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
vendorHash = "sha256-Fxl8fisdCH0nlUFOS5NLMnvfpqIhlTd6/BbR+qIzlKQ=";
|
vendorHash = "sha256-xPFTvzsHMWVyeAt7m++6v2l8m5ZvnLaIDGki/TWe5kU=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -124,13 +124,13 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "hydra";
|
pname = "hydra";
|
||||||
version = "0-unstable-2024-09-20";
|
version = "0-unstable-2024-09-24";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "hydra";
|
repo = "hydra";
|
||||||
rev = "44248d3cf4162944ec2e6a45f8cc058758bf5a86";
|
rev = "95003f2eb503f71979856470c7caea946f1ae7f0";
|
||||||
hash = "sha256-WJ7M/1a8j5gRJJVzCJL6JrkGPckD5ZhKzTlmiKNdtm0=";
|
hash = "sha256-6FI0QIkMAL35J8mzAiAntCsFbMMZBuOBpKuDIctflaA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
47
pkgs/by-name/kc/kconf/package.nix
Normal file
47
pkgs/by-name/kc/kconf/package.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
installShellFiles,
|
||||||
|
stdenv,
|
||||||
|
}:
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "kconf";
|
||||||
|
version = "2.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "particledecay";
|
||||||
|
repo = "kconf";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-bLyLXkXOZRFaplv5sY0TgFffvbA3RUwz6b+7h3MN7kA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-REguLiYlcC2Q6ao2oMl92/cznW+E8MO2UGhQKRXZ1vQ=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X github.com/particledecay/kconf/build.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
|
installShellCompletion --cmd kconf \
|
||||||
|
--bash <($out/bin/kconf completion bash) \
|
||||||
|
--fish <($out/bin/kconf completion fish) \
|
||||||
|
--zsh <($out/bin/kconf completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Opinionated command line tool for managing multiple kubeconfigs";
|
||||||
|
mainProgram = "kconf";
|
||||||
|
homepage = "https://github.com/particledecay/kconf";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [
|
||||||
|
thmzlt
|
||||||
|
sailord
|
||||||
|
vinetos
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -1,25 +1,26 @@
|
|||||||
{ lib
|
{
|
||||||
, buildGoModule
|
lib,
|
||||||
, fetchFromGitHub
|
buildGo123Module,
|
||||||
, nix-update-script
|
fetchFromGitHub,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGo123Module rec {
|
||||||
pname = "keep-sorted";
|
pname = "keep-sorted";
|
||||||
version = "0.4.0";
|
version = "0.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "google";
|
owner = "google";
|
||||||
repo = "keep-sorted";
|
repo = "keep-sorted";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-yeps+StUA7h12Jlra24Po2zNzjIPNIQCOyWLazC8F8M=";
|
hash = "sha256-jqSb/lcdeQMa1XpzaopDBbkKymp+HubLeAx3d6x5pns=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-tPTWWvr+/8wWUnQcI4Ycco2OEgA2mDQt15OGCk/ZjrQ=";
|
vendorHash = "sha256-HTE9vfjRmi5GpMue7lUfd0jmssPgSOljbfPbya4uGsc=";
|
||||||
|
|
||||||
CGO_ENABLED = "0";
|
CGO_ENABLED = "0";
|
||||||
|
|
||||||
ldfags = [ "-s" "-w" ];
|
ldflags = [ "-s" ];
|
||||||
|
|
||||||
checkFlags = [
|
checkFlags = [
|
||||||
# Test tries to find files using git
|
# Test tries to find files using git
|
||||||
|
@ -18,7 +18,7 @@ let
|
|||||||
llvmPackages = llvmPackages_18;
|
llvmPackages = llvmPackages_18;
|
||||||
stdenv = llvmPackages.stdenv;
|
stdenv = llvmPackages.stdenv;
|
||||||
|
|
||||||
version = "8.0.13";
|
version = "8.0.14";
|
||||||
|
|
||||||
hasI686 =
|
hasI686 =
|
||||||
(if targets == [ ] then stdenv.hostPlatform.isx86_32 else (builtins.elem "i686" targets))
|
(if targets == [ ] then stdenv.hostPlatform.isx86_32 else (builtins.elem "i686" targets))
|
||||||
@ -64,7 +64,7 @@ stdenv.mkDerivation {
|
|||||||
# Packaging that in Nix is very cumbersome.
|
# Packaging that in Nix is very cumbersome.
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/limine-bootloader/limine/releases/download/v${version}/limine-${version}.tar.gz";
|
url = "https://github.com/limine-bootloader/limine/releases/download/v${version}/limine-${version}.tar.gz";
|
||||||
hash = "sha256-pg0tAn4YlfEzpyxb9QAAR0PApYmtnafMbIXfhHw+w3k=";
|
hash = "sha256-tj8wFUFveGp10Ls4xWIqqdY6fUHWy3jxsVeJRTz7/9Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [
|
hardeningDisable = [
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"stable": {
|
"stable": {
|
||||||
"version": "5.6.2",
|
"version": "5.7.0",
|
||||||
"hash": "sha256-vnCHIKYMvMJPGjQdtGsVwZCEb1eId83yIemSnSuG0DU="
|
"hash": "sha256-OLhoy18/y6Z5KjjbJiQ3r2ZeOBtn62paDu4aNYL3n0w="
|
||||||
},
|
},
|
||||||
"beta": {
|
"beta": {
|
||||||
"version": "5.7.0-beta.1",
|
"version": "5.7.0",
|
||||||
"hash": "sha256-FFIL4HZtZaao90SefWeGWr016lqMoDVfRSaFt91q4Zk="
|
"hash": "sha256-OLhoy18/y6Z5KjjbJiQ3r2ZeOBtn62paDu4aNYL3n0w="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
CoreServices ? darwin.apple_sdk.frameworks.CoreServices,
|
CoreServices ? darwin.apple_sdk.frameworks.CoreServices,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
version = "0.6.6";
|
version = "0.6.7";
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
pname = "mdbook-alerts";
|
pname = "mdbook-alerts";
|
||||||
@ -17,10 +17,10 @@ rustPlatform.buildRustPackage {
|
|||||||
owner = "lambdalisue";
|
owner = "lambdalisue";
|
||||||
repo = "rs-mdbook-alerts";
|
repo = "rs-mdbook-alerts";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-npPQU53l/VtTH23YYT6SOa11eUPNcA96al06S5HNNFE=";
|
hash = "sha256-H3xpaluEUYWuP+JR4Zx8zs/EqeEZPiBa2wcaAtPdvGY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-1wumxZoNr1QIit+KjgioG5WlSLSsWfcisChUEISoGQE=";
|
cargoHash = "sha256-epnhKGvKN/iHcI77wEJlq7A5S2CkVRoPFTD+fGp1BH8=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
|
||||||
|
|
||||||
|
@ -7,19 +7,19 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pname = "open-webui";
|
pname = "open-webui";
|
||||||
version = "0.3.30";
|
version = "0.3.32";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "open-webui";
|
owner = "open-webui";
|
||||||
repo = "open-webui";
|
repo = "open-webui";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-zGgCISGpna9L8Eqze0WWagIx26DwhLpeOLCVslpcJ08=";
|
hash = "sha256-XpPaMGn+JA3Rq+Eb97IGWMLAR+0pI+ZJRxOTmxIMPZg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
frontend = buildNpmPackage {
|
frontend = buildNpmPackage {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|
||||||
npmDepsHash = "sha256-508AjFAzQvWPkn+kMv/YQUeG0jikZJJxNkFqfkKi9Ks=";
|
npmDepsHash = "sha256-tAPI/H5/lv+RuDZ68lL/cZHcOs8H6ZxXSwiFvkp0y4A=";
|
||||||
|
|
||||||
# Disabling `pyodide:fetch` as it downloads packages during `buildPhase`
|
# Disabling `pyodide:fetch` as it downloads packages during `buildPhase`
|
||||||
# Until this is solved, running python packages from the browser will not work.
|
# Until this is solved, running python packages from the browser will not work.
|
||||||
@ -87,6 +87,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
flask
|
flask
|
||||||
flask-cors
|
flask-cors
|
||||||
fpdf2
|
fpdf2
|
||||||
|
ftfy
|
||||||
google-generativeai
|
google-generativeai
|
||||||
langchain
|
langchain
|
||||||
langchain-chroma
|
langchain-chroma
|
||||||
|
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
|
|||||||
hash = "sha256-uuETGbv5qm0Z+45+kK66SBHhQ0Puu6I5z+TWIh3iR2g=";
|
hash = "sha256-uuETGbv5qm0Z+45+kK66SBHhQ0Puu6I5z+TWIh3iR2g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sourceRoot = "${src.name}/src";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ncurses
|
ncurses
|
||||||
pulseaudio
|
pulseaudio
|
||||||
@ -28,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/qrq.c \
|
substituteInPlace qrq.c \
|
||||||
--replace-fail '[80]' '[4000]' \
|
--replace-fail '[80]' '[4000]' \
|
||||||
--replace-fail '80,' '4000,'
|
--replace-fail '80,' '4000,'
|
||||||
'';
|
'';
|
||||||
|
@ -39,11 +39,11 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "renode";
|
pname = "renode";
|
||||||
version = "1.15.2";
|
version = "1.15.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/renode/renode/releases/download/v${finalAttrs.version}/renode-${finalAttrs.version}.linux-dotnet.tar.gz";
|
url = "https://github.com/renode/renode/releases/download/v${finalAttrs.version}/renode-${finalAttrs.version}.linux-dotnet.tar.gz";
|
||||||
hash = "sha256-4W6/s2XYKj4q31VLz5MohaMdv4rLTaQHCx6AoWxHTvo=";
|
hash = "sha256-0CZWIwIG85nT7uSHhmBkH21S5mTx2womYWV0HG+g8Mk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
29
pkgs/by-name/ts/tslib/package.nix
Normal file
29
pkgs/by-name/ts/tslib/package.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
cmake,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "tslib";
|
||||||
|
version = "1.23";
|
||||||
|
hash = "sha256-2YJDADh/WCksAEIjngAdji98YGmwjpvxSBZkxAwFc7k=";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "libts";
|
||||||
|
repo = finalAttrs.pname;
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
sha256 = finalAttrs.hash;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Touchscreen access library";
|
||||||
|
homepage = "http://www.tslib.org/";
|
||||||
|
license = lib.licenses.lgpl21;
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
maintainers = with lib.maintainers; [ shogo ];
|
||||||
|
};
|
||||||
|
})
|
@ -1,51 +1,58 @@
|
|||||||
{ lib
|
{
|
||||||
, rustPlatform
|
lib,
|
||||||
, fetchFromGitHub
|
rustPlatform,
|
||||||
, pkg-config
|
fetchFromGitHub,
|
||||||
, libgit2
|
pkg-config,
|
||||||
, zlib
|
libgit2,
|
||||||
, stdenv
|
zlib,
|
||||||
, darwin
|
stdenv,
|
||||||
, nix-update-script
|
darwin,
|
||||||
, testers
|
nix-update-script,
|
||||||
, typstyle
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "typstyle";
|
pname = "typstyle";
|
||||||
version = "0.11.34";
|
version = "0.11.35";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Enter-tainer";
|
owner = "Enter-tainer";
|
||||||
repo = "typstyle";
|
repo = "typstyle";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-6z2jzs5PxsEsCPSm9+sZnBdzh0edLMylaLBvSSPoPNo=";
|
hash = "sha256-mPppnbgTXJ4ALIHrI0q9UpwGPDoTGitw5KRY8eA/vJg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-MaqsAQvh30nDzoxgnFKu7+wvRZ7WvwLgKYM3Fru8qfg=";
|
cargoHash = "sha256-30xinYXS+OGYE1H0Eutwpjgn3OfFtjTUJInDHvn6/E0=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
libgit2
|
[
|
||||||
zlib
|
libgit2
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
zlib
|
||||||
darwin.apple_sdk.frameworks.CoreFoundation
|
]
|
||||||
darwin.apple_sdk.frameworks.CoreServices
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.Security
|
darwin.apple_sdk.frameworks.CoreFoundation
|
||||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
darwin.apple_sdk.frameworks.CoreServices
|
||||||
];
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
|
];
|
||||||
|
|
||||||
# Disabling tests requiring network access
|
# Disabling tests requiring network access
|
||||||
checkFlags = [
|
checkFlags = [
|
||||||
"--skip=e2e"
|
"--skip=e2e"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
versionCheckProgramArg = [ "--version" ];
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = nix-update-script { };
|
updateScript = nix-update-script { };
|
||||||
tests.version = testers.testVersion { package = typstyle; };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -47,6 +47,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
"${finalAttrs.deps}"
|
"${finalAttrs.deps}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
substituteInPlace $out/bin/wayprompt-ssh-askpass \
|
||||||
|
--replace-fail wayprompt $out/bin/wayprompt
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://git.sr.ht/~leon_plickat/wayprompt";
|
homepage = "https://git.sr.ht/~leon_plickat/wayprompt";
|
||||||
description = "Multi-purpose (password-)prompt tool for Wayland";
|
description = "Multi-purpose (password-)prompt tool for Wayland";
|
||||||
|
@ -0,0 +1,39 @@
|
|||||||
|
From 9e843a203f68ca75d430f1032a92d3c87f9ed2c2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: OPNA2608 <opna2608@protonmail.com>
|
||||||
|
Date: Sun, 29 Sep 2024 12:05:07 +0200
|
||||||
|
Subject: [PATCH] plugins/AccountsService/AccountsService.cpp: If keymap unset,
|
||||||
|
read fallbacks from NixOS-specific file
|
||||||
|
|
||||||
|
---
|
||||||
|
plugins/AccountsService/AccountsService.cpp | 15 +++++++++++++++
|
||||||
|
1 file changed, 15 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/plugins/AccountsService/AccountsService.cpp b/plugins/AccountsService/AccountsService.cpp
|
||||||
|
index bfc4bf3ce..9308220a9 100644
|
||||||
|
--- a/plugins/AccountsService/AccountsService.cpp
|
||||||
|
+++ b/plugins/AccountsService/AccountsService.cpp
|
||||||
|
@@ -311,6 +311,21 @@ QStringList AccountsService::keymaps() const
|
||||||
|
return simplifiedMaps;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ QFile fallbackNixosLayouts ("@nixosLayoutFile@");
|
||||||
|
+ if (fallbackNixosLayouts.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
|
+ while (!fallbackNixosLayouts.atEnd()) {
|
||||||
|
+ QString line = QString(fallbackNixosLayouts.readLine()).simplified();
|
||||||
|
+ if (!line.isEmpty()) {
|
||||||
|
+ simplifiedMaps.append(line);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ fallbackNixosLayouts.close();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if (!simplifiedMaps.isEmpty()) {
|
||||||
|
+ return simplifiedMaps;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
return {QStringLiteral("us")};
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.44.1
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
From 640cab41986fac83742af39dd19877041a2ab8dc Mon Sep 17 00:00:00 2001
|
|
||||||
From: OPNA2608 <opna2608@protonmail.com>
|
|
||||||
Date: Sat, 1 Jun 2024 00:22:27 +0200
|
|
||||||
Subject: [PATCH] Check NIXOS_XKB_LAYOUTS for layouts before falling back to
|
|
||||||
"us"
|
|
||||||
|
|
||||||
---
|
|
||||||
plugins/AccountsService/AccountsService.cpp | 5 +++++
|
|
||||||
1 file changed, 5 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/plugins/AccountsService/AccountsService.cpp b/plugins/AccountsService/AccountsService.cpp
|
|
||||||
index bcf18246c..f4a7dfaa1 100644
|
|
||||||
--- a/plugins/AccountsService/AccountsService.cpp
|
|
||||||
+++ b/plugins/AccountsService/AccountsService.cpp
|
|
||||||
@@ -295,6 +295,11 @@ QStringList AccountsService::keymaps() const
|
|
||||||
return simplifiedMaps;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ char* fallbackNixosLayouts = getenv("NIXOS_XKB_LAYOUTS");
|
|
||||||
+ if (fallbackNixosLayouts != NULL && fallbackNixosLayouts[0] != '\0') {
|
|
||||||
+ return QString(fallbackNixosLayouts).split(QLatin1Char(','), Qt::SkipEmptyParts);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
return {QStringLiteral("us")};
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.42.0
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
|||||||
fetchpatch2,
|
fetchpatch2,
|
||||||
gitUpdater,
|
gitUpdater,
|
||||||
linkFarm,
|
linkFarm,
|
||||||
|
substituteAll,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
ayatana-indicator-datetime,
|
ayatana-indicator-datetime,
|
||||||
bash,
|
bash,
|
||||||
@ -116,7 +117,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
})
|
})
|
||||||
|
|
||||||
./9901-lomiri-Disable-Wizard.patch
|
./9901-lomiri-Disable-Wizard.patch
|
||||||
./9902-lomiri-Check-NIXOS_XKB_LAYOUTS.patch
|
(substituteAll {
|
||||||
|
src = ./9902-Layout-fallback-file.patch;
|
||||||
|
nixosLayoutFile = "/etc/" + finalAttrs.finalPackage.passthru.etcLayoutsFile;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch =
|
postPatch =
|
||||||
@ -269,12 +273,14 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
etcLayoutsFile = "lomiri/keymaps";
|
||||||
tests = {
|
tests = {
|
||||||
inherit (nixosTests.lomiri)
|
inherit (nixosTests.lomiri)
|
||||||
greeter
|
greeter
|
||||||
desktop-basics
|
desktop-basics
|
||||||
desktop-appinteractions
|
desktop-appinteractions
|
||||||
desktop-ayatana-indicators
|
desktop-ayatana-indicators
|
||||||
|
keymap
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
updateScript = gitUpdater { };
|
updateScript = gitUpdater { };
|
||||||
|
2073
pkgs/games/mchprs/Cargo.lock
generated
2073
pkgs/games/mchprs/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,45 +1,51 @@
|
|||||||
{ lib
|
{
|
||||||
, rustPlatform
|
lib,
|
||||||
, fetchFromGitHub
|
rustPlatform,
|
||||||
, pkg-config
|
fetchFromGitHub,
|
||||||
, openssl
|
pkg-config,
|
||||||
, sqlite
|
openssl,
|
||||||
, zlib
|
sqlite,
|
||||||
, stdenv
|
zlib,
|
||||||
, darwin
|
stdenv,
|
||||||
|
clang,
|
||||||
|
darwin,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "mchprs";
|
pname = "mchprs";
|
||||||
version = "0.4.1";
|
version = "0.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "MCHPR";
|
owner = "MCHPR";
|
||||||
repo = "MCHPRS";
|
repo = "MCHPRS";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-y1ILZvnDWVlghvUVe8xU5wP2TMW+Q/l+V+bqDZrpnBk=";
|
hash = "sha256-Jm9ZsqCKOIxZsXQbCluYu7MgOD7hXYljcv/URaNVUW0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
lockFile = ./Cargo.lock;
|
lockFile = ./Cargo.lock;
|
||||||
outputHashes = {
|
outputHashes = {
|
||||||
"hematite-nbt-0.5.2" = "sha256-knBmH/32JJclhFZbKTNx5XgLSQ2rIrXUGu8uoAHAXMk=";
|
"hematite-nbt-0.5.2" = "sha256-ohhsMlRLFNesccxhqn0GAiVswcdMldD3gv0AXcviHU8=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
clang
|
||||||
rustPlatform.bindgenHook
|
rustPlatform.bindgenHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
openssl
|
[
|
||||||
sqlite
|
openssl
|
||||||
zlib
|
sqlite
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
zlib
|
||||||
darwin.apple_sdk.frameworks.CoreFoundation
|
]
|
||||||
darwin.apple_sdk.frameworks.Security
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
];
|
darwin.apple_sdk.frameworks.CoreFoundation
|
||||||
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
mainProgram = "mchprs";
|
mainProgram = "mchprs";
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
cctools,
|
cctools,
|
||||||
avxSupport ? stdenv.hostPlatform.avxSupport,
|
avxSupport ? stdenv.hostPlatform.avxSupport,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
|
lib,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -34,7 +35,11 @@ buildMongoDB {
|
|||||||
|
|
||||||
# Fix building with python 3.12 since the imp module was removed
|
# Fix building with python 3.12 since the imp module was removed
|
||||||
./mongodb-python312.patch
|
./mongodb-python312.patch
|
||||||
];
|
|
||||||
|
# mongodb-7_0's mozjs uses avx2 instructions
|
||||||
|
# https://github.com/GermanAizek/mongodb-without-avx/issues/16
|
||||||
|
] ++ lib.optionals (!avxSupport) [ ./mozjs-noavx.patch ];
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
inherit (nixosTests) mongodb;
|
inherit (nixosTests) mongodb;
|
||||||
};
|
};
|
||||||
|
25
pkgs/servers/nosql/mongodb/mozjs-noavx.patch
Normal file
25
pkgs/servers/nosql/mongodb/mozjs-noavx.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
--- a/src/third_party/mozjs/SConscript
|
||||||
|
+++ b/src/third_party/mozjs/SConscript
|
||||||
|
@@ -145,8 +145,7 @@ sources = [
|
||||||
|
]
|
||||||
|
|
||||||
|
if env['TARGET_ARCH'] == 'x86_64' and not env.TargetOSIs('windows'):
|
||||||
|
- env.Append(CCFLAGS=['-mavx2'])
|
||||||
|
- sources.extend(["extract/mozglue/misc/SIMD_avx2.cpp", "extract/mozglue/misc/SSE.cpp"])
|
||||||
|
+ sources.extend(["extract/mozglue/misc/SSE.cpp"])
|
||||||
|
|
||||||
|
if env.TargetOSIs('windows'):
|
||||||
|
sources.extend([
|
||||||
|
diff --git a/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp b/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp
|
||||||
|
index 3893de57b32..4ea0a657fbb 100644
|
||||||
|
--- a/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp
|
||||||
|
+++ b/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp
|
||||||
|
@@ -448,7 +448,7 @@ const char* SIMD::memchr8SSE2(const char* ptr, char value, size_t length) {
|
||||||
|
// assertion failure. Accordingly, we just don't allow that to happen. We
|
||||||
|
// are not particularly concerned about ensuring that newer 32 bit processors
|
||||||
|
// get access to the AVX2 functions exposed here.
|
||||||
|
-# if defined(MOZILLA_MAY_SUPPORT_AVX2) && defined(__x86_64__)
|
||||||
|
+# if 0
|
||||||
|
|
||||||
|
bool SupportsAVX2() { return supports_avx2(); }
|
||||||
|
|
@ -5,22 +5,22 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "galer";
|
pname = "galer";
|
||||||
version = "0.0.2";
|
version = "0.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dwisiswant0";
|
owner = "dwisiswant0";
|
||||||
repo = pname;
|
repo = "galer";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-i3rrXpKnUV9REnn4lQWIFpWc2SzkxVomruiAmcMBQ6Q=";
|
hash = "sha256-/VvN6LjK+V8E9XYarRUI/TPGitMM0a3g1lfdYhV1yP8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-2nJgQfSeo9GrK6Kor29esnMEFmd5pTd8lGwzRi4zq1w=";
|
vendorHash = "sha256-WDOwUjU6AP/8QvqiKTEY6wsMBZQFWn/LGWr8nfqDF+8=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool to fetch URLs from HTML attributes";
|
description = "Tool to fetch URLs from HTML attributes";
|
||||||
mainProgram = "galer";
|
|
||||||
homepage = "https://github.com/dwisiswant0/galer";
|
homepage = "https://github.com/dwisiswant0/galer";
|
||||||
license = with licenses; [ mit ];
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "galer";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
19
pkgs/tools/security/sops/bash_autocomplete
Normal file
19
pkgs/tools/security/sops/bash_autocomplete
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# based on https://github.com/urfave/cli/blob/v2.3.0/autocomplete/bash_autocomplete
|
||||||
|
|
||||||
|
_cli_bash_autocomplete() {
|
||||||
|
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
|
||||||
|
local cur opts
|
||||||
|
COMPREPLY=()
|
||||||
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
if [[ "$cur" == "-"* ]]; then
|
||||||
|
opts=$("${COMP_WORDS[@]:0:$COMP_CWORD}" "${cur}" --generate-bash-completion)
|
||||||
|
else
|
||||||
|
opts=$("${COMP_WORDS[@]:0:$COMP_CWORD}" --generate-bash-completion)
|
||||||
|
fi
|
||||||
|
IFS=$'\n' read -d '' -ra COMPREPLY < <(compgen -W "${opts}" -- "${cur}")
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete sops
|
@ -1,4 +1,10 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, nix-update-script }:
|
{
|
||||||
|
lib,
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
installShellFiles,
|
||||||
|
nix-update-script,
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "sops";
|
pname = "sops";
|
||||||
@ -19,6 +25,13 @@ buildGoModule rec {
|
|||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd sops --bash ${./bash_autocomplete}
|
||||||
|
installShellCompletion --cmd sops --zsh ${./zsh_autocomplete}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://getsops.io/";
|
homepage = "https://getsops.io/";
|
||||||
description = "Simple and flexible tool for managing secrets";
|
description = "Simple and flexible tool for managing secrets";
|
||||||
|
25
pkgs/tools/security/sops/zsh_autocomplete
Normal file
25
pkgs/tools/security/sops/zsh_autocomplete
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#compdef sops
|
||||||
|
|
||||||
|
## based on https://github.com/urfave/cli/blob/v2.3.0/autocomplete/zsh_autocomplete
|
||||||
|
|
||||||
|
_cli_zsh_autocomplete() {
|
||||||
|
|
||||||
|
local -a opts
|
||||||
|
local cur
|
||||||
|
cur=${words[-1]}
|
||||||
|
if [[ "$cur" == "-"* ]]; then
|
||||||
|
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} ${cur} --generate-bash-completion)}")
|
||||||
|
else
|
||||||
|
opts=("${(@f)$(_CLI_ZSH_AUTOCOMPLETE_HACK=1 ${words[@]:0:#words[@]-1} --generate-bash-completion)}")
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${opts[1]}" != "" ]]; then
|
||||||
|
_describe 'values' opts
|
||||||
|
else
|
||||||
|
_files
|
||||||
|
fi
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
compdef _cli_zsh_autocomplete sops
|
@ -235,8 +235,6 @@ with pkgs;
|
|||||||
|
|
||||||
althttpd = callPackage ../servers/althttpd { };
|
althttpd = callPackage ../servers/althttpd { };
|
||||||
|
|
||||||
amqpcat = callPackage ../development/tools/amqpcat { };
|
|
||||||
|
|
||||||
anders = callPackage ../applications/science/logic/anders { };
|
anders = callPackage ../applications/science/logic/anders { };
|
||||||
|
|
||||||
ariang = callPackage ../servers/ariang { };
|
ariang = callPackage ../servers/ariang { };
|
||||||
@ -329,8 +327,6 @@ with pkgs;
|
|||||||
|
|
||||||
binbloom = callPackage ../tools/security/binbloom { };
|
binbloom = callPackage ../tools/security/binbloom { };
|
||||||
|
|
||||||
bingo = callPackage ../development/tools/bingo { };
|
|
||||||
|
|
||||||
bin2c = callPackage ../development/tools/bin2c { };
|
bin2c = callPackage ../development/tools/bin2c { };
|
||||||
|
|
||||||
binserve = callPackage ../servers/binserve {
|
binserve = callPackage ../servers/binserve {
|
||||||
@ -642,8 +638,6 @@ with pkgs;
|
|||||||
|
|
||||||
gokrazy = callPackage ../development/misc/gokrazy { };
|
gokrazy = callPackage ../development/misc/gokrazy { };
|
||||||
|
|
||||||
gojq = callPackage ../development/tools/gojq { };
|
|
||||||
|
|
||||||
govulncheck = callPackage ../tools/security/govulncheck { };
|
govulncheck = callPackage ../tools/security/govulncheck { };
|
||||||
|
|
||||||
gpick = callPackage ../tools/misc/gpick { };
|
gpick = callPackage ../tools/misc/gpick { };
|
||||||
@ -5919,8 +5913,6 @@ with pkgs;
|
|||||||
|
|
||||||
syscall_limiter = callPackage ../os-specific/linux/syscall_limiter { };
|
syscall_limiter = callPackage ../os-specific/linux/syscall_limiter { };
|
||||||
|
|
||||||
skeema = callPackage ../tools/system/skeema { };
|
|
||||||
|
|
||||||
svt-av1 = callPackage ../tools/video/svt-av1 { };
|
svt-av1 = callPackage ../tools/video/svt-av1 { };
|
||||||
|
|
||||||
inherit (callPackages ../servers/rainloop { })
|
inherit (callPackages ../servers/rainloop { })
|
||||||
@ -6955,8 +6947,6 @@ with pkgs;
|
|||||||
|
|
||||||
diffutils = callPackage ../tools/text/diffutils { };
|
diffutils = callPackage ../tools/text/diffutils { };
|
||||||
|
|
||||||
dsp = callPackage ../tools/audio/dsp { };
|
|
||||||
|
|
||||||
dirdiff = callPackage ../tools/text/dirdiff { };
|
dirdiff = callPackage ../tools/text/dirdiff { };
|
||||||
|
|
||||||
dwdiff = callPackage ../applications/misc/dwdiff { };
|
dwdiff = callPackage ../applications/misc/dwdiff { };
|
||||||
@ -11408,8 +11398,6 @@ with pkgs;
|
|||||||
|
|
||||||
proot = callPackage ../tools/system/proot { };
|
proot = callPackage ../tools/system/proot { };
|
||||||
|
|
||||||
protoscope = callPackage ../development/tools/protoscope { };
|
|
||||||
|
|
||||||
prototypejs = callPackage ../development/libraries/prototypejs { };
|
prototypejs = callPackage ../development/libraries/prototypejs { };
|
||||||
|
|
||||||
proxmark3 = libsForQt5.callPackage ../tools/security/proxmark3/default.nix {
|
proxmark3 = libsForQt5.callPackage ../tools/security/proxmark3/default.nix {
|
||||||
@ -20265,7 +20253,7 @@ with pkgs;
|
|||||||
|
|
||||||
hwloc = callPackage ../development/libraries/hwloc { };
|
hwloc = callPackage ../development/libraries/hwloc { };
|
||||||
|
|
||||||
hydra = callPackage ../by-name/hy/hydra/package.nix { nix = nixVersions.nix_2_22; };
|
hydra = callPackage ../by-name/hy/hydra/package.nix { nix = nixVersions.nix_2_23; };
|
||||||
|
|
||||||
hydra-cli = callPackage ../development/tools/misc/hydra-cli { };
|
hydra-cli = callPackage ../development/tools/misc/hydra-cli { };
|
||||||
|
|
||||||
@ -20451,8 +20439,6 @@ with pkgs;
|
|||||||
|
|
||||||
jrsonnet = callPackage ../development/compilers/jrsonnet { };
|
jrsonnet = callPackage ../development/compilers/jrsonnet { };
|
||||||
|
|
||||||
go-jsonnet = callPackage ../development/compilers/go-jsonnet { };
|
|
||||||
|
|
||||||
jsonrpc-glib = callPackage ../development/libraries/jsonrpc-glib { };
|
jsonrpc-glib = callPackage ../development/libraries/jsonrpc-glib { };
|
||||||
|
|
||||||
jxrlib = callPackage ../development/libraries/jxrlib { };
|
jxrlib = callPackage ../development/libraries/jxrlib { };
|
||||||
@ -30432,8 +30418,6 @@ with pkgs;
|
|||||||
|
|
||||||
k3sup = callPackage ../applications/networking/cluster/k3sup { };
|
k3sup = callPackage ../applications/networking/cluster/k3sup { };
|
||||||
|
|
||||||
kconf = callPackage ../applications/networking/cluster/kconf { };
|
|
||||||
|
|
||||||
kail = callPackage ../tools/networking/kail { };
|
kail = callPackage ../tools/networking/kail { };
|
||||||
|
|
||||||
kapitonov-plugins-pack = callPackage ../applications/audio/kapitonov-plugins-pack { };
|
kapitonov-plugins-pack = callPackage ../applications/audio/kapitonov-plugins-pack { };
|
||||||
@ -31866,8 +31850,6 @@ with pkgs;
|
|||||||
|
|
||||||
metal-cli = callPackage ../development/tools/metal-cli { };
|
metal-cli = callPackage ../development/tools/metal-cli { };
|
||||||
|
|
||||||
pb = callPackage ../tools/misc/pb { };
|
|
||||||
|
|
||||||
pb_cli = callPackage ../tools/misc/pb_cli { };
|
pb_cli = callPackage ../tools/misc/pb_cli { };
|
||||||
|
|
||||||
capture = callPackage ../tools/misc/capture { };
|
capture = callPackage ../tools/misc/capture { };
|
||||||
|
Loading…
Reference in New Issue
Block a user