From 061c913c366b339fd28b741ca2f56dacb64497f8 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Sat, 3 Apr 2021 23:00:48 +0300 Subject: [PATCH 01/37] nixos/redis: enable sandbox mode --- nixos/modules/services/databases/redis.nix | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/nixos/modules/services/databases/redis.nix b/nixos/modules/services/databases/redis.nix index 3ddc7aad81e9a..24fe4ab3cc241 100644 --- a/nixos/modules/services/databases/redis.nix +++ b/nixos/modules/services/databases/redis.nix @@ -295,6 +295,32 @@ in StateDirectoryMode = "0700"; # Access write directories UMask = "0077"; + # Capabilities + CapabilityBoundingSet = ""; + # Security + NoNewPrivileges = true; + # Sandboxing + ProtectSystem = "strict"; + ProtectHome = true; + PrivateTmp = true; + PrivateDevices = true; + PrivateUsers = true; + ProtectClock = true; + ProtectHostname = true; + ProtectKernelLogs = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + ProtectControlGroups = true; + RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ]; + RestrictNamespaces = true; + LockPersonality = true; + MemoryDenyWriteExecute = true; + RestrictRealtime = true; + RestrictSUIDSGID = true; + PrivateMounts = true; + # System Call Filtering + SystemCallArchitectures = "native"; + SystemCallFilter = "~@clock @cpu-emulation @debug @keyring @memlock @module @mount @obsolete @privileged @raw-io @reboot @resources @setuid @swap"; }; }; }; From e075aeb8c0113b3d91c63aa99b22dcb4ce5a0d81 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Mon, 12 Apr 2021 12:36:28 +0300 Subject: [PATCH 02/37] nixos/redis: add option maxclients --- nixos/modules/services/databases/redis.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/databases/redis.nix b/nixos/modules/services/databases/redis.nix index 24fe4ab3cc241..7ec10c0eb5ab6 100644 --- a/nixos/modules/services/databases/redis.nix +++ b/nixos/modules/services/databases/redis.nix @@ -5,6 +5,8 @@ with lib; let cfg = config.services.redis; + ulimitNofile = cfg.maxclients + 32; + mkValueString = value: if value == true then "yes" else if value == false then "no" @@ -14,8 +16,8 @@ let listsAsDuplicateKeys = true; mkKeyValue = generators.mkKeyValueDefault { inherit mkValueString; } " "; } cfg.settings); -in -{ + +in { imports = [ (mkRemovedOptionModule [ "services" "redis" "user" ] "The redis module now is hardcoded to the redis user.") (mkRemovedOptionModule [ "services" "redis" "dbpath" ] "The redis module now uses /var/lib/redis as data directory.") @@ -121,6 +123,12 @@ in description = "Set the number of databases."; }; + maxclients = mkOption { + type = types.int; + default = 10000; + description = "Set the max number of connected clients at the same time."; + }; + save = mkOption { type = with types; listOf (listOf int); default = [ [900 1] [300 10] [60 10000] ]; @@ -253,6 +261,7 @@ in logfile = cfg.logfile; syslog-enabled = cfg.syslog; databases = cfg.databases; + maxclients = cfg.maxclients; save = map (d: "${toString (builtins.elemAt d 0)} ${toString (builtins.elemAt d 1)}") cfg.save; dbfilename = "dump.rdb"; dir = "/var/lib/redis"; @@ -299,6 +308,8 @@ in CapabilityBoundingSet = ""; # Security NoNewPrivileges = true; + # Process Properties + LimitNOFILE = "${toString ulimitNofile}"; # Sandboxing ProtectSystem = "strict"; ProtectHome = true; From 6426d1e6c063c8cd11b18a3b67c90a2d9af2da25 Mon Sep 17 00:00:00 2001 From: Maximilian Wende Date: Wed, 14 Apr 2021 07:55:10 +0200 Subject: [PATCH 03/37] maintainers: add dasisdormax --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e2bf9f5f49ed6..9cabdeb588210 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2171,6 +2171,16 @@ githubId = 4971975; name = "Janne Heß"; }; + dasisdormax = { + email = "dasisdormax@mailbox.org"; + github = "dasisdormax"; + githubId = 3714905; + keys = [{ + longkeyid = "rsa4096/0x02BA0D4480CA6C44"; + fingerprint = "E59B A198 61B0 A9ED C1FA 3FB2 02BA 0D44 80CA 6C44"; + }]; + name = "Maximilian Wende"; + }; dasj19 = { email = "daniel@serbanescu.dk"; github = "dasj19"; From d307dad7a8128080f651a8b735dbcb0438f02df1 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sun, 18 Apr 2021 14:17:11 +0200 Subject: [PATCH 04/37] oauth2_proxy: rename to oauth2-proxy --- pkgs/servers/{oauth2_proxy => oauth2-proxy}/default.nix | 0 pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) rename pkgs/servers/{oauth2_proxy => oauth2-proxy}/default.nix (100%) diff --git a/pkgs/servers/oauth2_proxy/default.nix b/pkgs/servers/oauth2-proxy/default.nix similarity index 100% rename from pkgs/servers/oauth2_proxy/default.nix rename to pkgs/servers/oauth2-proxy/default.nix diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 78e7c308e7eae..f85218d0eee7e 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -466,6 +466,7 @@ mapAliases ({ nologin = shadow; # added 2018-04-25 nxproxy = nx-libs; # added 2019-02-15 nylas-mail-bin = throw "nylas-mail-bin was deprecated on 2019-09-11: abandoned by upstream"; + oauth2_proxy = oauth2-proxy; # added 2021-04-18 opencascade_oce = opencascade; # added 2018-04-25 oblogout = throw "oblogout has been removed from nixpkgs, as it's archived upstream."; # added 2019-12-10 opencl-icd = ocl-icd; # added 2017-01-20 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad178f83a182a..ed4690e73abd5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18714,7 +18714,7 @@ in nsq = callPackage ../servers/nsq { }; - oauth2_proxy = callPackage ../servers/oauth2_proxy { + oauth2-proxy = callPackage ../servers/oauth2-proxy { buildGoModule = buildGo115Module; }; From 279c7d43eea3c6925fb8b0a34f118270c8d6ccae Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sun, 18 Apr 2021 14:21:38 +0200 Subject: [PATCH 05/37] nixos/oauth2_proxy: fix package name in nixos module --- nixos/modules/services/security/oauth2_proxy.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/security/oauth2_proxy.nix b/nixos/modules/services/security/oauth2_proxy.nix index 77c579279abe5..e85fd4b75df4f 100644 --- a/nixos/modules/services/security/oauth2_proxy.nix +++ b/nixos/modules/services/security/oauth2_proxy.nix @@ -90,10 +90,10 @@ in package = mkOption { type = types.package; - default = pkgs.oauth2_proxy; - defaultText = "pkgs.oauth2_proxy"; + default = pkgs.oauth2-proxy; + defaultText = "pkgs.oauth2-proxy"; description = '' - The package that provides oauth2_proxy. + The package that provides oauth2-proxy. ''; }; From d94462e97be88caa6006b2d6c1e3a2e595758eb2 Mon Sep 17 00:00:00 2001 From: Maximilian Wende Date: Tue, 20 Apr 2021 09:17:53 +0200 Subject: [PATCH 06/37] astc-encoder: init at 2.5 This builds the astc-encoder with the appropriate SIMD instructions automatically selected depending on host machine. --- pkgs/tools/graphics/astc-encoder/default.nix | 71 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 73 insertions(+) create mode 100644 pkgs/tools/graphics/astc-encoder/default.nix diff --git a/pkgs/tools/graphics/astc-encoder/default.nix b/pkgs/tools/graphics/astc-encoder/default.nix new file mode 100644 index 0000000000000..859d6f1eee0de --- /dev/null +++ b/pkgs/tools/graphics/astc-encoder/default.nix @@ -0,0 +1,71 @@ +{ lib +, gccStdenv +, fetchFromGitHub +, cmake +, simdExtensions ? null +}: + +with rec { + # SIMD instruction sets to compile for. If none are specified by the user, + # an appropriate one is selected based on the detected host system + isas = with gccStdenv.hostPlatform; + if simdExtensions != null then lib.toList simdExtensions + else if avx2Support then [ "AVX2" ] + else if sse4_1Support then [ "SSE41" ] + else if isx86_64 then [ "SSE2" ] + else if isAarch64 then [ "NEON" ] + else [ "NONE" ]; + + archFlags = lib.optionals gccStdenv.hostPlatform.isAarch64 [ "-DARCH=aarch64" ]; + + # CMake Build flags for the selected ISAs. For a list of flags, see + # https://github.com/ARM-software/astc-encoder/blob/main/Docs/Building.md + isaFlags = map ( isa: "-DISA_${isa}=ON" ) isas; + + # The suffix of the binary to link as 'astcenc' + mainBinary = builtins.replaceStrings + [ "AVX2" "SSE41" "SSE2" "NEON" "NONE" ] + [ "avx2" "sse4.1" "sse2" "neon" "none" ] + ( builtins.head isas ); +}; + +gccStdenv.mkDerivation rec { + pname = "astc-encoder"; + version = "2.5"; + + src = fetchFromGitHub { + owner = "ARM-software"; + repo = "astc-encoder"; + rev = version; + sha256 = "0ff5jh40w942dz7hmgvznmpa9yhr1j4i9qqj5wy6icm2jb9j4pak"; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = isaFlags ++ archFlags ++ [ + "-DCMAKE_BUILD_TYPE=Release" + ]; + + # Link binaries into environment and provide 'astcenc' link + postInstall = '' + mv $out/astcenc $out/bin + ln -s $out/bin/astcenc-${mainBinary} $out/bin/astcenc + ''; + + meta = with lib; { + homepage = "https://github.com/ARM-software/astc-encoder"; + description = "An encoder for the ASTC texture compression format"; + longDescription = '' + The Adaptive Scalable Texture Compression (ASTC) format is + widely supported by mobile and desktop graphics hardware and + provides better quality at a given bitrate compared to ETC2. + + This program supports both compression and decompression in LDR + and HDR mode and can read various image formats. Run `astcenc + -help` to see all the options. + ''; + platforms = platforms.unix; + license = licenses.asl20; + maintainers = with maintainers; [ dasisdormax ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 403ed59ba32f9..8ca8da2449b4e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1035,6 +1035,8 @@ in asls = callPackage ../development/tools/misc/asls { }; + astc-encoder = callPackage ../tools/graphics/astc-encoder { }; + asymptote = callPackage ../tools/graphics/asymptote { texLive = texlive.combine { inherit (texlive) scheme-small epsf cm-super texinfo; }; gsl = gsl_1; From 03ea3ba1ed5583146a57a553b64deba59c570708 Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Tue, 20 Apr 2021 15:48:50 +0800 Subject: [PATCH 07/37] modules.matrix-appservice-irc: allow connecting to unix sockets In order to connect to postgres sockets. This took a while to track down :/ --- nixos/modules/services/misc/matrix-appservice-irc.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/matrix-appservice-irc.nix b/nixos/modules/services/misc/matrix-appservice-irc.nix index 63dc313ad10bc..a0a5973d30f26 100644 --- a/nixos/modules/services/misc/matrix-appservice-irc.nix +++ b/nixos/modules/services/misc/matrix-appservice-irc.nix @@ -214,7 +214,8 @@ in { PrivateMounts = true; SystemCallFilter = "~@aio @clock @cpu-emulation @debug @keyring @memlock @module @mount @obsolete @raw-io @setuid @swap"; SystemCallArchitectures = "native"; - RestrictAddressFamilies = "AF_INET AF_INET6"; + # AF_UNIX is required to connect to a postgres socket. + RestrictAddressFamilies = "AF_UNIX AF_INET AF_INET6"; }; }; From 388c01875c9e79a9dd54248250704384e98b5771 Mon Sep 17 00:00:00 2001 From: lunik1 Date: Mon, 19 Apr 2021 18:51:34 +0100 Subject: [PATCH 08/37] mpvScripts.mpv-playlistmanager: init at c15a033 (09-03-2021) --- .../video/mpv/scripts/mpv-playlistmanager.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix diff --git a/pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix b/pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix new file mode 100644 index 0000000000000..b7e95324f58ea --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/mpv-playlistmanager.nix @@ -0,0 +1,37 @@ +{ lib, stdenvNoCC, fetchFromGitHub, youtube-dl }: + +stdenvNoCC.mkDerivation rec { + pname = "mpv-playlistmanager"; + version = "unstable-2021-03-09"; + + src = fetchFromGitHub { + owner = "jonniek"; + repo = "mpv-playlistmanager"; + rev = "c15a0334cf6d4581882fa31ddb1e6e7f2d937a3e"; + sha256 = "uxcvgcSGS61UU8MmuD6qMRqpIa53iasH/vkg1xY7MVc="; + }; + + postPatch = '' + substituteInPlace playlistmanager.lua \ + --replace "'youtube-dl'" "'${youtube-dl}/bin/youtube-dl'" \ + ''; + + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/mpv/scripts + cp playlistmanager.lua $out/share/mpv/scripts + runHook postInstall + ''; + + passthru.scriptName = "playlistmanager.lua"; + + meta = with lib; { + description = "Mpv lua script to create and manage playlists"; + homepage = "https://github.com/jonniek/mpv-playlistmanager"; + license = licenses.unlicense; + platforms = platforms.all; + maintainers = with maintainers; [ lunik1 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1406ca0b9e02..81c12aa59d9e3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24623,6 +24623,7 @@ in autoload = callPackage ../applications/video/mpv/scripts/autoload.nix {}; convert = callPackage ../applications/video/mpv/scripts/convert.nix {}; mpris = callPackage ../applications/video/mpv/scripts/mpris.nix {}; + mpv-playlistmanager = callPackage ../applications/video/mpv/scripts/mpv-playlistmanager.nix {}; mpvacious = callPackage ../applications/video/mpv/scripts/mpvacious.nix {}; simple-mpv-webui = callPackage ../applications/video/mpv/scripts/simple-mpv-webui.nix {}; sponsorblock = callPackage ../applications/video/mpv/scripts/sponsorblock.nix {}; From 4954e63a17597f4dcd75695a58613eab4b2c072b Mon Sep 17 00:00:00 2001 From: lunik1 Date: Tue, 20 Apr 2021 01:19:36 +0100 Subject: [PATCH 09/37] libretro: add thepowdertoy core --- pkgs/misc/emulators/retroarch/cores.nix | 14 ++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 15 insertions(+) diff --git a/pkgs/misc/emulators/retroarch/cores.nix b/pkgs/misc/emulators/retroarch/cores.nix index 7d0ba259dc511..887e79999ca18 100644 --- a/pkgs/misc/emulators/retroarch/cores.nix +++ b/pkgs/misc/emulators/retroarch/cores.nix @@ -1011,6 +1011,20 @@ in with lib.licenses; makefile = "Makefile"; }; + thepowdertoy = mkLibRetroCore rec { + core = "thepowdertoy"; + src = fetchRetro { + repo = "ThePowderToy"; + rev = "0ff547e89ae9d6475b0226db76832daf03eec937"; + sha256 = "kDpmo/RPYRvROOX3AhsB5pIl0MfHbQmbyTMciLPDNew="; + }; + description = "Port of The Powder Toy to libretro"; + license = gpl3Only; + extraNativeBuildInputs = [ cmake ]; + makefile = "Makefile"; + postBuild = "cd src/"; + }; + tic80 = mkLibRetroCore { core = "tic80"; src = fetchRetro { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1406ca0b9e02..138399913a155 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26798,6 +26798,7 @@ in ++ optional (cfg.enableStella or false) stella ++ optional (cfg.enableStella2014 or false) stella2014 ++ optional (cfg.enableTGBDual or false) tgbdual + ++ optional (cfg.enableThePowderToy or false) the-powder-toy ++ optional (cfg.enableTIC80 or false) tic80 ++ optional (cfg.enableVbaNext or false) vba-next ++ optional (cfg.enableVbaM or false) vba-m From 29bb1cfff33274a2e34065f39dc41f0873951b2b Mon Sep 17 00:00:00 2001 From: "\"Kyle Ondy\"" <"kyle@ondy.org"> Date: Mon, 19 Apr 2021 17:04:11 -0400 Subject: [PATCH 10/37] vimPlugins.vim-dispatch-neovim: init at 2017-01-18 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 2 files changed, 13 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index 96f2f9121ea55..5404aaeb7322b 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -5606,6 +5606,18 @@ let meta.homepage = "https://github.com/tpope/vim-dispatch/"; }; + vim-dispatch-neovim = buildVimPluginFrom2Nix { + pname = "vim-dispatch-neovim"; + version = "2017-01-18"; + src = fetchFromGitHub { + owner = "radenling"; + repo = "vim-dispatch-neovim"; + rev = "c8c4e21a95c25032a041002f9bf6e45a75a73021"; + sha256 = "111n3f7lv9nkpj200xh0fwbi3scjqyivpw5fwdjdyiqzd6qabxml"; + }; + meta.homepage = "https://github.com/radenling/vim-dispatch-neovim/"; + }; + vim-docbk = buildVimPluginFrom2Nix { pname = "vim-docbk"; version = "2015-04-01"; diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index eea07035b832b..9369a9b7ccd0c 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -496,6 +496,7 @@ qnighy/lalrpop.vim qpkorr/vim-bufkill Quramy/tsuquyomi racer-rust/vim-racer +radenling/vim-dispatch-neovim rafaqz/ranger.vim rafi/awesome-vim-colorschemes raghur/fruzzy From ac8fc5f92fe71e0cb1de5cc4fc9f1c5313055777 Mon Sep 17 00:00:00 2001 From: Kyle Ondy Date: Mon, 19 Apr 2021 17:00:12 -0400 Subject: [PATCH 11/37] vimPlugins.vim-jack-in: init at 2021-03-27 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 2 files changed, 13 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index 96f2f9121ea55..59d42f793181c 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -6447,6 +6447,18 @@ let meta.homepage = "https://github.com/fisadev/vim-isort/"; }; + vim-jack-in = buildVimPluginFrom2Nix { + pname = "vim-jack-in"; + version = "2021-03-27"; + src = fetchFromGitHub { + owner = "clojure-vim"; + repo = "vim-jack-in"; + rev = "80c69cc021486d1cfa5dac7d9d6ab6954ff20c27"; + sha256 = "11dw8kngzznzf91n6iyvw7yi1l35vgpva32dck3n25vpxc24krpn"; + }; + meta.homepage = "https://github.com/clojure-vim/vim-jack-in/"; + }; + vim-janah = buildVimPluginFrom2Nix { pname = "vim-janah"; version = "2018-10-01"; diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index eea07035b832b..42059a24c053d 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -63,6 +63,7 @@ christoomey/vim-sort-motion christoomey/vim-tmux-navigator chuling/ci_dark ckarnell/antonys-macro-repeater +clojure-vim/vim-jack-in cloudhead/neovim-fuzzy CoatiSoftware/vim-sourcetrail cocopon/iceberg.vim From b4a87f0ef014ebb5326b9b2974cf57b9d0404317 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 18 Apr 2021 20:22:56 -0400 Subject: [PATCH 12/37] wemux: init at 2021-04-16 The usual wemux.conf location is /usr/local/etc, but that directory doesn't exist, so we patch the script to look in /etc. Reviewed-by: William Casarin Link: https://lists.sr.ht/~andir/nixpkgs-dev/%3C20210419002256.30999-1-ben@bsima.me%3E --- pkgs/tools/misc/wemux/default.nix | 38 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/tools/misc/wemux/default.nix diff --git a/pkgs/tools/misc/wemux/default.nix b/pkgs/tools/misc/wemux/default.nix new file mode 100644 index 0000000000000..0eee60187f20a --- /dev/null +++ b/pkgs/tools/misc/wemux/default.nix @@ -0,0 +1,38 @@ +{ stdenv, lib, fetchFromGitHub, tmux, installShellFiles }: + +stdenv.mkDerivation rec { + pname = "wemux"; + version = "unstable-2021-04-16"; + + src = fetchFromGitHub { + owner = "zolrath"; + repo = "wemux"; + rev = "01c6541f8deceff372711241db2a13f21c4b210c"; + sha256 = "1y962nzvs7sf720pl3wa582l6irxc8vavd0gp4ag4243b2gs4qvm"; + }; + + nativeBuildInputs = [ installShellFiles ]; + + installPhase = '' + runHook preInstall + + substituteInPlace wemux \ + --replace tmux ${tmux}/bin/tmux \ + --replace "/usr/local/etc" "/etc" + + substituteInPlace man/wemux.1 --replace "/usr/local/etc" "/etc" + + install -Dm755 wemux -t $out/bin + installManPage man/wemux.1 + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/zolrath/wemux"; + description = "Multi-user tmux made easy"; + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ bsima ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 74aac662d8e1b..c43daa7683081 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9221,6 +9221,8 @@ in welkin = callPackage ../tools/graphics/welkin {}; + wemux = callPackage ../tools/misc/wemux { }; + wf-recorder = callPackage ../applications/video/wf-recorder { }; whipper = callPackage ../applications/audio/whipper { }; From 59a672e99c28c7818fbb8b4b968a878acbc709e8 Mon Sep 17 00:00:00 2001 From: "\"lofsigma\"" <"lofsigma@gmail.com"> Date: Tue, 20 Apr 2021 14:52:33 -0400 Subject: [PATCH 13/37] vimPlugins: update --- pkgs/misc/vim-plugins/generated.nix | 38 ++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index 96f2f9121ea55..083c8be30a437 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -1643,12 +1643,12 @@ let gitsigns-nvim = buildVimPluginFrom2Nix { pname = "gitsigns-nvim"; - version = "2021-04-19"; + version = "2021-04-20"; src = fetchFromGitHub { owner = "lewis6991"; repo = "gitsigns.nvim"; - rev = "6e6e4d0199611ddaffb03cec62b56ca179357f32"; - sha256 = "1ls4fcwwxshpiyw2jgz9xgmq1swspf50q1w5br79wbhv2f0sfkxc"; + rev = "499e20ff35493801a50b6e3401fe793f7cdb5b4c"; + sha256 = "0f1w858y9yvixdbpbnl37xfmy5fgi2p70pvdcy4xy60qjsckiglp"; }; meta.homepage = "https://github.com/lewis6991/gitsigns.nvim/"; }; @@ -2356,8 +2356,8 @@ let src = fetchFromGitHub { owner = "hoob3rt"; repo = "lualine.nvim"; - rev = "9e2492fd0772767db6d81c9f6eaac800f596cb51"; - sha256 = "1qzzj6903p4jyb9mcncsra74dab37yffb22y9dzs2ihx7pd8w3by"; + rev = "e6cc09c2e95cc361babb64c113cc3e9355ea1130"; + sha256 = "1jf68z7vh467fr5arbcsk5g65gjpc0dqn584hbg0cpzfmdlrbj4n"; }; meta.homepage = "https://github.com/hoob3rt/lualine.nvim/"; }; @@ -2748,12 +2748,12 @@ let neogit = buildVimPluginFrom2Nix { pname = "neogit"; - version = "2021-04-17"; + version = "2021-04-20"; src = fetchFromGitHub { owner = "TimUntersberger"; repo = "neogit"; - rev = "e49801be0a76f8bcc17fc76d41963dd9a0da05f1"; - sha256 = "11jk3bddybyzmx7gr8as05g34h9rgv7vqb22yirxspvvxh1bsrx6"; + rev = "cb846809d81c360b3f9658ee89a9342450c99da2"; + sha256 = "0r35flvb70y4ankp8v8p6jm0s9mrbg6i94n0v8avaw92xrcgl4ph"; }; meta.homepage = "https://github.com/TimUntersberger/neogit/"; }; @@ -3276,24 +3276,24 @@ let nvim-toggleterm-lua = buildVimPluginFrom2Nix { pname = "nvim-toggleterm-lua"; - version = "2021-04-19"; + version = "2021-04-20"; src = fetchFromGitHub { owner = "akinsho"; repo = "nvim-toggleterm.lua"; - rev = "2c54f8c73c4d2c9a115691a9518262dcdaac0c71"; - sha256 = "18qbzj16czy1jyqmm1if22z04xyslljhqp026x01crp77kkz6ccf"; + rev = "7c9d8c51841c3335818d04b684e93c655b5d61c9"; + sha256 = "04j34wyv7q9n7yld7k7cxxm92al3h7x3rkcnm1q61scwb1xf354r"; }; meta.homepage = "https://github.com/akinsho/nvim-toggleterm.lua/"; }; nvim-tree-lua = buildVimPluginFrom2Nix { pname = "nvim-tree-lua"; - version = "2021-04-19"; + version = "2021-04-20"; src = fetchFromGitHub { owner = "kyazdani42"; repo = "nvim-tree.lua"; - rev = "c995d65b7dc0935d0e1c04302d9b4494c5eb56bf"; - sha256 = "09pb1znd1vfqj8g90805zsb1ffxkj9xfycc5aximm06dcsiv8dgi"; + rev = "983963779d6696c5b6b4aa14f874d85f00941b4e"; + sha256 = "16viqhsh1xn5grv631i6fy5kav65g472yyyz0m4wy4gvi2mb7sf2"; }; meta.homepage = "https://github.com/kyazdani42/nvim-tree.lua/"; }; @@ -6851,8 +6851,8 @@ let src = fetchFromGitHub { owner = "andymass"; repo = "vim-matchup"; - rev = "2f5dfd852f01118861a3cd964494c1522a62eef5"; - sha256 = "0s69n9rmrg8103xcc623n7mbxp1qgbf9x1qm4r3n98fn0x6j8vpl"; + rev = "5bdf7690ed9afda4684f30aa4b9e7a84827b6fdb"; + sha256 = "1jbzaflx1y6c32m59irj5p29nd1p9krb3jgv6hi9w4002vp48f0y"; }; meta.homepage = "https://github.com/andymass/vim-matchup/"; }; @@ -8636,12 +8636,12 @@ let vimoutliner = buildVimPluginFrom2Nix { pname = "vimoutliner"; - version = "2020-10-26"; + version = "2021-04-20"; src = fetchFromGitHub { owner = "vimoutliner"; repo = "vimoutliner"; - rev = "d198aa72c70270f1330f4237bbf853efaaa79723"; - sha256 = "05wcqs36qn8f3vcy9xi2cf0yyp7yzawlxqvpjhbad6lm52vzsabs"; + rev = "054f957779dff8e5fbb859e8cfbca06f1ed9e7f0"; + sha256 = "1bsfrma06mkigr1jhzic98z4v1gckzrjv908vx2wlbjq9cdv7d39"; }; meta.homepage = "https://github.com/vimoutliner/vimoutliner/"; }; From 136920798abaff37e812116aadfa25f731ac8546 Mon Sep 17 00:00:00 2001 From: "\"lofsigma\"" <"lofsigma@gmail.com"> Date: Tue, 20 Apr 2021 14:52:50 -0400 Subject: [PATCH 14/37] vimPlugins.rnvimr: init at 2020-10-02 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 2 files changed, 13 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index 083c8be30a437..cfa51f9bffc4d 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -3851,6 +3851,18 @@ let meta.homepage = "https://github.com/gu-fan/riv.vim/"; }; + rnvimr = buildVimPluginFrom2Nix { + pname = "rnvimr"; + version = "2020-10-02"; + src = fetchFromGitHub { + owner = "kevinhwang91"; + repo = "rnvimr"; + rev = "d83f5a8e070a1fc7e7af0aeea58e71b78956daab"; + sha256 = "0iwj01p9c2kczhx69vxrh1qd4z41ymcgfq5235b1l0rnz4d6v82y"; + }; + meta.homepage = "https://github.com/kevinhwang91/rnvimr/"; + }; + robotframework-vim = buildVimPluginFrom2Nix { pname = "robotframework-vim"; version = "2017-04-14"; diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index eea07035b832b..e8648a6c93bfd 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -272,6 +272,7 @@ keith/rspec.vim keith/swift.vim kevinhwang91/nvim-bqf@main kevinhwang91/nvim-hlslens@main +kevinhwang91/rnvimr kien/rainbow_parentheses.vim knubie/vim-kitty-navigator konfekt/fastfold From 753f0731e8e9a74dc6f32135682e8489e759c384 Mon Sep 17 00:00:00 2001 From: "\"lofsigma\"" <"lofsigma@gmail.com"> Date: Tue, 20 Apr 2021 14:54:56 -0400 Subject: [PATCH 15/37] vimPlugins.vimade: init at 2021-04-07 --- pkgs/misc/vim-plugins/generated.nix | 12 ++++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 2 files changed, 13 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index cfa51f9bffc4d..ff76a7e88c211 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -8598,6 +8598,18 @@ let meta.homepage = "https://github.com/andrep/vimacs/"; }; + vimade = buildVimPluginFrom2Nix { + pname = "vimade"; + version = "2021-04-07"; + src = fetchFromGitHub { + owner = "TaDaa"; + repo = "vimade"; + rev = "9b9254340e39dab3dad64c05b10af0fd85490b71"; + sha256 = "0sbk9lf5w136lwl3ca866m594993s23zad5ss4whzm9j0qknihl3"; + }; + meta.homepage = "https://github.com/TaDaa/vimade/"; + }; + vimagit = buildVimPluginFrom2Nix { pname = "vimagit"; version = "2020-11-18"; diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index e8648a6c93bfd..ebbbe675c1490 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -580,6 +580,7 @@ sunaku/vim-dasht svermeulen/vim-subversive t9md/vim-choosewin t9md/vim-smalls +TaDaa/vimade takac/vim-hardtime tami5/compe-conjure tami5/lispdocs.nvim From c6d9a0b1358157e4c2a27dfd1bb0d6b618fd6f9b Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 20 Apr 2021 14:21:30 -0500 Subject: [PATCH 16/37] devshell: add (tiny) but useful pre-commit hook --- devshell.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/devshell.toml b/devshell.toml index a39b209bc13df..914a06e15f2c2 100644 --- a/devshell.toml +++ b/devshell.toml @@ -1,10 +1,17 @@ +imports = [ "git.hooks" ] + [devshell] name = "nixpkgs" packages = [ "fd", "nixpkgs-fmt", + "editorconfig-checker", ] +[[commands]] +package = "editorconfig-checker" +category = "linters" + [[commands]] name = "fmt" help = "Check Nix formatting" @@ -17,3 +24,36 @@ help = "Check Nix parsing" category = "folder tree checks" command = "fd --extension nix --exec nix-instantiate --parse --quiet {} >/dev/null" +[git.hooks] +enable = true +pre-commit.text = """ +#!/usr/bin/env bash + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(${git}/bin/git hash-object -t tree /dev/null) +fi + +diff="git diff-index --name-only --cached $against --diff-filter d" + +nix_files=($($diff -- '*.nix')) +all_files=($($diff)) + +# Format staged nix files. +if [[ -n "${nix_files[@]}" ]]; then + nixpkgs-fmt "${nix_files[@]}" \ + && git add "${nix_files[@]}" +fi + +# check editorconfig +editorconfig-checker -- "${all_files[@]}" +if [[ $? != '0' ]]; then + printf "%b\n" \ + "\nCode is not aligned with .editorconfig" \ + "Review the output and commit your fixes" >&2 + exit 1 +fi +""" From b3e22b9c6a2b08633eb4628ed90b4bb7a6b615c4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 20 Apr 2021 21:51:25 +0200 Subject: [PATCH 17/37] python3Packages.adafruit-platformdetect: 3.5.0 -> 3.6.0 --- .../python-modules/adafruit-platformdetect/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/adafruit-platformdetect/default.nix b/pkgs/development/python-modules/adafruit-platformdetect/default.nix index ac4768c31d835..2345f8cae469e 100644 --- a/pkgs/development/python-modules/adafruit-platformdetect/default.nix +++ b/pkgs/development/python-modules/adafruit-platformdetect/default.nix @@ -6,12 +6,12 @@ buildPythonPackage rec { pname = "adafruit-platformdetect"; - version = "3.5.0"; + version = "3.6.0"; src = fetchPypi { pname = "Adafruit-PlatformDetect"; inherit version; - sha256 = "sha256-QJeb9+iiS4QZ7poOBp5oKD5KuagkG6cfTalbNRwrI1M="; + sha256 = "sha256-096bMTAh5d2wikrmlDcUspD9GYZlPHbdDcf/e/BLAHI="; }; nativeBuildInputs = [ setuptools-scm ]; From 165d4ec633ee6deeb4661138c2659dd6e62f03d3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 20 Apr 2021 22:03:55 +0200 Subject: [PATCH 18/37] python3Packages.minidump: 0.0.16 -> 0.0.17 --- pkgs/development/python-modules/minidump/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/minidump/default.nix b/pkgs/development/python-modules/minidump/default.nix index 45adc7adb748b..864e58839f4c3 100644 --- a/pkgs/development/python-modules/minidump/default.nix +++ b/pkgs/development/python-modules/minidump/default.nix @@ -5,11 +5,11 @@ buildPythonPackage rec { pname = "minidump"; - version = "0.0.16"; + version = "0.0.17"; src = fetchPypi { inherit pname version; - sha256 = "65a71ca1da2b73ee96daa9d52e4fb9c9b80a849475502c6a1c2a80a68bd149b0"; + sha256 = "sha256-nlPW83Tr3aec1tSYHgcZTwd+ydN12S6WNwK7gdwdatY="; }; # Upstream doesn't have tests From cac2f9581f12408ff125abacf39651443605c03b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 20 Apr 2021 22:04:48 +0200 Subject: [PATCH 19/37] python3Packages.minikerberos: 0.2.9 -> 0.2.11 --- pkgs/development/python-modules/minikerberos/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/minikerberos/default.nix b/pkgs/development/python-modules/minikerberos/default.nix index 481f302d66af2..ee0812eacecce 100644 --- a/pkgs/development/python-modules/minikerberos/default.nix +++ b/pkgs/development/python-modules/minikerberos/default.nix @@ -7,11 +7,11 @@ buildPythonPackage rec { pname = "minikerberos"; - version = "0.2.9"; + version = "0.2.11"; src = fetchPypi { inherit pname version; - sha256 = "sha256-woYs8EYUfALCtqHUCVfF5z1v1UIc9D8Iep9n4NrNIlg="; + sha256 = "sha256-OC+Cnk47GFzK1QaDEDxntRVrakpFiBuNelM/R5t/AUY="; }; propagatedBuildInputs = [ From 84471cd0aa44c09aa8eca97402d3d1120e7d5169 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Tue, 20 Apr 2021 15:11:06 +0200 Subject: [PATCH 20/37] crun: 0.19 -> 0.19.1 Signed-off-by: Sascha Grunert --- pkgs/applications/virtualization/crun/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/crun/default.nix b/pkgs/applications/virtualization/crun/default.nix index 1aee54c8af82b..a6bf559a41a77 100644 --- a/pkgs/applications/virtualization/crun/default.nix +++ b/pkgs/applications/virtualization/crun/default.nix @@ -38,13 +38,13 @@ let in stdenv.mkDerivation rec { pname = "crun"; - version = "0.19"; + version = "0.19.1"; src = fetchFromGitHub { owner = "containers"; repo = pname; rev = version; - sha256 = "sha256-G9asWedX03cP5Qg5HIzlSIwwqNL16kiyWairk+6Kabw="; + sha256 = "sha256-v5uESTEspIc8rhZXrQqLEVMDvvPcfHuFoj6lI4M5z70="; fetchSubmodules = true; }; From 0540805a62bfded30db92e53cb7bc66e4b9a6be1 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Tue, 20 Apr 2021 16:27:45 +0200 Subject: [PATCH 21/37] linuxPackages.oci-seccomp-bpf-hook: 1.2.1 -> 1.2.2 Signed-off-by: Sascha Grunert --- pkgs/os-specific/linux/oci-seccomp-bpf-hook/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/oci-seccomp-bpf-hook/default.nix b/pkgs/os-specific/linux/oci-seccomp-bpf-hook/default.nix index cb5719c31a2f6..16dcfe9ba0604 100644 --- a/pkgs/os-specific/linux/oci-seccomp-bpf-hook/default.nix +++ b/pkgs/os-specific/linux/oci-seccomp-bpf-hook/default.nix @@ -10,12 +10,12 @@ buildGoModule rec { pname = "oci-seccomp-bpf-hook"; - version = "1.2.1"; + version = "1.2.2"; src = fetchFromGitHub { owner = "containers"; repo = "oci-seccomp-bpf-hook"; rev = "v${version}"; - sha256 = "0zbrpv6j4gd4l36zl2dljazdm85qlqwchf0xvmnaywcj8c8b49xw"; + sha256 = "sha256-SRphs8zwKz6jlAixVZkHdww0jroaBNK82kSLj1gs6Wg="; }; vendorSha256 = null; From 20e0c6d5837527906a74ec5513cb9e5a2c0a73b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 20 Apr 2021 21:20:03 +0100 Subject: [PATCH 22/37] configuration template: add hint to install editor (#105771) fixes #25376 --- nixos/modules/installer/tools/tools.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix index 77c974fc22c0a..21f2e730c3feb 100644 --- a/nixos/modules/installer/tools/tools.nix +++ b/nixos/modules/installer/tools/tools.nix @@ -163,7 +163,8 @@ in # List packages installed in system profile. To search, run: # \$ nix search wget # environment.systemPackages = with pkgs; [ - # wget vim + # nano vim # don't forget to add an editor to edit configuration.nix! + # wget # firefox # ]; From f86b57d708878c671bc19346db3d9f124b75c4da Mon Sep 17 00:00:00 2001 From: Adrian Hesketh Date: Tue, 20 Apr 2021 21:28:06 +0100 Subject: [PATCH 23/37] Include custom package in vim docs (#92811) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Describe how to package a plugin that doesn't exist in nixpkgs (and also how to include an external file). Co-authored-by: Jörg Thalheim --- doc/languages-frameworks/vim.section.md | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md index 22b5e6f3013b8..5316db9a1375c 100644 --- a/doc/languages-frameworks/vim.section.md +++ b/doc/languages-frameworks/vim.section.md @@ -116,6 +116,44 @@ The resulting package can be added to `packageOverrides` in `~/.nixpkgs/config.n After that you can install your special grafted `myVim` or `myNeovim` packages. +### What if your favourite Vim plugin isn't already packaged? + +If one of your favourite plugins isn't packaged, you can package it yourself: + +``` +{ config, pkgs, ... }: + +let + easygrep = pkgs.vimUtils.buildVimPlugin { + name = "vim-easygrep"; + src = pkgs.fetchFromGitHub { + owner = "dkprice"; + repo = "vim-easygrep"; + rev = "d0c36a77cc63c22648e792796b1815b44164653a"; + sha256 = "0y2p5mz0d5fhg6n68lhfhl8p4mlwkb82q337c22djs4w5zyzggbc"; + }; + }; +in +{ + environment.systemPackages = [ + ( + pkgs.neovim.override { + configure = { + packages.myPlugins = with pkgs.vimPlugins; { + start = [ + vim-go # already packaged plugin + easygrep # custom package + ]; + opt = []; + }; + # ... + }; + } + ) + ]; +} +``` + ## Managing plugins with vim-plug To use [vim-plug](https://github.com/junegunn/vim-plug) to manage your Vim From b3491eca0ccc4509f7d47d029575c17cb035c554 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 20 Apr 2021 22:23:49 +0200 Subject: [PATCH 24/37] python3Packages.aiosmb: 0.2.37 -> 0.2.41 --- pkgs/development/python-modules/aiosmb/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiosmb/default.nix b/pkgs/development/python-modules/aiosmb/default.nix index 49c67a0aa0404..ce20341eae1db 100644 --- a/pkgs/development/python-modules/aiosmb/default.nix +++ b/pkgs/development/python-modules/aiosmb/default.nix @@ -1,6 +1,7 @@ { lib , asysocks , buildPythonPackage +, colorama , fetchPypi , minikerberos , prompt_toolkit @@ -13,22 +14,23 @@ buildPythonPackage rec { pname = "aiosmb"; - version = "0.2.37"; + version = "0.2.41"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "0daf1fk7406vpywc0yxv0wzf4nw986js9lc2agfyfxz0q7s29lf0"; + sha256 = "sha256-hiLLoFswh0rm5f5TsaX+zyRDkOIyzGXVO0M5J5d/gtQ="; }; propagatedBuildInputs = [ + asysocks + colorama minikerberos - winsspi + prompt_toolkit six - asysocks tqdm - prompt_toolkit winacl + winsspi ]; # Project doesn't have tests From 00fe26700397b46a33ffbcb36e5297cf31b57faa Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Wed, 21 Apr 2021 06:47:08 +1000 Subject: [PATCH 25/37] gh: 1.9.1 -> 1.9.2 https://github.com/cli/cli/releases/tag/v1.9.2 --- .../version-management/git-and-tools/gh/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/gh/default.nix b/pkgs/applications/version-management/git-and-tools/gh/default.nix index f7ea37ff408aa..7dfca2cd80afc 100644 --- a/pkgs/applications/version-management/git-and-tools/gh/default.nix +++ b/pkgs/applications/version-management/git-and-tools/gh/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "gh"; - version = "1.9.1"; + version = "1.9.2"; src = fetchFromGitHub { owner = "cli"; repo = "cli"; rev = "v${version}"; - sha256 = "1nrbz049nizrrfxdpws05gj0bqk47l4mrl4wcvfb6nwispc74ib0"; + sha256 = "0lx6sx3zkjq9855va1vxbd5g47viqkrchk5d2rb6xj7zywwm4mgb"; }; - vendorSha256 = "0j2jy7n7hca5ybwwgh7cvm77j96ngaq1a1l5bl70vjpd8hz2qapc"; + vendorSha256 = "1zmyd566xcksgqm0f7mq0rkfnxk0fmf39k13fcp9jy30c1y9681v"; nativeBuildInputs = [ installShellFiles ]; From c6cb6a7c55242447c7d94316cf8434902094a111 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Tue, 20 Apr 2021 18:21:29 -0300 Subject: [PATCH 26/37] linode-cli: enable/add test; add bash auto-completion --- pkgs/tools/virtualization/linode-cli/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/virtualization/linode-cli/default.nix b/pkgs/tools/virtualization/linode-cli/default.nix index ba343fe657ba2..155daf41a7f2a 100644 --- a/pkgs/tools/virtualization/linode-cli/default.nix +++ b/pkgs/tools/virtualization/linode-cli/default.nix @@ -7,6 +7,7 @@ , requests , pyyaml , setuptools +, installShellFiles }: let @@ -48,14 +49,21 @@ buildPythonApplication rec { cp data-3 linodecli/ ''; - # requires linode access token for unit tests, and running executable - doCheck = false; + doInstallCheck = true; + installCheckPhase = '' + $out/bin/linode-cli --skip-config --version | grep ${version} > /dev/null + ''; + + nativeBuildInputs = [ installShellFiles ]; + postInstall = '' + installShellCompletion --cmd linode-cli --bash <($out/bin/linode-cli --skip-config completion bash) + ''; meta = with lib; { homepage = "https://github.com/linode/linode-cli"; description = "The Linode Command Line Interface"; license = licenses.bsd3; - maintainers = with maintainers; [ ryantm ]; + maintainers = with maintainers; [ ryantm superherointj ]; }; } From 3346f493082a9622418c90520f8db9fe659863bc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 20 Apr 2021 22:13:34 +0200 Subject: [PATCH 27/37] python3Packages.pypykatz: 0.4.7 -> 0.5.0 --- pkgs/development/python-modules/pypykatz/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pypykatz/default.nix b/pkgs/development/python-modules/pypykatz/default.nix index e98e2bc3dbc43..f4eafdcb4fc5d 100644 --- a/pkgs/development/python-modules/pypykatz/default.nix +++ b/pkgs/development/python-modules/pypykatz/default.nix @@ -11,11 +11,11 @@ buildPythonPackage rec { pname = "pypykatz"; - version = "0.4.7"; + version = "0.5.0"; src = fetchPypi { inherit pname version; - sha256 = "0il5sj47wyf9gn76alm8v1l63rqw2vsd27v6f7q1dpn0wq209syi"; + sha256 = "sha256-1p8v4Qi0MNqMUpcErWnxveYu4d4N5BUBCDBsw1xX96I="; }; propagatedBuildInputs = [ From c8f64dcf260b5181d71a4682dd42781ebaaa68a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 20 Apr 2021 22:13:21 +0200 Subject: [PATCH 28/37] python3Packages.msldap: 0.3.28 -> 0.3.29 --- pkgs/development/python-modules/msldap/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/msldap/default.nix b/pkgs/development/python-modules/msldap/default.nix index e9790db9f5ebc..26583ff1b82d2 100644 --- a/pkgs/development/python-modules/msldap/default.nix +++ b/pkgs/development/python-modules/msldap/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , asn1crypto , asysocks , minikerberos @@ -12,11 +12,13 @@ buildPythonPackage rec { pname = "msldap"; - version = "0.3.28"; + version = "0.3.29"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-0sMi5PpwMWf/W+Hu0akQVF/1ZkbanfOzYDC3R6lZrSE="; + src = fetchFromGitHub { + owner = "skelsec"; + repo = pname; + rev = version; + sha256 = "sha256-blC65xSGe2dD/g+u9+eYRwaNCv5icdUxApP3BUVOHKo="; }; propagatedBuildInputs = [ From 14b5ddf08504fa23b949c3dcf84db17035560fbb Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Tue, 20 Apr 2021 23:06:35 +0200 Subject: [PATCH 29/37] haxe_4_1,haxe_4_2: fix build on Darwin --- pkgs/development/compilers/haxe/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/haxe/default.nix b/pkgs/development/compilers/haxe/default.nix index cd64c282b74c9..c9e5a097de1ff 100644 --- a/pkgs/development/compilers/haxe/default.nix +++ b/pkgs/development/compilers/haxe/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, coreutils, ocaml-ng, zlib, pcre, neko, mbedtls }: +{ lib, stdenv, fetchFromGitHub, coreutils, ocaml-ng, zlib, pcre, neko, mbedtls, Security }: let ocamlDependencies = version: @@ -31,7 +31,8 @@ let inherit version; buildInputs = [ zlib pcre neko ] - ++ lib.optional (lib.versionAtLeast version "4.1") [ mbedtls ] + ++ lib.optional (lib.versionAtLeast version "4.1") mbedtls + ++ lib.optional (lib.versionAtLeast version "4.1" && stdenv.isDarwin) Security ++ ocamlDependencies version; src = fetchFromGitHub { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b66337976a41..90ab3ca2bc81c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10620,7 +10620,9 @@ in graphviz = graphviz-nox; }); - inherit (callPackage ../development/compilers/haxe { }) + inherit (callPackage ../development/compilers/haxe { + inherit (darwin.apple_sdk.frameworks) Security; + }) haxe_4_2 haxe_4_1 haxe_4_0 From 8716479e0ef6d16707fb6e985e545e44c6cd7489 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 20 Apr 2021 23:23:45 +0200 Subject: [PATCH 30/37] python3Packages.msldap: 0.3.28 -> 0.3.29 --- pkgs/development/python-modules/msldap/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/msldap/default.nix b/pkgs/development/python-modules/msldap/default.nix index 26583ff1b82d2..12bfb7d7603ee 100644 --- a/pkgs/development/python-modules/msldap/default.nix +++ b/pkgs/development/python-modules/msldap/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , asn1crypto , asysocks , minikerberos @@ -14,11 +14,9 @@ buildPythonPackage rec { pname = "msldap"; version = "0.3.29"; - src = fetchFromGitHub { - owner = "skelsec"; - repo = pname; - rev = version; - sha256 = "sha256-blC65xSGe2dD/g+u9+eYRwaNCv5icdUxApP3BUVOHKo="; + src = fetchPypi { + inherit pname version; + sha256 = "0khwyhylh28qvz35pdckr5fdd82zsybv0xmzlzjbgcv99cyy1a94"; }; propagatedBuildInputs = [ From 231dae3d3df74159e6482d3884e5cc2da6c1db0d Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 20 Apr 2021 16:30:11 -0500 Subject: [PATCH 31/37] Update devshell.toml Co-authored-by: Sandro --- devshell.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devshell.toml b/devshell.toml index 914a06e15f2c2..e8a59d172a83e 100644 --- a/devshell.toml +++ b/devshell.toml @@ -28,7 +28,7 @@ command = "fd --extension nix --exec nix-instantiate --parse --quiet {} >/dev/nu enable = true pre-commit.text = """ #!/usr/bin/env bash - +set -eou pipefail if git rev-parse --verify HEAD >/dev/null 2>&1 then against=HEAD From 8ee65ae54452521b01ff22f5b49d0b3087b6eb4e Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 20 Apr 2021 16:30:37 -0500 Subject: [PATCH 32/37] Update devshell.toml Co-authored-by: Sandro --- devshell.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devshell.toml b/devshell.toml index e8a59d172a83e..6c492a96c95f8 100644 --- a/devshell.toml +++ b/devshell.toml @@ -44,8 +44,8 @@ all_files=($($diff)) # Format staged nix files. if [[ -n "${nix_files[@]}" ]]; then - nixpkgs-fmt "${nix_files[@]}" \ - && git add "${nix_files[@]}" + nixpkgs-fmt "${nix_files[@]}" + git add "${nix_files[@]}" fi # check editorconfig From 974f9a1a4d43dcdadf237dd2ab131048dcd7e48e Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 20 Apr 2021 16:31:04 -0500 Subject: [PATCH 33/37] Update devshell.toml Co-authored-by: Sandro --- devshell.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devshell.toml b/devshell.toml index 6c492a96c95f8..b46e659ecb588 100644 --- a/devshell.toml +++ b/devshell.toml @@ -49,8 +49,7 @@ if [[ -n "${nix_files[@]}" ]]; then fi # check editorconfig -editorconfig-checker -- "${all_files[@]}" -if [[ $? != '0' ]]; then +if ! editorconfig-checker -- "${all_files[@]}"; then printf "%b\n" \ "\nCode is not aligned with .editorconfig" \ "Review the output and commit your fixes" >&2 From dacb7e51860432deb03a11223394168e4896c299 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 20 Apr 2021 16:31:34 -0500 Subject: [PATCH 34/37] Update devshell.toml Co-authored-by: Sandro --- devshell.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/devshell.toml b/devshell.toml index b46e659ecb588..f1c762278fc02 100644 --- a/devshell.toml +++ b/devshell.toml @@ -50,9 +50,8 @@ fi # check editorconfig if ! editorconfig-checker -- "${all_files[@]}"; then - printf "%b\n" \ - "\nCode is not aligned with .editorconfig" \ - "Review the output and commit your fixes" >&2 + echo -e "\nCode is not aligned with .editorconfig +Review the output and commit your fixes" >&2 exit 1 fi """ From ae79547cf280175e931cac1f1fef0f3868abf424 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sun, 18 Apr 2021 13:42:00 +0200 Subject: [PATCH 35/37] asterisk: 13.38.0 -> 13.38.2, 16.15.0 -> 16.17.0, 17.9.0 -> 17.9.3, 18.1.0 -> 18.3.0 Security fixes --- pkgs/servers/asterisk/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/servers/asterisk/default.nix b/pkgs/servers/asterisk/default.nix index 86017314ae775..0f10ae2a9eea3 100644 --- a/pkgs/servers/asterisk/default.nix +++ b/pkgs/servers/asterisk/default.nix @@ -105,8 +105,8 @@ in rec { asterisk = asterisk_18; asterisk_13 = common { - version = "13.38.0"; - sha256 = "1kxff6pbry8nydkspi0mqllidz2lw3d3g3r127x8jwgx021x0rik"; + version = "13.38.2"; + sha256 = "1v7wgsa9vf7qycg3xpvmn2bkandkfh3x15pr8ylg0w0gvfkkf5b9"; externals = { "externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10; "addons/mp3" = mp3-202; @@ -114,8 +114,8 @@ in rec { }; asterisk_16 = common { - version = "16.15.0"; - sha256 = "12nc7ywm6w1xyn720kdc1sqz5wkjjrkxr25wisl02f4v5wz8py7m"; + version = "16.17.0"; + sha256 = "1bzlsk9k735qf8a693b6sa548my7m9ahavmdicwmc14px70wrvnw"; externals = { "externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10; "addons/mp3" = mp3-202; @@ -123,8 +123,8 @@ in rec { }; asterisk_17 = common { - version = "17.9.0"; - sha256 = "1fnm1z7g45m883ivkm36r4kqb7163bzazi70mwf0fc2rc28jd1z4"; + version = "17.9.3"; + sha256 = "0nhk0izrxx24pz806fwnhidjmciwrkcrsvxvhrdvibiqyvfk8yk7"; externals = { "externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10; "addons/mp3" = mp3-202; @@ -132,8 +132,8 @@ in rec { }; asterisk_18 = common { - version = "18.1.0"; - sha256 = "1pq2nrf60xnvh2h1rv82bdfbxxxd277g68xas0vbfgr4531gc4nc"; + version = "18.3.0"; + sha256 = "1xb953i9ay82vcdv8izi5dd5xnspcsvg10ajiyph377jw2xnd5fb"; externals = { "externals_cache/pjproject-2.10.tar.bz2" = pjproject_2_10; "addons/mp3" = mp3-202; From 4f8cfd1c2e307576c7a88934e1ff42a8d46388f5 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sun, 18 Apr 2021 14:56:15 +0200 Subject: [PATCH 36/37] asterisk: clarify license --- pkgs/servers/asterisk/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/asterisk/default.nix b/pkgs/servers/asterisk/default.nix index 0f10ae2a9eea3..be0cd877458ca 100644 --- a/pkgs/servers/asterisk/default.nix +++ b/pkgs/servers/asterisk/default.nix @@ -74,7 +74,7 @@ let meta = with lib; { description = "Software implementation of a telephone private branch exchange (PBX)"; homepage = "https://www.asterisk.org/"; - license = licenses.gpl2; + license = licenses.gpl2Only; maintainers = with maintainers; [ auntie DerTim1 yorickvp ]; }; }; From 3f2631378d3c17b41db2084ebad0d548c8c56f87 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 20 Apr 2021 19:18:06 -0500 Subject: [PATCH 37/37] devshell: add gigthub section --- devshell.toml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/devshell.toml b/devshell.toml index f1c762278fc02..c39784d53e707 100644 --- a/devshell.toml +++ b/devshell.toml @@ -12,6 +12,34 @@ packages = [ package = "editorconfig-checker" category = "linters" +[[commands]] +package = "gitAndTools.gh" +category = "github" + +[[commands]] +name = "bugs" +help = "List issues labeled as bugs" +category = "github" +command = "gh issue list --label=\"0.kind: bug\"" + +[[commands]] +name = "packaging-requests" +help = "List issues labeled as packaging requests (chill out work)" +category = "github" +command = "gh issue list --label=\"0.kind: packaging request\"" + +[[commands]] +name = "pr-status" +help = "Information about relevant PRs" +category = "github" +command = "gh pr status" + +[[commands]] +name = "issue-status" +help = "Information about relevant issues" +category = "github" +command = "gh issue status" + [[commands]] name = "fmt" help = "Check Nix formatting"