jiebi/CodeConvo huggingface dataset:
<ins> { buildGoModule , cairo , fetchFromGitHub , gdk-pixbuf , glib , gobject-introspection , graphene , gtk4 , lib , pango , pkg-config }: buildGoModule rec { pname = "gtkcord4"; version = "0.0.6"; src = fetchFromGitHub { owner = "diamondburned"; repo = pname; rev = "v${version}"; hash = "sha256-uEG1pAHMQT+C/E5rKByflvL0NNkC8SeSPMAXanzvhE4="; }; nativeBuildInputs = [ gobject-introspection pkg-config ]; buildInputs = [ cairo gdk-pixbuf glib graphene gtk4 pango ]; vendorHash = "sha256-QZSjSk1xu5ZcrNEra5TxnUVvlQWb5/h31fm5Nc7WMoI="; meta = with lib; { description = "GTK4 Discord client in Go, attempt #4."; homepage = "https://github.com/diamondburned/gtkcord4"; license = licenses.gpl3Only; maintainers = with maintainers; [ urandom ]; }; } </ins>
sha256 = "0ix7xp352bziwz31mw79y7wxxmdn6060p8ry2px243ni1lz1qx1c"; }; <del> buildInputs = [ qtbase qtsvg ] </del> <ins> patches = [ # Cantata wants to check if perl is in the PATH at runtime, but we # patchShebangs the playlists scripts, making that unnecessary (perl will # always be available because it's a dependency) ./dont-check-for-perl-in-PATH.diff ]; postPatch = '' patchShebangs playlists ''; buildInputs = [ qtbase qtsvg perl' ] </ins> ++ lib.optionals withTaglib [ taglib taglib_extras ] ++ lib.optionals withReplaygain [ ffmpeg_3 speex mpg123 ] ++ lib.optional  withHttpStream qtmultimedia
<ins> diff --git a/playlists/dynamicplaylists.cpp b/playlists/dynamicplaylists.cpp index 07b6dce3..6a3f97c9 100644 --- a/playlists/dynamicplaylists.cpp +++ b/playlists/dynamicplaylists.cpp @@ -211,11 +211,6 @@ void DynamicPlaylists::start(const QString &name) return; } -    if (Utils::findExe("perl").isEmpty()) { -        emit error(tr("You need to install "perl" on your system in order for Cantata's dynamic mode to function.")); -        return; -    } - QString fName(Utils::dataDir(rulesDir, false)+name+constExtension); if (!QFile::exists(fName)) { </ins>
lib = lib.extend (final: prev: { nixosSystem = { modules, ... } @ args: import ./nixos/lib/eval-config.nix (args // { <del> modules = modules ++ [ { system.nixos.versionSuffix = </del> <ins> modules = let vmConfig = (import ./nixos/lib/eval-config.nix (args // { modules = modules ++ [ ./nixos/modules/virtualisation/qemu-vm.nix ]; })).config; vmWithBootLoaderConfig = (import ./nixos/lib/eval-config.nix (args // { modules = modules ++ [ ./nixos/modules/virtualisation/qemu-vm.nix { virtualisation.useBootLoader = true; } ]; })).config; in modules ++ [ { system.nixos.versionSuffix = </ins> ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}"; system.nixos.revision = final.mkIf (self ? rev) self.rev; <ins> system.build = { vm = vmConfig.system.build.vm; vmWithBootLoader = vmWithBootLoaderConfig.system.build.vm; }; </ins> } ]; });
if [[ -z $flake ]]; then pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vm -k "${extraBuildFlags[@]}")" else <del> echo "$0: 'build-vm' is not supported with '--flake'" >&2 exit 1 </del> <ins> nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.vm"  "${extraBuildFlags[@]}" "${lockFlags[@]}" pathToConfig="$(readlink -f ./result)" </ins> fi elif [ "$action" = build-vm-with-bootloader ]; then if [[ -z $flake ]]; then pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vmWithBootLoader -k "${extraBuildFlags[@]}")" else <del> echo "$0: 'build-vm-with-bootloader' is not supported with '--flake'" >&2 exit 1 </del> <ins> nix "${flakeFlags[@]}" build "$flake#$flakeAttr.config.system.build.vmWithBootLoader"  "${extraBuildFlags[@]}" "${lockFlags[@]}" pathToConfig="$(readlink -f ./result)" </ins> fi else showSyntax
</listitem> <listitem> <para> <del> Add option <literal>services.nginx.enableSandbox</literal> to starting Nginx web server with additional sandbox/hardening options. By default, write access to <literal>services.nginx.stateDir</literal> is allowed. To allow writing to other folders, </del> <ins> Nginx web server now starting with additional sandbox/hardening options. By default, write access to <literal>services.nginx.stateDir</literal> is allowed. To allow writing to other folders, </ins> use <literal>systemd.services.nginx.serviceConfig.ReadWritePaths</literal> <programlisting> systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ];
"wallpapers" "applications" "desktop-directories" "mime" "appdata" "dbus-1"  ) <del> ecmHostPathSeen=( ) </del> <ins> # ecmHostPathsSeen is an associative array of the paths that have already been # seen by ecmHostPathHook. declare -gA ecmHostPathsSeen </ins> <del> ecmUnseenHostPath() { for pkg in "${ecmHostPathSeen[@]}" do if [ "${pkg:?}" == "$1" ] then return 1 fi done ecmHostPathSeen+=("$1") return 0 </del> <ins> ecmHostPathIsNotSeen() { if [[ -n "${ecmHostPathsSeen["$1"]:-}" ]]; then # The path has been seen before. return 1 else # The path has not been seen before. # Now it is seen, so record it. ecmHostPathsSeen["$1"]=1 return 0 fi </ins> } ecmHostPathHook() { <del> ecmUnseenHostPath "$1" || return 0 </del> <ins> ecmHostPathIsNotSeen "$1" || return 0 </ins> local xdgConfigDir="$1/etc/xdg" if [ -d "$xdgConfigDir" ]
}; buildInputs = [ bzip2 ]; <del> patches = [ ./include-systypes.patch ]; </del> <ins> patches = [ (fetchpatch { url = "https://sources.debian.org/data/main/b/bsdiff/4.3-22/debian/patches/20-CVE-2014-9862.patch"; sha256 = "sha256-3UuUfNvShQ8fLqxCKUTb/n4BmjL4+Nl7aEqCxYrrERQ="; }) ./CVE-2020-14315.patch ./include-systypes.patch ] ++ lib.optional stdenv.hostPlatform.isLinux [ (fetchpatch { url = "https://sources.debian.org/data/main/b/bsdiff/4.3-22/debian/patches/30-bug-632585-mmap-src-file-instead-of-malloc-read-it.patch"; sha256 = "sha256-esbhz2/efUiuQDuF7LGfSeEn3/f1WbqCxQpTs2A0ulI="; }) (fetchpatch { url = "https://sources.debian.org/data/main/b/bsdiff/4.3-22/debian/patches/31-bug-632585-mmap-dst-file-instead-of-malloc-read-it.patch"; sha256 = "sha256-Of4aOcI0rsgdRzPqyw2VRn2p9wQuo3hdlgDTBdXGzoc="; }) (fetchpatch { url = "https://sources.debian.org/data/main/b/bsdiff/4.3-22/debian/patches/32-bug-632585-use-int32_t-instead-off_t-for-file-size.patch"; sha256 = "sha256-SooFnFK4uKNXvXQb/LEcH8GocnRtkryExI4b3BZTsAY="; }) ]; </ins> buildPhase = '' $CC -O3 -lbz2 bspatch.c -o bspatch
<literal>~/.local/share/polymc/polymc.cfg</literal>. </para> </listitem> <ins> <listitem> <para> <literal>pkgs.noto-fonts-cjk</literal> is now deprecated in favor of <literal>pkgs.noto-fonts-cjk-sans</literal> and <literal>pkgs.noto-fonts-cjk-serif</literal> because they each have different release schedules. To maintain compatibility with prior releases of Nixpkgs, <literal>pkgs.noto-fonts-cjk</literal> is currently an alias of <literal>pkgs.noto-fonts-cjk-sans</literal> and doesn’t include serif fonts. </para> </listitem> </ins> </itemizedlist> </section> <section xml:id="sec-release-22.05-notable-changes">
- MultiMC has been replaced with the fork PolyMC due to upstream developers being hostile to 3rd party package maintainers. PolyMC removes all MultiMC branding and is aimed at providing proper 3rd party packages like the one contained in Nixpkgs. This change affects the data folder where game instances and other save and configuration files are stored. Users with existing installations should rename `~/.local/share/multimc` to `~/.local/share/polymc`. The main config file's path has also moved from `~/.local/share/multimc/multimc.cfg` to `~/.local/share/polymc/polymc.cfg`. <ins> - `pkgs.noto-fonts-cjk` is now deprecated in favor of `pkgs.noto-fonts-cjk-sans` and `pkgs.noto-fonts-cjk-serif` because they each have different release schedules. To maintain compatibility with prior releases of Nixpkgs, `pkgs.noto-fonts-cjk` is currently an alias of `pkgs.noto-fonts-cjk-sans` and doesn't include serif fonts. </ins> ## Other Notable Changes {#sec-release-22.05-notable-changes} - The option [services.redis.servers](#opt-services.redis.servers) was added
maintainers = with maintainers; [ mathnerd314 emily ]; }; }; <ins> mkNotoCJK = { typeface, version, rev, sha256 }: stdenvNoCC.mkDerivation { pname = "noto-fonts-cjk-${lib.toLower typeface}"; inherit version; src = fetchFromGitHub { owner = "googlefonts"; repo = "noto-cjk"; inherit rev sha256; }; installPhase = '' install -m444 -Dt $out/share/fonts/opentype/noto-cjk ${typeface}/Variable/OTC/*.otf.ttc ''; meta = with lib; { description = "Beautiful and free fonts for CJK languages"; homepage = "https://www.google.com/get/noto/help/cjk/"; longDescription = '' Noto ${typeface} CJK is a ${lib.toLower typeface} typeface designed as an intermediate style between the modern and traditional. It is intended to be a multi-purpose digital font for user interface designs, digital content, reading on laptops, mobile devices, and electronic books. Noto ${typeface} CJK comprehensively covers Simplified Chinese, Traditional Chinese, Japanese, and Korean in a unified font family. It supports regional variants of ideographic characters for each of the four languages. In addition, it supports Japanese kana, vertical forms, and variant characters (itaiji); it supports Korean hangeul — both contemporary and archaic. ''; license = licenses.ofl; platforms = platforms.all; maintainers = with maintainers; [ mathnerd314 emily ]; }; }; </ins> in {
weights = "{Black,Condensed,Extra,Medium,Semi,Thin}*"; }; <del> noto-fonts-cjk = let zip = fetchzip { url = let rev = "be6c059ac1587e556e2412b27f5155c8eb3ddbe6"; in "https://raw.githubusercontent.com/googlefonts/noto-cjk/${rev}/NotoSansCJK.ttc.zip"; # __MACOSX... stripRoot = false; sha256 = "0ik4z2b15i0pghskgfm3adzb0h35fr4gyzvz3bq49hhkhn9h85vi"; }; in stdenvNoCC.mkDerivation { pname = "noto-fonts-cjk"; version = "2.001"; buildCommand = '' install -m444 -Dt $out/share/fonts/opentype/noto-cjk ${zip}/*.ttc ''; </del> <ins> noto-fonts-cjk-sans = mkNotoCJK { typeface = "Sans"; version = "2.004"; rev = "9f7f3c38eab63e1d1fddd8d50937fe4f1eacdb1d"; sha256 = "sha256-BX4tcDcz+RGka8mtced1k3BopUJQ14t1BtAVqTjyPik="; }; </ins> <del> meta = with lib; { description = "Beautiful and free fonts for CJK languages"; homepage = "https://www.google.com/get/noto/help/cjk/"; longDescription = '' Noto Sans CJK is a sans serif typeface designed as an intermediate style between the modern and traditional. It is intended to be a multi-purpose digital font for user interface designs, digital content, reading on laptops, mobile devices, and electronic books. Noto Sans CJK comprehensively covers Simplified Chinese, Traditional Chinese, Japanese, and Korean in a unified font family. It supports regional variants of ideographic characters for each of the four languages. In addition, it supports Japanese kana, vertical forms, and variant characters (itaiji); it supports Korean hangeul — both contemporary and archaic. ''; license = licenses.ofl; platforms = platforms.all; maintainers = with maintainers; [ mathnerd314 emily ]; }; </del> <ins> noto-fonts-cjk-serif = mkNotoCJK { typeface = "Serif"; version = "2.000"; rev = "9f7f3c38eab63e1d1fddd8d50937fe4f1eacdb1d"; sha256 = "sha256-BX4tcDcz+RGka8mtced1k3BopUJQ14t1BtAVqTjyPik="; </ins> }; noto-fonts-emoji = let
nmap-unfree = nmap; # added 2021-04-06 nologin = shadow; # added 2018-04-25 nordic-polar = throw "nordic-polar was removed on 2021-05-27, now integrated in nordic"; # added 2021-05-27 <ins> noto-fonts-cjk = noto-fonts-cjk-sans; # added 2021-12-16 </ins> now-cli = throw "now-cli has been replaced with nodePackages.vercel"; # added 2021-08-05 nxproxy = nx-libs; # added 2019-02-15 nylas-mail-bin = throw "nylas-mail-bin was deprecated on 2019-09-11: abandoned by upstream";
nordzy-cursor-theme = callPackage ../data/icons/nordzy-cursor-theme { }; inherit (callPackages ../data/fonts/noto-fonts {}) <del> noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-emoji-blob-bin noto-fonts-extra; </del> <ins> noto-fonts noto-fonts-cjk-sans noto-fonts-cjk-serif noto-fonts-emoji noto-fonts-emoji-blob-bin noto-fonts-extra; </ins> nuclear = callPackage ../applications/audio/nuclear { };