Merge master into staging-next

authored by

github-actions[bot] and committed by
GitHub
75c28ec3 1b3ad28a

+575 -59
+2
nixos/doc/manual/release-notes/rl-2305.section.md
··· 53 53 54 54 - [goeland](https://github.com/slurdge/goeland), an alternative to rss2email written in golang with many filters. Available as [services.goeland](#opt-services.goeland.enable). 55 55 56 + - [alertmanager-irc-relay](https://github.com/google/alertmanager-irc-relay), a Prometheus Alertmanager IRC Relay. Available as [services.prometheus.alertmanagerIrcRelay](options.html#opt-services.prometheus.alertmanagerIrcRelay.enable). 57 + 56 58 - [tts](https://github.com/coqui-ai/TTS), a battle-tested deep learning toolkit for Text-to-Speech. Mutiple servers may be configured below [services.tts.servers](#opt-services.tts.servers). 57 59 58 60 - [atuin](https://github.com/ellie/atuin), a sync server for shell history. Available as [services.atuin](#opt-services.atuin.enable).
+1
nixos/modules/module-list.nix
··· 734 734 ./services/monitoring/nagios.nix 735 735 ./services/monitoring/netdata.nix 736 736 ./services/monitoring/parsedmarc.nix 737 + ./services/monitoring/prometheus/alertmanager-irc-relay.nix 737 738 ./services/monitoring/prometheus/alertmanager.nix 738 739 ./services/monitoring/prometheus/default.nix 739 740 ./services/monitoring/prometheus/exporters.nix
+107
nixos/modules/services/monitoring/prometheus/alertmanager-irc-relay.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + cfg = config.services.prometheus.alertmanagerIrcRelay; 7 + 8 + configFormat = pkgs.formats.yaml { }; 9 + configFile = configFormat.generate "alertmanager-irc-relay.yml" cfg.settings; 10 + in 11 + { 12 + options.services.prometheus.alertmanagerIrcRelay = { 13 + enable = mkEnableOption (mdDoc "Alertmanager IRC Relay"); 14 + 15 + package = mkOption { 16 + type = types.package; 17 + default = pkgs.alertmanager-irc-relay; 18 + defaultText = literalExpression "pkgs.alertmanager-irc-relay"; 19 + description = mdDoc "Alertmanager IRC Relay package to use."; 20 + }; 21 + 22 + extraFlags = mkOption { 23 + type = types.listOf types.str; 24 + default = []; 25 + description = mdDoc "Extra command line options to pass to alertmanager-irc-relay."; 26 + }; 27 + 28 + settings = mkOption { 29 + type = configFormat.type; 30 + example = literalExpression '' 31 + { 32 + http_host = "localhost"; 33 + http_port = 8000; 34 + 35 + irc_host = "irc.example.com"; 36 + irc_port = 7000; 37 + irc_nickname = "myalertbot"; 38 + 39 + irc_channels = [ 40 + { name = "#mychannel"; } 41 + ]; 42 + } 43 + ''; 44 + description = mdDoc '' 45 + Configuration for Alertmanager IRC Relay as a Nix attribute set. 46 + For a reference, check out the 47 + [example configuration](https://github.com/google/alertmanager-irc-relay#configuring-and-running-the-bot) 48 + and the 49 + [source code](https://github.com/google/alertmanager-irc-relay/blob/master/config.go). 50 + 51 + Note: The webhook's URL MUST point to the IRC channel where the message 52 + should be posted. For `#mychannel` from the example, this would be 53 + `http://localhost:8080/mychannel`. 54 + ''; 55 + }; 56 + }; 57 + 58 + config = mkIf cfg.enable { 59 + systemd.services.alertmanager-irc-relay = { 60 + description = "Alertmanager IRC Relay"; 61 + 62 + wantedBy = [ "multi-user.target" ]; 63 + after = [ "network-online.target" ]; 64 + 65 + serviceConfig = { 66 + ExecStart = '' 67 + ${cfg.package}/bin/alertmanager-irc-relay \ 68 + -config ${configFile} \ 69 + ${escapeShellArgs cfg.extraFlags} 70 + ''; 71 + 72 + DynamicUser = true; 73 + NoNewPrivileges = true; 74 + 75 + ProtectProc = "invisible"; 76 + ProtectSystem = "strict"; 77 + ProtectHome = "tmpfs"; 78 + 79 + PrivateTmp = true; 80 + PrivateDevices = true; 81 + PrivateIPC = true; 82 + 83 + ProtectHostname = true; 84 + ProtectClock = true; 85 + ProtectKernelTunables = true; 86 + ProtectKernelModules = true; 87 + ProtectKernelLogs = true; 88 + ProtectControlGroups = true; 89 + 90 + RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ]; 91 + RestrictRealtime = true; 92 + RestrictSUIDSGID = true; 93 + 94 + SystemCallFilter = [ 95 + "@system-service" 96 + "~@cpu-emulation" 97 + "~@privileged" 98 + "~@reboot" 99 + "~@setuid" 100 + "~@swap" 101 + ]; 102 + }; 103 + }; 104 + }; 105 + 106 + meta.maintainers = [ maintainers.oxzi ]; 107 + }
+1 -1
nixos/tests/gitea.nix
··· 93 93 api_token = server.succeed( 94 94 "curl --fail -X POST http://test:totallysafe@localhost:3000/api/v1/users/test/tokens " 95 95 + "-H 'Accept: application/json' -H 'Content-Type: application/json' -d " 96 - + "'{\"name\":\"token\"}' | jq '.sha1' | xargs echo -n" 96 + + "'{\"name\":\"token\",\"scopes\":[\"all\"]}' | jq '.sha1' | xargs echo -n" 97 97 ) 98 98 99 99 server.succeed(
+1 -1
pkgs/applications/audio/open-stage-control/default.nix
··· 8 8 owner = "jean-emmanuel"; 9 9 repo = "open-stage-control"; 10 10 rev = "v${version}"; 11 - hash = "sha256-P3aTGt/T59JE2oy8uRhD8h2NXX/ZXno6qY0frpcir7A="; 11 + hash = "sha256-5QMBJw6H9TmyoSMkG5rniq1BdVYuEtQsQF1GGBkxqMI="; 12 12 }; 13 13 14 14 # Remove some Electron stuff from package.json
+45 -33
pkgs/applications/editors/vim/plugins/generated.nix
··· 189 189 src = fetchFromGitHub { 190 190 owner = "Yggdroot"; 191 191 repo = "LeaderF"; 192 - rev = "1319824e2cbbb8471f7da56a8d787a664bb8faae"; 193 - sha256 = "01wpbwpramrfiwj0s5xv21ynjjy3wqllx3vbnpj94vcfk18qmx9m"; 192 + rev = "4b8f537dadf5f9abbdd1554584bec9c04843909c"; 193 + sha256 = "0sb94hi4qph8wg9agkg5kvqzfjnqnk683y05r0waw69r4iarsfar"; 194 194 }; 195 195 meta.homepage = "https://github.com/Yggdroot/LeaderF/"; 196 196 }; ··· 3444 3444 3445 3445 go-nvim = buildVimPluginFrom2Nix { 3446 3446 pname = "go.nvim"; 3447 - version = "2023-03-18"; 3447 + version = "2023-03-20"; 3448 3448 src = fetchFromGitHub { 3449 3449 owner = "ray-x"; 3450 3450 repo = "go.nvim"; 3451 - rev = "4ddd66affd76ccd29fb60e2abde77f743d5f7449"; 3452 - sha256 = "1a62dvixny281103cq165yzbklnvz90p4yj5y7pwy54cwn6a5mww"; 3451 + rev = "933ff9f0d84975122ec62ef98f78511db5c313c1"; 3452 + sha256 = "02pr6c8ljv34xd9h6y01i71l8nrapspyg1dm8vcybl5jjq85xrmv"; 3453 3453 }; 3454 3454 meta.homepage = "https://github.com/ray-x/go.nvim/"; 3455 3455 }; ··· 4223 4223 4224 4224 lazy-nvim = buildVimPluginFrom2Nix { 4225 4225 pname = "lazy.nvim"; 4226 - version = "2023-03-19"; 4226 + version = "2023-03-20"; 4227 4227 src = fetchFromGitHub { 4228 4228 owner = "folke"; 4229 4229 repo = "lazy.nvim"; 4230 - rev = "b306eb3d0f32b792929735c6d528c38d0f1dc0cd"; 4231 - sha256 = "1say6d6kyb5186rbw65jys8j2b7d7ksv8grxkba7lihbf97zpscq"; 4230 + rev = "887eb75591520a01548134c4623617b639289d0b"; 4231 + sha256 = "14kncmkrjgfkw1wynhgqslgybmzalnq9ps07k7kbccpsjmqafggp"; 4232 4232 }; 4233 4233 meta.homepage = "https://github.com/folke/lazy.nvim/"; 4234 4234 }; ··· 4859 4859 4860 4860 mason-nvim = buildVimPluginFrom2Nix { 4861 4861 pname = "mason.nvim"; 4862 - version = "2023-03-19"; 4862 + version = "2023-03-20"; 4863 4863 src = fetchFromGitHub { 4864 4864 owner = "williamboman"; 4865 4865 repo = "mason.nvim"; 4866 - rev = "9992c66c2a832a17302ca3179a82516544565f9b"; 4867 - sha256 = "1yzspxsnk6vlrcl51xksfnhvlg58q8mj66iwqqpk1ddxkx7vl485"; 4866 + rev = "a192887fd0c29275cf2acb4a83bcbdf63399f8df"; 4867 + sha256 = "0vqr4sm49x0mcd250mc39nsax49dlzyx9al8nkbxc5k881w4f93f"; 4868 4868 }; 4869 4869 meta.homepage = "https://github.com/williamboman/mason.nvim/"; 4870 4870 }; ··· 5319 5319 src = fetchFromGitHub { 5320 5320 owner = "folke"; 5321 5321 repo = "neodev.nvim"; 5322 - rev = "7b1e0a371c4b631bc185eb8dcea00bb6005e02b0"; 5323 - sha256 = "09bh4cixa4ks6rw4qrmdwinwaz7va312abm1wm3bp2a42ralx8da"; 5322 + rev = "0a8e312923671e78499b2e204f0f678379ba92c1"; 5323 + sha256 = "1n9l21dcwh2g5rps7kn761qbmdy822q67djlgrlmd9gml45s0klz"; 5324 5324 }; 5325 5325 meta.homepage = "https://github.com/folke/neodev.nvim/"; 5326 5326 }; ··· 5351 5351 5352 5352 neogit = buildVimPluginFrom2Nix { 5353 5353 pname = "neogit"; 5354 - version = "2023-03-17"; 5354 + version = "2023-03-20"; 5355 5355 src = fetchFromGitHub { 5356 5356 owner = "TimUntersberger"; 5357 5357 repo = "neogit"; 5358 - rev = "dc02950e0364db853b2ed4a169e38d7de8ec95ad"; 5359 - sha256 = "0hnrvw63qssx01n1j4qv20xgd66ys2ilpy9j36wqs4gcncchp9ch"; 5358 + rev = "039ff3212ec43cc4d3332956dfb54e263c8d5033"; 5359 + sha256 = "17a6lpqv99b89g7kakbzw97hpkqmw729if4j8gq8svza3fjcq2pg"; 5360 5360 }; 5361 5361 meta.homepage = "https://github.com/TimUntersberger/neogit/"; 5362 5362 }; ··· 6263 6263 6264 6264 nvim-lspconfig = buildVimPluginFrom2Nix { 6265 6265 pname = "nvim-lspconfig"; 6266 - version = "2023-03-18"; 6266 + version = "2023-03-20"; 6267 6267 src = fetchFromGitHub { 6268 6268 owner = "neovim"; 6269 6269 repo = "nvim-lspconfig"; 6270 - rev = "5a871409199d585b52b69952532e3fb435e64566"; 6271 - sha256 = "13dr00ms9vghbb979rpd627qd90nfx9afhz8hjrpkhr9qm8jlry0"; 6270 + rev = "736c39e4bab977f0171c78328415c6402c58e64a"; 6271 + sha256 = "1079bdrnrlw4qkpibpnkznkpnih71r8zxl2s47ad8hvvr586k9ld"; 6272 6272 }; 6273 6273 meta.homepage = "https://github.com/neovim/nvim-lspconfig/"; 6274 6274 }; ··· 6311 6311 6312 6312 nvim-metals = buildVimPluginFrom2Nix { 6313 6313 pname = "nvim-metals"; 6314 - version = "2023-03-17"; 6314 + version = "2023-03-20"; 6315 6315 src = fetchFromGitHub { 6316 6316 owner = "scalameta"; 6317 6317 repo = "nvim-metals"; 6318 - rev = "9e3f9854f1cb3db2a8b1617b8e5847555624f3ff"; 6319 - sha256 = "0wsvfi43i48bs6i8gx9ipx4x5xrdd179vzyf8666yjnpy2dv50d0"; 6318 + rev = "51e88e4f5eeadbd92a75cae71c5cbb75f3cb6765"; 6319 + sha256 = "0lq4dl92wvnql9i5c8kbfja4jzzlzps0v6nmpy7qalrxhfp5gyn2"; 6320 6320 }; 6321 6321 meta.homepage = "https://github.com/scalameta/nvim-metals/"; 6322 6322 }; ··· 6335 6335 6336 6336 nvim-navic = buildVimPluginFrom2Nix { 6337 6337 pname = "nvim-navic"; 6338 - version = "2023-03-04"; 6338 + version = "2023-03-20"; 6339 6339 src = fetchFromGitHub { 6340 6340 owner = "smiteshp"; 6341 6341 repo = "nvim-navic"; 6342 - rev = "cdd24539bcf114a499827e9b32869fe74836efe7"; 6343 - sha256 = "1iwpfls99mibmp8s2zw21hngvhqhnj6v03ddrv17qd2pwgdaarm4"; 6342 + rev = "f1ffbc3f5736add66c31e02f4c53d238e040600b"; 6343 + sha256 = "0djb5n86ypd94gb06fgf7p25sina1xfrnb7894v4pga9fc1fl4fp"; 6344 6344 }; 6345 6345 meta.homepage = "https://github.com/smiteshp/nvim-navic/"; 6346 6346 }; ··· 6531 6531 src = fetchFromGitHub { 6532 6532 owner = "nvim-tree"; 6533 6533 repo = "nvim-tree.lua"; 6534 - rev = "1d79a64a88af47ddbb55f4805ab537d11d5b908e"; 6535 - sha256 = "u9ZLBL4FY/bkvl4+ofKifyEHM9+KhqeYovhr9VQYG7c="; 6534 + rev = "a50723e35f57f89fb67019127a16d90f16edfef8"; 6535 + sha256 = "0k7q6isrnk9qqymiz5vzkspq5ff5m4bkb66ayn8bsp6v7qdrkzyz"; 6536 6536 }; 6537 6537 meta.homepage = "https://github.com/nvim-tree/nvim-tree.lua/"; 6538 6538 }; 6539 6539 6540 6540 nvim-treesitter = buildVimPluginFrom2Nix { 6541 6541 pname = "nvim-treesitter"; 6542 - version = "2023-03-19"; 6542 + version = "2023-03-20"; 6543 6543 src = fetchFromGitHub { 6544 6544 owner = "nvim-treesitter"; 6545 6545 repo = "nvim-treesitter"; 6546 - rev = "4536156f32b8ab0aab264e3cd7819fc8e3daede4"; 6547 - sha256 = "1y6lczvsv4bygh79gqbihxsaygmnhin4bwdi59hb7bjgi6xy8j8f"; 6546 + rev = "25b656a4b771ee7d440e506280b9ae546d6f7233"; 6547 + sha256 = "02qg57wkrg2if1kbailyy2qw84c1wfa9rmv8cv8ljzxfqhf9f380"; 6548 6548 }; 6549 6549 meta.homepage = "https://github.com/nvim-treesitter/nvim-treesitter/"; 6550 6550 }; 6551 6551 6552 6552 nvim-treesitter-context = buildVimPluginFrom2Nix { 6553 6553 pname = "nvim-treesitter-context"; 6554 - version = "2023-03-19"; 6554 + version = "2023-03-20"; 6555 6555 src = fetchFromGitHub { 6556 6556 owner = "nvim-treesitter"; 6557 6557 repo = "nvim-treesitter-context"; 6558 - rev = "c1fa59698850cafa4cae686e652d1512a01dcf3c"; 6559 - sha256 = "1gmzcw57k8s24wj9llkw7xn45y9cdn6s8dimbjnlpb218z72j00c"; 6558 + rev = "446a463500ea2ee22c9b44f059b1117997f5aaeb"; 6559 + sha256 = "0l6jwqg6i0z5w0q3z7956rc3wc3w2h320237clvxvkq3brf33f0a"; 6560 6560 }; 6561 6561 meta.homepage = "https://github.com/nvim-treesitter/nvim-treesitter-context/"; 6562 6562 }; ··· 6871 6871 sha256 = "0sqzj25sdczxcpbp2ncpm07y631w9x81yv292xji3l0nzx7601pm"; 6872 6872 }; 6873 6873 meta.homepage = "https://github.com/tyru/open-browser.vim/"; 6874 + }; 6875 + 6876 + openscad-nvim = buildVimPluginFrom2Nix { 6877 + pname = "openscad.nvim"; 6878 + version = "2022-04-15"; 6879 + src = fetchFromGitHub { 6880 + owner = "salkin-mada"; 6881 + repo = "openscad.nvim"; 6882 + rev = "197ca5ea7ca53702c453f862e7f4734b51c7023e"; 6883 + sha256 = "1f0xd9gaacg7avrnsyigal4iz8645z50fgpwjfxis9nrjlia7h73"; 6884 + }; 6885 + meta.homepage = "https://github.com/salkin-mada/openscad.nvim/"; 6874 6886 }; 6875 6887 6876 6888 orgmode = buildVimPluginFrom2Nix {
+11
pkgs/applications/editors/vim/plugins/nvim-treesitter/generated.nix
··· 995 995 }; 996 996 meta.homepage = "https://github.com/MunifTanjim/tree-sitter-lua"; 997 997 }; 998 + luadoc = buildGrammar { 999 + language = "luadoc"; 1000 + version = "40a67ee"; 1001 + src = fetchFromGitHub { 1002 + owner = "amaanq"; 1003 + repo = "tree-sitter-luadoc"; 1004 + rev = "40a67ee798eb3c989fffde0277ff6de740ebaf34"; 1005 + hash = "sha256-vhiUaZms4Je/TBTTepQiuddl0sKodrHcrBCauBPgu7Y="; 1006 + }; 1007 + meta.homepage = "https://github.com/amaanq/tree-sitter-luadoc"; 1008 + }; 998 1009 luap = buildGrammar { 999 1010 language = "luap"; 1000 1011 version = "bfb38d2";
+19
pkgs/applications/editors/vim/plugins/overrides.nix
··· 24 24 , git 25 25 , gnome 26 26 , himalaya 27 + , htop 27 28 , jq 28 29 , khard 29 30 , languagetool ··· 31 32 , meson 32 33 , nim 33 34 , nodePackages 35 + , openscad 34 36 , pandoc 35 37 , parinfer-rust 36 38 , ripgrep ··· 50 52 , nodejs 51 53 , xdotool 52 54 , xorg 55 + , zathura 53 56 , zsh 54 57 55 58 # command-t dependencies ··· 727 730 728 731 onehalf = super.onehalf.overrideAttrs (old: { 729 732 configurePhase = "cd vim"; 733 + }); 734 + 735 + # The plugin depends on either skim-vim or fzf-vim, but we don't want to force the user so we 736 + # avoid choosing one of them and leave it to the user 737 + openscad-nvim = super.openscad-nvim.overrideAttrs (old: { 738 + buildInputs = [ zathura htop openscad ]; 739 + 740 + patches = [ ./patches/openscad.nvim/program_paths.patch ]; 741 + 742 + postPatch = '' 743 + substituteInPlace lua/openscad.lua --replace '@zathura-path@' ${zathura}/bin/zathura 744 + substituteInPlace autoload/health/openscad_nvim.vim --replace '@zathura-path@' ${zathura}/bin/zathura 745 + substituteInPlace lua/openscad/terminal.lua --replace '@htop-path@' ${htop}/bin/htop 746 + substituteInPlace autoload/health/openscad_nvim.vim --replace '@htop-path@' ${htop}/bin/htop 747 + substituteInPlace lua/openscad.lua --replace '@openscad-path@' ${openscad}/bin/openscad 748 + ''; 730 749 }); 731 750 732 751 orgmode = super.orgmode.overrideAttrs (old: {
+44
pkgs/applications/editors/vim/plugins/patches/openscad.nvim/program_paths.patch
··· 1 + diff --git a/autoload/health/openscad_nvim.vim b/autoload/health/openscad_nvim.vim 2 + index 9022d55..30ef53f 100644 3 + --- a/autoload/health/openscad_nvim.vim 4 + +++ b/autoload/health/openscad_nvim.vim 5 + @@ -7,7 +7,7 @@ function! s:check_nvim_version_minimum() abort 6 + endfunction 7 + 8 + function! s:check_zathura_installed() abort 9 + - if !executable('zathura') 10 + + if !executable('@zathura-path@') 11 + call health#report_error('has(zathura)','install zathura') 12 + else 13 + call health#report_ok("zathura is installed") 14 + @@ -15,7 +15,7 @@ function! s:check_zathura_installed() abort 15 + endfunction 16 + 17 + function! s:check_htop_installed() abort 18 + - if !executable('htop') 19 + + if !executable('@htop-path@') 20 + call health#report_error('has(htop)','install htop') 21 + else 22 + call health#report_ok("htop is installed") 23 + diff --git a/lua/openscad.lua b/lua/openscad.lua 24 + index 7dff2fb..4382003 100644 25 + --- a/lua/openscad.lua 26 + +++ b/lua/openscad.lua 27 + @@ -101,7 +101,7 @@ end 28 + 29 + function M.manual() 30 + local path = U.openscad_nvim_root_dir .. U.path_sep .. "help_source" .. U.path_sep .. "openscad-manual.pdf" 31 + - api.nvim_command('silent !zathura --fork ' .. path) 32 + + api.nvim_command('silent !@zathura-path@ --fork ' .. path) 33 + end 34 + 35 + function M.help() 36 + @@ -119,7 +119,7 @@ end 37 + 38 + function M.exec_openscad() 39 + -- maybe just use api.jobstart .. instead 40 + - api.nvim_command[[ call jobstart('openscad ' . shellescape(expand('%:p')), {'detach':1}) ]] 41 + + api.nvim_command[[ call jobstart('@openscad-path@ ' . shellescape(expand('%:p')), {'detach':1}) ]] 42 + end 43 + 44 + function M.default_mappings()
+1
pkgs/applications/editors/vim/plugins/vim-plugin-names
··· 578 578 https://github.com/rmehri01/onenord.nvim/,main, 579 579 https://github.com/tyru/open-browser-github.vim/,, 580 580 https://github.com/tyru/open-browser.vim/,, 581 + https://github.com/salkin-mada/openscad.nvim/,HEAD, 581 582 https://github.com/nvim-orgmode/orgmode/,, 582 583 https://github.com/nyoom-engineering/oxocarbon.nvim/,HEAD, 583 584 https://github.com/vuki656/package-info.nvim/,,
+74
pkgs/applications/misc/gpu-viewer/default.nix
··· 1 + { lib 2 + , fetchFromGitHub 3 + , pkg-config 4 + , meson 5 + , ninja 6 + , gtk4 7 + , libadwaita 8 + , python3Packages 9 + , gobject-introspection 10 + , vulkan-tools 11 + , python3 12 + , wrapGAppsHook 13 + , gdk-pixbuf 14 + , lsb-release 15 + , glxinfo 16 + , vdpauinfo 17 + , clinfo 18 + }: 19 + 20 + python3.pkgs.buildPythonApplication rec { 21 + pname = "gpu-viewer"; 22 + version = "2.26"; 23 + 24 + format = "other"; 25 + 26 + src = fetchFromGitHub { 27 + owner = "arunsivaramanneo"; 28 + repo = pname; 29 + rev = "v${version}"; 30 + hash = "sha256-3GYJq76g/pU8dt+OMGBeDcw47z5Xv3AGkLsACcBCELs="; 31 + }; 32 + 33 + nativeBuildInputs = [ 34 + pkg-config 35 + meson 36 + ninja 37 + gobject-introspection 38 + wrapGAppsHook 39 + ]; 40 + 41 + buildInputs = [ 42 + gtk4 43 + libadwaita 44 + vulkan-tools 45 + gdk-pixbuf 46 + ]; 47 + 48 + pythonPath = with python3Packages; [ 49 + pygobject3 50 + click 51 + ]; 52 + 53 + # Prevent double wrapping 54 + dontWrapGApps = true; 55 + 56 + postFixup = '' 57 + makeWrapper ${python3.interpreter} $out/bin/gpu-viewer \ 58 + --prefix PATH : "${lib.makeBinPath [ clinfo glxinfo lsb-release vdpauinfo vulkan-tools ]}" \ 59 + --add-flags "$out/share/gpu-viewer/Files/GPUViewer.py" \ 60 + --prefix PYTHONPATH : "$PYTHONPATH" \ 61 + --chdir "$out/share/gpu-viewer/Files" \ 62 + ''${makeWrapperArgs[@]} \ 63 + ''${gappsWrapperArgs[@]} 64 + ''; 65 + 66 + 67 + meta = with lib; { 68 + homepage = "https://github.com/arunsivaramanneo/GPU-Viewer"; 69 + description = "A front-end to glxinfo, vulkaninfo, clinfo and es2_info"; 70 + maintainers = with maintainers; [ GaetanLepage ]; 71 + license = licenses.gpl3; 72 + platforms = platforms.linux; 73 + }; 74 + }
+7 -2
pkgs/applications/terminal-emulators/xterm/default.nix
··· 54 54 "--with-app-defaults=$(out)/lib/X11/app-defaults" 55 55 ] ++ lib.optional enableDecLocator "--enable-dec-locator"; 56 56 57 - # Work around broken "plink.sh". 58 - NIX_LDFLAGS = "-lXmu -lXt -lICE -lX11 -lfontconfig"; 57 + env = { 58 + # Work around broken "plink.sh". 59 + NIX_LDFLAGS = "-lXmu -lXt -lICE -lX11 -lfontconfig"; 60 + } // lib.optionalAttrs stdenv.hostPlatform.isMusl { 61 + # Various symbols missing without this define: TAB3, NLDLY, CRDLY, BSDLY, FFDLY, CBAUD 62 + NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 63 + }; 59 64 60 65 # Hack to get xterm built with the feature of releasing a possible setgid of 'utmp', 61 66 # decided by the sysadmin to allow the xterm reporting to /var/run/utmp
+2 -2
pkgs/applications/version-management/gitea/default.nix
··· 15 15 16 16 buildGoModule rec { 17 17 pname = "gitea"; 18 - version = "1.18.5"; 18 + version = "1.19.0"; 19 19 20 20 # not fetching directly from the git repo, because that lacks several vendor files for the web UI 21 21 src = fetchurl { 22 22 url = "https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz"; 23 - hash = "sha256-OGPn4fknYfzmuAi6CL8m/Ih4uRNraVDmpBm20qT3lKk="; 23 + hash = "sha256-9nDzXSGYxYw34/Ekmj44VdGLVhRsGL2e5gfyoyPUqGQ="; 24 24 }; 25 25 26 26 vendorHash = null;
+6 -6
pkgs/applications/version-management/gitea/static-root-path.patch
··· 1 - diff --git a/modules/setting/setting.go b/modules/setting/setting.go 2 - index 45e55a2..9d18ee4 100644 3 - --- a/modules/setting/setting.go 4 - +++ b/modules/setting/setting.go 5 - @@ -667,7 +667,7 @@ func NewContext() { 1 + diff --git a/modules/setting/server.go b/modules/setting/server.go 2 + index 183906268..fa02e8915 100644 3 + --- a/modules/setting/server.go 4 + +++ b/modules/setting/server.go 5 + @@ -319,7 +319,7 @@ func loadServerFrom(rootCfg ConfigProvider) { 6 6 OfflineMode = sec.Key("OFFLINE_MODE").MustBool() 7 - DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool() 7 + Log.DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool() 8 8 if len(StaticRootPath) == 0 { 9 9 - StaticRootPath = AppWorkPath 10 10 + StaticRootPath = "@data@"
+152
pkgs/development/libraries/science/math/tiny-cuda-nn/default.nix
··· 1 + { cmake 2 + , cudaPackages 3 + , fetchFromGitHub 4 + , lib 5 + , ninja 6 + , pkgs 7 + , python3Packages ? { } 8 + , pythonSupport ? false 9 + , stdenv 10 + , symlinkJoin 11 + , which 12 + }: 13 + let 14 + inherit (lib) lists strings; 15 + inherit (cudaPackages) backendStdenv cudaFlags; 16 + 17 + cuda-common-redist = with cudaPackages; [ 18 + libcublas # cublas_v2.h 19 + libcusolver # cusolverDn.h 20 + libcusparse # cusparse.h 21 + ]; 22 + 23 + cuda-native-redist = symlinkJoin { 24 + name = "cuda-redist"; 25 + paths = with cudaPackages; [ 26 + cuda_cudart # cuda_runtime.h 27 + cuda_nvcc 28 + ] ++ cuda-common-redist; 29 + }; 30 + 31 + cuda-redist = symlinkJoin { 32 + name = "cuda-redist"; 33 + paths = cuda-common-redist; 34 + }; 35 + in 36 + stdenv.mkDerivation (finalAttrs: { 37 + name = "tiny-cuda-nn"; 38 + version = "1.6"; 39 + 40 + format = strings.optionalString pythonSupport "setuptools"; 41 + 42 + src = fetchFromGitHub { 43 + owner = "NVlabs"; 44 + repo = finalAttrs.name; 45 + rev = "v${finalAttrs.version}"; 46 + fetchSubmodules = true; 47 + hash = "sha256-qW6Fk2GB71fvZSsfu+mykabSxEKvaikZ/pQQZUycOy0="; 48 + }; 49 + 50 + nativeBuildInputs = [ 51 + cmake 52 + cuda-native-redist 53 + ninja 54 + which 55 + ] ++ lists.optionals pythonSupport (with python3Packages; [ 56 + pip 57 + setuptools 58 + wheel 59 + ]); 60 + 61 + buildInputs = [ 62 + cuda-redist 63 + ] ++ lib.optionals pythonSupport ( 64 + with python3Packages; [ 65 + pybind11 66 + python 67 + ] 68 + ); 69 + 70 + propagatedBuildInputs = lib.optionals pythonSupport ( 71 + with python3Packages; [ 72 + torch 73 + ] 74 + ); 75 + 76 + # NOTE: We cannot use pythonImportsCheck for this module because it uses torch to immediately 77 + # initailize CUDA and GPU access is not allowed in the nix build environment. 78 + # NOTE: There are no tests for the C++ library or the python bindings, so we just skip the check 79 + # phase -- we're not missing anything. 80 + doCheck = false; 81 + 82 + preConfigure = '' 83 + export TCNN_CUDA_ARCHITECTURES=${ 84 + strings.concatStringsSep ";" (lists.map cudaFlags.dropDot cudaFlags.cudaCapabilities) 85 + } 86 + export CUDA_HOME=${cuda-native-redist} 87 + export LIBRARY_PATH=${cuda-native-redist}/lib/stubs:$LIBRARY_PATH 88 + export CC=${backendStdenv.cc}/bin/cc 89 + export CXX=${backendStdenv.cc}/bin/c++ 90 + ''; 91 + 92 + # When building the python bindings, we cannot re-use the artifacts from the C++ build so we 93 + # skip the CMake confurePhase and the buildPhase. 94 + dontUseCmakeConfigure = pythonSupport; 95 + 96 + # The configurePhase usually puts you in the build directory, so for the python bindings we 97 + # need to change directories to the source directory. 98 + configurePhase = strings.optionalString pythonSupport '' 99 + runHook preConfigure 100 + mkdir -p $NIX_BUILD_TOP/build 101 + cd $NIX_BUILD_TOP/build 102 + runHook postConfigure 103 + ''; 104 + 105 + buildPhase = strings.optionalString pythonSupport '' 106 + runHook preBuild 107 + python -m pip wheel \ 108 + --no-build-isolation \ 109 + --no-clean \ 110 + --no-deps \ 111 + --no-index \ 112 + --verbose \ 113 + --wheel-dir $NIX_BUILD_TOP/build \ 114 + $NIX_BUILD_TOP/source/bindings/torch 115 + runHook postBuild 116 + ''; 117 + 118 + installPhase = '' 119 + runHook preInstall 120 + mkdir -p $out/lib 121 + '' 122 + # Installing the C++ library just requires copying the static library to the output directory 123 + + strings.optionalString (!pythonSupport) '' 124 + cp libtiny-cuda-nn.a $out/lib/ 125 + '' 126 + # Installing the python bindings requires building the wheel and installing it 127 + + strings.optionalString pythonSupport '' 128 + python -m pip install \ 129 + --no-build-isolation \ 130 + --no-cache-dir \ 131 + --no-deps \ 132 + --no-index \ 133 + --no-warn-script-location \ 134 + --prefix="$out" \ 135 + --verbose \ 136 + ./*.whl 137 + '' + '' 138 + runHook postInstall 139 + ''; 140 + 141 + passthru = { 142 + inherit cudaPackages; 143 + }; 144 + 145 + meta = with lib; { 146 + description = "Lightning fast C++/CUDA neural network framework"; 147 + homepage = "https://github.com/NVlabs/tiny-cuda-nn"; 148 + license = licenses.bsd3; 149 + maintainers = with maintainers; [ connorbaker ]; 150 + platforms = platforms.linux; 151 + }; 152 + })
+2
pkgs/development/ocaml-modules/containers/data.nix
··· 8 8 9 9 inherit (containers) src version doCheck; 10 10 11 + duneVersion = "3"; 12 + 11 13 buildInputs = [ dune-configurator ]; 12 14 checkInputs = [ gen iter qcheck-core ]; 13 15
+4 -2
pkgs/development/ocaml-modules/containers/default.nix
··· 5 5 }: 6 6 7 7 buildDunePackage rec { 8 - version = "3.10"; 8 + version = "3.11"; 9 9 pname = "containers"; 10 + 11 + duneVersion = "3"; 10 12 11 13 src = fetchFromGitHub { 12 14 owner = "c-cube"; 13 15 repo = "ocaml-containers"; 14 16 rev = "v${version}"; 15 - hash = "sha256-eWmju4CD30+wX3sKI8rOUEbqbQygdOtc0U4sb9vYuNA="; 17 + hash = "sha256-tGAsg98/T6VKvG95I4qioabWM3TEKrDKlsrfUJqxCyM="; 16 18 }; 17 19 18 20 buildInputs = [ dune-configurator ];
+4 -3
pkgs/development/ocaml-modules/ppx_cstubs/default.nix
··· 18 18 19 19 minimalOCamlVersion = "4.08"; 20 20 21 - useDune2 = true; 21 + duneVersion = "3"; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "fdopen"; 25 25 repo = "ppx_cstubs"; 26 26 rev = version; 27 - sha256 = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs="; 27 + hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs="; 28 28 }; 29 29 30 - nativeBuildInputs = [ cppo findlib ]; 30 + nativeBuildInputs = [ cppo ]; 31 31 32 32 buildInputs = [ 33 33 bigarray-compat 34 34 containers 35 + findlib 35 36 integers 36 37 num 37 38 ppxlib
+21 -5
pkgs/development/python-modules/pytest-twisted/default.nix
··· 4 4 , greenlet 5 5 , pytest 6 6 , decorator 7 + , twisted 8 + , pytestCheckHook 7 9 }: 8 10 9 11 buildPythonPackage rec { 10 12 pname = "pytest-twisted"; 11 - version = "1.13.2"; 13 + version = "1.14.0"; 14 + format = "setuptools"; 12 15 13 16 src = fetchPypi { 14 17 inherit pname version; 15 - extension = "zip"; 16 - sha256 = "cee2320becc5625050ab221b8f38533e636651a24644612f4726891fdf1f1847"; 18 + sha256 = "sha256-IJv1pkUs+/th3o8BWQLBTsgSZACRFQcHS7LuTOjf4xM="; 17 19 }; 18 20 19 - buildInputs = [ pytest ]; 21 + buildInputs = [ 22 + pytest 23 + ]; 20 24 21 - propagatedBuildInputs = [ greenlet decorator ]; 25 + propagatedBuildInputs = [ 26 + decorator 27 + greenlet 28 + ]; 29 + 30 + nativeCheckInputs = [ 31 + pytestCheckHook 32 + twisted 33 + ]; 34 + 35 + pythonImportsCheck = [ 36 + "pytest_twisted" 37 + ]; 22 38 23 39 meta = with lib; { 24 40 description = "A twisted plugin for py.test";
+4 -4
pkgs/os-specific/linux/kernel/zen-kernels.nix
··· 4 4 # comments with variant added for update script 5 5 # ./update-zen.py zen 6 6 zenVariant = { 7 - version = "6.2.6"; #zen 7 + version = "6.2.7"; #zen 8 8 suffix = "zen1"; #zen 9 - sha256 = "1cbga42b4kz03kgf5vxzh93fa8kgszffki5pwalxj6a2rab8888c"; #zen 9 + sha256 = "1giy45ndzs4pfvwlc1p8zb7qci86ampbjwl93jwxcdn76k8gygzh"; #zen 10 10 isLqx = false; 11 11 }; 12 12 # ./update-zen.py lqx 13 13 lqxVariant = { 14 - version = "6.2.6"; #lqx 14 + version = "6.2.7"; #lqx 15 15 suffix = "lqx1"; #lqx 16 - sha256 = "1b454badr366pbxiyz7h2n47405wy5pa35rdkk1is8q574yf6scy"; #lqx 16 + sha256 = "0dk79cglqrbsmlz9vimd714km5v717r1066r4bas20r3gi0zlzhi"; #lqx 17 17 isLqx = true; 18 18 }; 19 19 zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // {
+55
pkgs/servers/fastnetmon-advanced/default.nix
··· 1 + { lib, stdenv, fetchurl, autoPatchelfHook, bzip2 }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "fastnetmon-advanced"; 5 + version = "2.0.335"; 6 + 7 + src = fetchurl { 8 + url = "https://repo.fastnetmon.com/fastnetmon_ubuntu_jammy/pool/fastnetmon/f/fastnetmon/fastnetmon_${version}_amd64.deb"; 9 + hash = "sha256-2WdCQX0AiLTPGM9flVSXgKMrTGCwSXk9IfyS5SRKroY="; 10 + }; 11 + 12 + nativeBuildInputs = [ 13 + autoPatchelfHook 14 + ]; 15 + 16 + buildInputs = [ 17 + bzip2 18 + ]; 19 + 20 + unpackPhase = '' 21 + ar xf $src 22 + tar xf data.tar.xz 23 + 24 + # "These binaries are not part of FastNetMon and we shipped them by accident. They will be removed in next stable build" 25 + rm opt/fastnetmon/app/bin/{generate_rsa_keys,license_app,fastnetmon_license_server} 26 + 27 + # ships with both 2_0_0 and 2_3_0 but the shared objects are not versioned and only 2_3_0 has the necessary symbols 28 + rm -rf opt/fastnetmon/libraries/libclickhouse_2_0_0/ 29 + 30 + # unused libraries, which have additional dependencies 31 + rm opt/fastnetmon/libraries/gcc1210/lib/libgccjit.so.0.0.1 32 + rm opt/fastnetmon/libraries/poco_1_10_0/lib/libPocoCryptod.so.70 33 + rm opt/fastnetmon/libraries/poco_1_10_0/lib/libPocoCrypto.so.70 34 + rm opt/fastnetmon/libraries/poco_1_10_0/lib/libPocoJWTd.so.70 35 + rm opt/fastnetmon/libraries/poco_1_10_0/lib/libPocoJWT.so.70 36 + rm opt/fastnetmon/libraries/wkhtmltopdf-0.12.3/wkhtmltox/lib/libwkhtmltox.so.0.12.3 37 + ''; 38 + 39 + installPhase = '' 40 + mkdir -p $out/libexec/fastnetmon 41 + cp -r opt/fastnetmon/app/bin $out/bin 42 + cp -r opt/fastnetmon/libraries $out/libexec/fastnetmon 43 + 44 + addAutoPatchelfSearchPath $out/libexec/fastnetmon/libraries 45 + ''; 46 + 47 + meta = with lib; { 48 + description = "A high performance DDoS detector / sensor - commercial edition"; 49 + homepage = "https://fastnetmon.com"; 50 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 51 + maintainers = with maintainers; [ yuka ]; 52 + license = licenses.unfree; 53 + platforms = [ "x86_64-linux" ]; 54 + }; 55 + }
+6
pkgs/top-level/all-packages.nix
··· 3822 3822 3823 3823 tensorflow-lite = callPackage ../development/libraries/science/math/tensorflow-lite { }; 3824 3824 3825 + tiny-cuda-nn = callPackage ../development/libraries/science/math/tiny-cuda-nn { }; 3826 + 3825 3827 tezos-rust-libs = callPackage ../development/libraries/tezos-rust-libs { }; 3826 3828 3827 3829 behave = with python3Packages; toPythonApplication behave; ··· 4943 4945 # pre-gcc11, in particular gcc9. 4944 4946 stdenv = gcc9Stdenv; 4945 4947 }; 4948 + 4949 + gpu-viewer = callPackage ../applications/misc/gpu-viewer { }; 4946 4950 4947 4951 greg = callPackage ../applications/audio/greg { 4948 4952 pythonPackages = python3Packages; ··· 24771 24775 eventstore = callPackage ../servers/nosql/eventstore { }; 24772 24776 24773 24777 exim = callPackage ../servers/mail/exim { }; 24778 + 24779 + fastnetmon-advanced = callPackage ../servers/fastnetmon-advanced { }; 24774 24780 24775 24781 fcgiwrap = callPackage ../servers/fcgiwrap { }; 24776 24782
+6
pkgs/top-level/python-packages.nix
··· 11702 11702 11703 11703 timm = callPackage ../development/python-modules/timm { }; 11704 11704 11705 + tiny-cuda-nn = toPythonModule (pkgs.tiny-cuda-nn.override { 11706 + cudaPackages = self.torch.cudaPackages; 11707 + python3Packages = self; 11708 + pythonSupport = true; 11709 + }); 11710 + 11705 11711 tinycss2 = callPackage ../development/python-modules/tinycss2 { }; 11706 11712 11707 11713 tinycss = callPackage ../development/python-modules/tinycss { };