jiebi/CodeConvo huggingface dataset:
<ins> { lib , fetchFromGitHub , python3Packages , gnome-menus , gtk3 , intltool , gobject-introspection , wrapGAppsHook , testers , menulibre }: python3Packages.buildPythonApplication rec { name = "menulibre"; version = "2.2.3"; src = fetchFromGitHub { owner = "bluesabre"; repo = "menulibre"; rev = "menulibre-${version}"; hash = "sha256-E0ukq3q4YaakOI2mDs3dh0ncZX/dqspCA+97r3JwWyA="; }; propagatedBuildInputs = with python3Packages; [ pygobject3 gnome-menus psutil distutils-extra ]; nativeBuildInputs = [ gtk3 intltool gobject-introspection wrapGAppsHook ]; postPatch = '' substituteInPlace setup.py  --replace-fail 'data_dir =' "data_dir = '$out/share/menulibre' #"  --replace-fail 'update_desktop_file(desktop_file, script_path)' "" ''; preBuild = '' export HOME=$TMPDIR ''; passthru.tests.version = testers.testVersion { package = menulibre; command = "HOME=$TMPDIR menulibre --version | cut -d' ' -f2"; }; meta = with lib; { description = "An advanced menu editor with an easy-to-use interface"; homepage = "https://bluesabre.org/projects/menulibre"; license = licenses.gpl3Plus; maintainers = with maintainers; [ lelgenio ]; mainProgram = "menulibre"; platforms = platforms.linux; }; } </ins>
<ins> { stdenv , fetchFromGitHub , nix-update-script , meson , ninja , pkg-config , scdoc , gnome-builder , gnused , glib , libgee , json-glib , jsonrpc-glib , vala }: stdenv.mkDerivation rec { pname = "vala-language-server"; version = "0.48.1"; src = fetchFromGitHub { owner = "benwaffle"; repo = pname; rev = version; sha256 = "12k095052jkvbiyz8gzkj6w7r7p16d5m18fyikl48yvh5nln8fw0"; }; passthru = { updateScript = nix-update-script { attrPath = pname; }; }; nativeBuildInputs = [ meson ninja pkg-config scdoc # GNOME Builder Plugin gnused gnome-builder ]; buildInputs = [ glib libgee json-glib jsonrpc-glib vala ]; meta = with stdenv.lib; { description = "Code Intelligence for Vala & Genie"; homepage = "https://github.com/benwaffle/vala-language-server"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ andreasfelix worldofpeace ]; platforms = platforms.linux; }; } </ins>
programs.chromium = { enable = mkEnableOption (lib.mdDoc "{command}`chromium` policies"); <ins> enablePlasmaBrowserIntegration = mkEnableOption (lib.mdDoc "Native Messaging Host for Plasma Browser Integration"); plasmaBrowserIntegrationPackage = mkPackageOption pkgs "plasma5Packages.plasma-browser-integration" { }; </ins> extensions = mkOption { <del> type = types.listOf types.str; </del> <ins> type = with types; nullOr (listOf str); </ins> description = lib.mdDoc '' List of chromium extensions to install. For list of plugins ids see id in url of extensions on
type = types.nullOr types.str; description = lib.mdDoc "Chromium default search provider url."; default = null; <del> example = "https://encrypted.google.com/search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}"; </del> <ins> example = "https://encrypted.google.com/search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}"; </ins> }; defaultSearchProviderSuggestURL = mkOption { type = types.nullOr types.str; description = lib.mdDoc "Chromium default search provider url for suggestions."; default = null; <del> example = "https://encrypted.google.com/complete/search?output=chrome&q={searchTerms}"; </del> <ins> example = "https://encrypted.google.com/complete/search?output=chrome&q={searchTerms}"; </ins> }; extraOpts = mkOption {
###### implementation <del> config = lib.mkIf cfg.enable { # for chromium environment.etc."chromium/policies/managed/default.json".text = builtins.toJSON defaultProfile; environment.etc."chromium/policies/managed/extra.json".text = builtins.toJSON cfg.extraOpts; # for google-chrome https://www.chromium.org/administrators/linux-quick-start environment.etc."opt/chrome/policies/managed/default.json".text = builtins.toJSON defaultProfile; environment.etc."opt/chrome/policies/managed/extra.json".text = builtins.toJSON cfg.extraOpts; # for brave environment.etc."brave/policies/managed/default.json".text = builtins.toJSON defaultProfile; environment.etc."brave/policies/managed/extra.json".text = builtins.toJSON cfg.extraOpts; </del> <ins> config = { environment.etc = lib.mkIf cfg.enable { # for chromium "chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json" = lib.mkIf cfg.enablePlasmaBrowserIntegration { source = "${cfg.plasmaBrowserIntegrationPackage}/etc/chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json"; }; "chromium/policies/managed/default.json" = lib.mkIf (defaultProfile != {}) { text = builtins.toJSON defaultProfile; }; "chromium/policies/managed/extra.json" = lib.mkIf (cfg.extraOpts != {}) { text = builtins.toJSON cfg.extraOpts; }; # for google-chrome https://www.chromium.org/administrators/linux-quick-start "opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.json" = lib.mkIf cfg.enablePlasmaBrowserIntegration { source = "${cfg.plasmaBrowserIntegrationPackage}/etc/opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.json"; }; "opt/chrome/policies/managed/default.json" = lib.mkIf (defaultProfile != {}) { text = builtins.toJSON defaultProfile; }; "opt/chrome/policies/managed/extra.json" = lib.mkIf (cfg.extraOpts != {}) { text = builtins.toJSON cfg.extraOpts; }; # for brave "brave/policies/managed/default.json" = lib.mkIf (defaultProfile != {}) { text = builtins.toJSON defaultProfile; }; "brave/policies/managed/extra.json" = lib.mkIf (cfg.extraOpts != {}) { text = builtins.toJSON cfg.extraOpts; }; }; </ins> }; }
# can build this. If we didn't do it, basically the entire nixpkgs on Darwin would have an unfree dependency and we'd # get no binary cache for the entire platform. If you really find yourself wanting the TSAN, make this controllable by # a flag and turn the flag off during the stdenv build. <del> postPatch = stdenv.lib.optionalString stdenv.isDarwin '' </del> <ins> postPatch = '' substituteInPlace cmake/builtin-config-ix.cmake  --replace 'set(X86 i386)' 'set(X86 i386 i486 i586 i686)' '' + stdenv.lib.optionalString stdenv.isDarwin '' </ins> substituteInPlace cmake/config-ix.cmake  --replace 'set(COMPILER_RT_HAS_TSAN TRUE)' 'set(COMPILER_RT_HAS_TSAN FALSE)' '' + stdenv.lib.optionalString (useLLVM) ''
<del> { stdenv, fetchurl, python2, keybinder3, intltool, file, gtk3, gobject-introspection , libnotify, wrapGAppsHook, vte </del> <ins> { stdenv , fetchFromGitHub , python , keybinder3 , intltool , file , gtk3 , gobject-introspection , libnotify , wrapGAppsHook , vte </ins> }: <del> python2.pkgs.buildPythonApplication rec { </del> <ins> python.pkgs.buildPythonApplication rec { </ins> name = "terminator-${version}"; <del> version = "1.91"; </del> <ins> version = "1.92"; </ins> <del> src = fetchurl { url = "https://launchpad.net/terminator/gtk3/${version}/+download/${name}.tar.gz"; sha256 = "95f76e3c0253956d19ceab2f8da709a496f1b9cf9b1c5b8d3cd0b6da3cc7be69"; </del> <ins> src = fetchFromGitHub { owner = "gnome-terminator"; repo = "terminator"; rev = "bb24273eb40dc5eac97de74064488701fa40a743"; sha256 = "105f660wzf9cpn24xzwaaa09igg5h3qhchafv190v5nqck6g1ssh"; </ins> }; <del> nativeBuildInputs = [ file intltool wrapGAppsHook gobject-introspection ]; buildInputs = [ gtk3 vte libnotify keybinder3 </del> <ins> nativeBuildInputs = [ file intltool gobject-introspection wrapGAppsHook ]; buildInputs = [ gtk3 </ins> gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943 <ins> keybinder3 libnotify python vte ]; propagatedBuildInputs = with python.pkgs; [ configobj dbus-python pygobject3 psutil pycairo </ins> ]; <del> propagatedBuildInputs = with python2.pkgs; [ pygobject3 psutil pycairo ]; </del> postPatch = '' patchShebangs . <ins> # dbus-python is correctly passed in propagatedBuildInputs, but for some reason setup.py complains. # The wrapped terminator has the correct path added, so ignore this. substituteInPlace setup.py --replace "'dbus-python'," "" </ins> ''; checkPhase = ''
quadkonsole, etc. in that the main focus is arranging terminals in grids (tabs is the most common default method, which Terminator also supports). ''; <del> homepage = "https://gnometerminator.blogspot.no/p/introduction.html"; </del> <ins> homepage = "https://github.com/gnome-terminator/terminator"; </ins> license = licenses.gpl2; maintainers = with maintainers; [ bjornfor ]; platforms = platforms.linux;
fsNeededForBoot = fs: fs.neededForBoot || elem fs.mountPoint pathsNeededForBoot; # Check whenever `b` depends on `a` as a fileSystem <del> fsBefore = a: b: a.mountPoint == b.device || hasPrefix "${a.mountPoint}${optionalString (!(hasSuffix "/" a.mountPoint)) "/"}" b.mountPoint; </del> <ins> fsBefore = a: b: let # normalisePath adds a slash at the end of the path if it didn't already # have one. # # The reason slashes are added at the end of each path is to prevent `b` # from accidentally depending on `a` in cases like #    a = { mountPoint = "/aaa"; ... } #    b = { device     = "/aaaa"; ... } # Here a.mountPoint *is* a prefix of b.device even though a.mountPoint is # *not* a parent of b.device. If we add a slash at the end of each string, # though, this is not a problem: "/aaa/" is not a prefix of "/aaaa/". normalisePath = path: "${path}${optionalString (!(hasSuffix "/" path)) "/"}"; normalise = mount: mount // { device = normalisePath mount.device; mountPoint = normalisePath mount.mountPoint; depends = map normalisePath mount.depends; }; a' = normalise a; b' = normalise b; in hasPrefix a'.mountPoint b'.device || hasPrefix a'.mountPoint b'.mountPoint || any (hasPrefix a'.mountPoint) b'.depends; </ins> # Escape a path according to the systemd rules, e.g. /dev/xyzzy # becomes dev-xyzzy.  FIXME: slow.
"upperdir=/nix/.rw-store/store" "workdir=/nix/.rw-store/work" ]; <ins> depends = [ "/nix/.ro-store" "/nix/.rw-store/store" "/nix/.rw-store/work" ]; </ins> }; boot.initrd.availableKernelModules = [ "squashfs" "iso9660" "uas" "overlay" ];
specialFSTypes = [ "proc" "sysfs" "tmpfs" "ramfs" "devtmpfs" "devpts" ]; <ins> nonEmptyWithoutTrailingSlash = addCheckDesc "non-empty without trailing slash" types.str (s: isNonEmpty s && (builtins.match ".+/" s) == null); </ins> coreFileSystemOpts = { name, config, ... }: { options = { mountPoint = mkOption { example = "/mnt/usb"; <del> type = addCheckDesc "non-empty without trailing slash" types.str (s: isNonEmpty s && (builtins.match ".+/" s) == null); </del> <ins> type = nonEmptyWithoutTrailingSlash; </ins> description = "Location of the mounted the file system."; };
type = types.listOf nonEmptyStr; }; <ins> depends = mkOption { default = [ ]; example = [ "/persist" ]; type = types.listOf nonEmptyWithoutTrailingSlash; description = '' List of paths that should be mounted before this one. This filesystem's <option>device</option> and <option>mountPoint</option> are always checked and do not need to be included explicitly. If a path is added to this list, any other filesystem whose mount point is a parent of the path will be mounted before this filesystem. The paths do not need to actually be the <option>mountPoint</option> of some other filesystem. ''; }; </ins> }; config = {
services.zfs.zed.settings = { ZED_EMAIL_PROG = mkDefault "${pkgs.mailutils}/bin/mail"; <del> PATH = lib.makeBinPath [ packages.zfsUser pkgs.utillinux pkgs.gawk pkgs.gnused pkgs.gnugrep pkgs.coreutils pkgs.curl ]; </del> <ins> PATH = lib.makeBinPath [ packages.zfsUser pkgs.coreutils pkgs.curl pkgs.gawk pkgs.gnugrep pkgs.gnused pkgs.nettools pkgs.utillinux ]; </ins> }; environment.etc = genAttrs
''; }; <ins> tsun = super.tsun.overrideAttrs (oldAttrs: { buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ]; postInstall = '' wrapProgram "$out/bin/tsun"  --prefix NODE_PATH : ${self.typescript}/lib/node_modules ''; }); </ins> stf = super.stf.override { meta.broken = since "10"; };
--replace /bin/sh ${stdenv.shell}  --replace /usr/sbin/ethtool ${ethtool}/sbin/ethtool  --replace /bin/sed ${gnused}/bin/sed <ins> # to enable link-local connections substituteInPlace src/devices/nm-device.c --replace '("avahi-autoipd", NULL, NULL)' '("avahi-autoipd", &"${avahi}/sbin/avahi-autoipd", NULL)' </ins> configureFlags="$configureFlags --with-udev-dir=$out/lib/udev" '';
, libiconv, postgresql, v8_3_16_14, clang, sqlite, zlib, imagemagick , pkgconfig , ncurses, xapian_1_2_22, gpgme, utillinux, fetchpatch, tzdata, icu, libffi , cmake, libssh2, openssl, mysql, darwin, git, perl, gecode_3, curl <del> , libmsgpack, qt48, libsodium, snappy, libossp_uuid, lxc </del> <ins> , libmsgpack, qt48, libsodium, snappy, libossp_uuid, lxc, libpcap </ins> }@args: let
<del> { stdenv, fetchurl, makeWrapper, ruby }: stdenv.mkDerivation rec { </del> <ins> { stdenv, fetchFromGitHub, makeWrapper, ruby, bundlerEnv, ncurses }: # Maintainer notes for updating: # 1. increment version number in expression and in Gemfile # 2. run $ nix-shell --command "bundler install && bundix" #    in metasploit in nixpkgs let env = bundlerEnv { inherit ruby; name = "metasploit-bundler-env"; gemdir = ./.; }; in stdenv.mkDerivation rec { </ins> name = "metasploit-framework-${version}"; <del> version = "3.3.1"; </del> <ins> version = "4.14.17"; </ins> <del> src = fetchurl { url = "http://downloads.metasploit.com/data/releases/archive/framework-${version}.tar.bz2"; sha256 = "07clzw1zfnqjhyydsc4mza238isai58p7aygh653qxsqb9a0j7qw"; </del> <ins> src = fetchFromGitHub { owner = "rapid7"; repo = "metasploit-framework"; rev = version; sha256 = "0g666lxin9f0v9vhfh3s913ym8fnh32rpfl1rpj8d8n1azch5fn0"; </ins> }; <del> buildInputs = [makeWrapper]; </del> <ins> buildInputs = [ makeWrapper ]; dontPatchelf = true; # stay away from exploit executables </ins> installPhase = '' <del> mkdir -p $out/share/msf mkdir -p $out/bin </del> <ins> mkdir -p $out/{bin,share/msf} </ins> cp -r * $out/share/msf for i in $out/share/msf/msf*; do <del> makeWrapper $i $out/bin/$(basename $i) --prefix RUBYLIB : $out/share/msf/lib </del> <ins> bin=$out/bin/$(basename $i) cat > $bin <<EOF #!/bin/sh -e exec ${env}/bin/bundle exec ${ruby}/bin/ruby $i "$@" EOF chmod +x $bin </ins> done ''; <del> postInstall = '' patchShebangs $out/share/msf ''; meta = { </del> <ins> meta = with stdenv.lib; { </ins> description = "Metasploit Framework - a collection of exploits"; homepage = https://github.com/rapid7/metasploit-framework/wiki; <del> platforms = stdenv.lib.platforms.unix; </del> <ins> platforms = platforms.unix; license = licenses.bsd3; maintainers = [ maintainers.makefu ]; </ins> }; }
libXScrnSaver libXcursor libXtst libGLU libGL pciutils protobuf speechd libXdamage at-spi2-core jre <ins> pipewire_0_2 </ins> ] ++ optional useVaapi libva ++ optional gnomeKeyringSupport libgnome-keyring3 ++ optionals gnomeSupport [ gnome.GConf libgcrypt ]
buildCommand = let browserBinary = "${chromiumWV}/libexec/chromium/chromium"; getWrapperFlags = plugin: "$(< "${plugin}/nix-support/wrapper-flags")"; <del> libPath = stdenv.lib.makeLibraryPath [ libva ]; </del> <ins> libPath = stdenv.lib.makeLibraryPath [ libva pipewire_0_2 ]; </ins> in with stdenv.lib; '' mkdir -p "$out/bin"
githubId = 24496705; name = "Scott Hamilton"; }; <ins> ShamrockLee = { name = "Shamrock Lee"; email = "44064051+ShamrockLee@users.noreply.github.com"; github = "ShamrockLee"; githubId = 44064051; }; </ins> shanemikel = { email = "shanepearlman@pm.me"; github = "shanemikel";
<ins> { stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, libchewing, qtbase , qttools }: mkDerivation rec { pname = "chewing-editor"; version = "0.1.1"; src = fetchFromGitHub { owner = "chewing"; repo = "${pname}"; rev = "${version}"; sha256 = "0kc2hjx1gplm3s3p1r5sn0cyxw3k1q4gyv08q9r6rs4sg7xh2w7w"; }; doCheck = true; nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ libchewing qtbase qttools ]; meta = with stdenv.lib; { description = "Cross platform chewing user phrase editor"; longDescription = '' chewing-editor is a cross platform chewing user phrase editor. It provides a easy way to manage user phrase. With it, user can customize their user phrase to increase input performance. ''; homepage = "https://github.com/chewing/chewing-editor"; license = licenses.gpl2Plus; maintainers = [ maintainers.ShamrockLee ]; platforms = platforms.all; }; } </ins>
fcitx-configtool = callPackage ../tools/inputmethods/fcitx/fcitx-configtool.nix { }; <ins> chewing-editor = libsForQt5.callPackage ../applications/misc/chewing-editor { }; </ins> fcppt = callPackage ../development/libraries/fcppt { }; fcrackzip = callPackage ../tools/security/fcrackzip { };
mv data/org.pitivi.Pitivi-mime.xml data/org.pitivi.Pitivi-mime.xml.in ''; <ins> # Fixes error #     Couldn’t recognize the image file format for file ".../share/pitivi/pixmaps/asset-proxied.svg" # at startup, see https://github.com/NixOS/nixpkgs/issues/56943 # and https://github.com/NixOS/nixpkgs/issues/89691#issuecomment-714398705. strictDeps = false; </ins> passthru = { updateScript = gnome3.updateScript { packageName = "pitivi";
<ins> From acab088fd6af0b2ef2df1396aeb93bfc2e020fa5 Mon Sep 17 00:00:00 2001 From: "Yukihiro "Matz" Matsumoto" <matz@ruby.or.jp> Date: Mon, 27 Apr 2020 18:52:43 +0900 Subject: [PATCH 1/2] Updating `parse.y for recent `bison` (retry). --- mrbgems/mruby-compiler/core/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 6a1faf4e..2a4f740e 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -1323,7 +1323,7 @@ heredoc_end(parser_state *p) %} -%pure-parser +%define api.pure %parse-param {parser_state *p} %lex-param {parser_state *p} -- 2.27.0 From 3cc682d943b29e84928a847a23f411ddbace74b7 Mon Sep 17 00:00:00 2001 From: "Yukihiro "Matz" Matsumoto" <matz@ruby.or.jp> Date: Fri, 15 May 2020 12:30:13 +0900 Subject: [PATCH 2/2] Remove `YYERROR_VERBOSE` which no longer supported since `bison 3.6`. Instead we added `%define parse.error verbose`. --- mrbgems/mruby-compiler/core/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 2a4f740e..eee6a5e5 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -9,7 +9,6 @@ #ifdef PARSER_DEBUG # define YYDEBUG 1 #endif -#define YYERROR_VERBOSE 1 #define YYSTACK_USE_ALLOCA 1 #include <ctype.h> @@ -1323,6 +1322,7 @@ heredoc_end(parser_state *p) %} +%define parse.error verbose %define api.pure %parse-param {parser_state *p} %lex-param {parser_state *p} -- 2.27.0 </ins>
<del> { stdenv, ruby, bison, fetchFromGitHub }: </del> <ins> { stdenv, ruby, bison, rake, fetchFromGitHub }: </ins> stdenv.mkDerivation rec { pname = "mruby"; <del> version = "2.1.0"; </del> <ins> version = "2.1.1"; </ins> src = fetchFromGitHub { owner   = "mruby"; repo    = "mruby"; rev     = version; <del> sha256  = "1y072c7dh9jf8xwy7kia6cb4dkpspq4zf24ssn7zm5f46p4waxni"; </del> <ins> sha256  = "gEEb0Vn/G+dNgeY6r0VP8bMSPrEOf5s+0GoOcnIPtEU="; </ins> }; <del> nativeBuildInputs = [ ruby bison ]; </del> <ins> nativeBuildInputs = [ ruby bison rake ]; patches = [ ./bison-36-compat.patch ]; </ins> # Necessary so it uses `gcc` instead of `ld` for linking. # https://github.com/mruby/mruby/blob/35be8b252495d92ca811d76996f03c470ee33380/tasks/toolchains/gcc.rake#L25
chmod +x "$out"/bin/wsrep_sst_common rm "$out"/bin/{mariadb-client-test,mariadb-test,mysql_client_test,mysqltest} rm -r "$out"/data # Don't need testing data <del> mv "$out"/OFF/suite/plugins/pam/pam_mariadb_mtr.so "$out"/share/pam/lib/security mv "$out"/OFF/suite/plugins/pam/mariadb_mtr "$out"/share/pam/etc/security rm -r "$out"/OFF </del> '' + optionalString withStorageMroonga '' mv "$out"/share/{groonga,groonga-normalizer-mysql} "$out"/share/doc/mysql '' + optionalString (!stdenv.hostPlatform.isDarwin) '' <ins> mv "$out"/OFF/suite/plugins/pam/pam_mariadb_mtr.so "$out"/share/pam/lib/security mv "$out"/OFF/suite/plugins/pam/mariadb_mtr "$out"/share/pam/etc/security rm -r "$out"/OFF </ins> sed -i 's/-mariadb/-mysql/' "$out"/bin/galera_new_cluster '';
<ins> { lib , fetchurl , appimageTools , gtk3 , gsettings-desktop-schemas , xorg , pname , version , sha256 , metaCommon ? { } }: let name = "${pname}-${version}"; src = fetchurl { url = "https://github.com/sindresorhus/caprine/releases/download/v${version}/Caprine-${version}.AppImage"; name = "Caprine-${version}.AppImage"; inherit sha256; }; extracted = appimageTools.extractType2 { inherit name src; }; in (appimageTools.wrapType2 { inherit name src; profile = '' export LC_ALL=C.UTF-8 export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS ''; extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs; extraInstallCommands = '' mv $out/bin/{${name},caprine} mkdir -p $out/share "${xorg.lndir}/bin/lndir" -silent "${extracted}/usr/share" "$out/share" ln -s ${extracted}/caprine.png $out/share/icons/caprine.png mkdir $out/share/applications cp ${extracted}/caprine.desktop $out/share/applications/ substituteInPlace $out/share/applications/caprine.desktop  --replace AppRun caprine ''; meta = metaCommon // { platforms = [ "x86_64-linux" ]; mainProgram = "caprine"; }; }) // { inherit pname version; } </ins>
<ins> { stdenvNoCC , lib , fetchurl , undmg , pname , version , sha256 , metaCommon ? { } }: stdenvNoCC.mkDerivation { inherit pname version; src = fetchurl { url = "https://github.com/sindresorhus/caprine/releases/download/v${version}/Caprine-${version}.dmg"; name = "Caprine-${version}.dmg"; inherit sha256; }; sourceRoot = "Caprine.app"; nativeBuildInputs = [ undmg ]; installPhase = '' mkdir -p "$out/Applications/Caprine.app" cp -R . "$out/Applications/Caprine.app" mkdir "$out/bin" ln -s "$out/Applications/Caprine.app/Contents/MacOS/Caprine" "$out/bin/caprine" ''; meta = metaCommon // { platforms = with lib.platforms; darwin; mainProgram = "caprine"; }; } </ins>
<ins> { lib, callPackage, stdenvNoCC }: let pname = "caprine"; version = "2.55.2"; metaCommon = with lib; { description = "An elegant Facebook Messenger desktop app"; homepage = "https://sindresorhus.com/caprine"; license = licenses.mit; maintainers = with maintainers; [ ShamrockLee ]; }; x86_64-appimage = callPackage ./build-from-appimage.nix { inherit pname version metaCommon; sha256 = "J7eHVXjWSIcTpLMM8FlGKZzVh6XgpQ0d82kxfMbPyZ4="; }; x86_64-dmg = callPackage ./build-from-dmg.nix { inherit pname version metaCommon; sha256 = "du/9N1BFq1s7spPiEDgDbjjcnkA0x1ExhAEpQvmO3aA="; }; in (if stdenvNoCC.isDarwin then x86_64-dmg else x86_64-appimage).overrideAttrs (oldAttrs: { passthru = (oldAttrs.passthru or { }) // { inherit x86_64-appimage x86_64-dmg; }; meta = oldAttrs.meta // { platforms = x86_64-appimage.meta.platforms ++ x86_64-dmg.meta.platforms; }; }) </ins>
url = "https://github.com/ipmitool/ipmitool/commit/5db314f694f75c575cd7c9ffe9ee57aaf3a88866.patch"; sha256 = "01niwrgajhrdhl441gzmw6v1r1yc3i8kn98db4b6smfn5fwdp1pa"; }) <ins> (fetchpatch { name = "CVE-2020-5208.patch"; url = "https://github.com/ipmitool/ipmitool/commit/e824c23316ae50beb7f7488f2055ac65e8b341f2.patch"; sha256 = "sha256-X7MnoX2fzByRpRY4p33xetT+V2aehlQ/qU+aeaqtTUY="; }) </ins> ]; buildInputs = [ openssl ];
in { php72 = generic { <del> version = "7.2.29"; sha256 = "08xry2fgqgg8s0ym1hh11wkbr36av3zq1bn4krbciw1b7x8gb8ga"; </del> <ins> version = "7.2.31"; sha256 = "0057x1s43f9jidmrl8daka6wpxclxc1b1pm5cjbz616p8nbmb9qv"; </ins> # https://bugs.php.net/bug.php?id=76826 extraPatches = optional stdenv.isDarwin ./php72-darwin-isfinite.patch; }; php73 = generic { <del> version = "7.3.16"; sha256 = "0bh499v9dfgh9k51w4rird1slb9rh9whp5h37fb84c98d992s1xq"; </del> <ins> version = "7.3.19"; sha256 = "199l1lr7ima92icic7b1bqlb036md78m305lc3v6zd4zw8qix70d"; </ins> # https://bugs.php.net/bug.php?id=76826 extraPatches = optional stdenv.isDarwin ./php73-darwin-isfinite.patch; }; php74 = generic { <del> version = "7.4.6"; sha256 = "0j133pfwa823d4jhx2hkrrzjl4hswvz00b1z58r5c82xd5sr9vd6"; </del> <ins> version = "7.4.7"; sha256 = "0ynq4fz54jpzh9nxvbgn3vrdad2clbac0989ai0yrj2ryc0hs3l0"; </ins> }; }