Merge master into staging-next

authored by github-actions[bot] and committed by GitHub 57402ca7 55f778d2

+269 -69
+14 -36
pkgs/applications/editors/textadept/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }: 2 - 1 + { lib, stdenv, fetchFromGitHub, fetchurl, cmake, qtbase, wrapQtAppsHook }: 3 2 stdenv.mkDerivation rec { 4 - version = "11.4"; 3 + version = "12.0"; 5 4 pname = "textadept"; 6 5 7 - nativeBuildInputs = [ pkg-config unzip zip ]; 8 - buildInputs = [ 9 - gtk2 ncurses glib 10 - ]; 11 - 12 - enableParallelBuilding = true; 13 - 14 6 src = fetchFromGitHub { 15 7 name = "textadept11"; 16 8 owner = "orbitalquark"; 17 9 repo = "textadept"; 18 10 rev = "textadept_${version}"; 19 - sha256 = "sha256-1we2NC4N8oY4QmmqIIWGSpTBuLx3MEFkZK+BjmNEfD0="; 11 + sha256 = "sha256-KziVN0Fl/IvSnIJKK5s7UikXi3iP5mTauP0YxffKy9c="; 20 12 }; 21 13 22 - preConfigure = 23 - lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params: 24 - "ln -s ${fetchurl params} $PWD/src/${name}" 25 - ) (import ./deps.nix)) + '' 26 - 27 - cd src 28 - make deps 29 - ''; 30 - 31 - postBuild = '' 32 - make curses 33 - ''; 14 + nativeBuildInputs = [ cmake wrapQtAppsHook ]; 15 + buildInputs = [ qtbase ]; 34 16 35 - preInstall = '' 36 - mkdir -p $out/share/applications 37 - mkdir -p $out/share/pixmaps 38 - ''; 17 + cmakeFlags = [ 18 + "CMAKE_INSTALL_PREFIX=build/install" 19 + ]; 39 20 40 - postInstall = '' 41 - make curses install PREFIX=$out MAKECMDGOALS=curses 42 - ''; 21 + preConfigure = '' 22 + mkdir -p $PWD/build/_deps 43 23 44 - makeFlags = [ 45 - "PREFIX=$(out)" 46 - "WGET=true" 47 - "PIXMAPS_DIR=$(out)/share/pixmaps" 48 - "GTK2=1" 49 - ]; 24 + '' + 25 + lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params: 26 + "ln -s ${fetchurl params} $PWD/build/_deps/${name}" 27 + ) (import ./deps.nix)); 50 28 51 29 meta = with lib; { 52 30 description = "An extensible text editor based on Scintilla with Lua scripting.";
+22 -22
pkgs/applications/editors/textadept/deps.nix
··· 1 1 { 2 - "scintilla524.tgz" = { 3 - url = "https://www.scintilla.org/scintilla524.tgz"; 4 - sha256 = "sha256-Su8UiMmkOxcuBat2JWYEnhNdG5HKnV1fn1ClnJhazGY="; 2 + "scintilla536.tgz" = { 3 + url = "https://www.scintilla.org/scintilla536.tgz"; 4 + sha256 = "sha256-ib6CeKg+eBOSWq/il32quH0r1r69F7AXn+cq/dVIyyQ="; 5 5 }; 6 6 "lexilla510.tgz" = { 7 7 url = "https://www.scintilla.org/lexilla510.tgz"; 8 8 sha256 = "sha256-azWVJ0AFSYZxuFTPV73uwiVJZvNxcS/POnFtl6p/P9g="; 9 9 }; 10 - "9088723504b19f8611b66c119933a4dc7939d7b8.zip" = { 11 - url = 12 - "https://github.com/orbitalquark/scintillua/archive/9088723504b19f8611b66c119933a4dc7939d7b8.zip"; 13 - sha256 = "sha256-V2t1kt6+SpZQvQSzLhh8n+WiAnA32SRVFnrbTaJrHRo="; 10 + "scinterm_5.0.zip" = { 11 + url = "https://github.com/orbitalquark/scinterm/archive/scinterm_5.0.zip"; 12 + sha256 = "sha256-l1qeLMCrhyoZA/GfmXFR20rY5EsUoO5e+1vZJtYdb24="; 14 13 }; 15 - "475d8d43f3418590c28bd2fb07ee9229d1fa2d07.zip" = { 16 - url = 17 - "https://github.com/orbitalquark/scinterm/archive/475d8d43f3418590c28bd2fb07ee9229d1fa2d07.zip"; 18 - sha256 = "sha256-lNMK0RFcOLg9RRE5a6VelhSzUYVl5TiAiXcje2JOedE="; 14 + "scintillua_6.2.zip" = { 15 + url = "https://github.com/orbitalquark/scintillua/archive/scintillua_6.2.zip"; 16 + sha256 = "sha256-vjlN6MBz0xjBwWd8dpx/ks37WvdXt2vE1A71YM3uDik="; 19 17 }; 20 - "lua-5.4.4.tar.gz" = { 21 - url = "http://www.lua.org/ftp/lua-5.4.4.tar.gz"; 22 - sha256 = "sha256-Fkx4SWU7gK5nvsS3RzuIS/XMjS3KBWU0dewu0nuev2E="; 18 + "lua-5.4.6.tar.gz" = { 19 + url = "http://www.lua.org/ftp/lua-5.4.6.tar.gz"; 20 + sha256 = "sha256-fV6huctqoLWco93hxq3LV++DobqOVDLA7NBr9DmzrYg="; 23 21 }; 24 - "lpeg-1.0.2.tar.gz" = { 25 - url = "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz"; 26 - sha256 = "sha256-SNZldgUbbHg4j6rQm3BJMJMmRYj80PJY3aqxzdShX/4="; 22 + "lpeg-1.1.0.tar.gz" = { 23 + url = "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.1.0.tar.gz"; 24 + sha256 = "sha256-SxVdZ9IkbB/6ete8RmweqJm7xA/vAlfMnAPOy67UNSo="; 27 25 }; 28 26 "v1_8_0.zip" = { 29 27 url = "https://github.com/keplerproject/luafilesystem/archive/v1_8_0.zip"; 30 28 sha256 = "sha256-46a+ynqKkFIu7THbbM3F7WWkM4JlAMaGJ4TidnG54Yo="; 31 29 }; 32 - "444af9ca8a73151dbf759e6676d1035af469f01a.zip" = { 33 - url = 34 - "https://github.com/orbitalquark/gtdialog/archive/444af9ca8a73151dbf759e6676d1035af469f01a.zip"; 35 - sha256 = "sha256-7AkX7OWXJtzKq3h4uJeLzHpf6mrsz67SXtPvmyA5xxg="; 36 - }; 37 30 "cdk-5.0-20200923.tgz" = { 38 31 url = "http://invisible-mirror.net/archives/cdk/cdk-5.0-20200923.tgz"; 39 32 sha256 = "sha256-AH9d6IDLLuvYVW335M2Gc9XmTJlwFH7uaSOoFMKfqu0="; ··· 42 35 url = "http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.22.tar.gz"; 43 36 sha256 = "sha256-aUW9PEqqg9qD2AoEXFVj2k7dfQN0xiwNNa7AnrMBRgA="; 44 37 }; 38 + # lua-std-regex 39 + "1.0.zip" = { 40 + url = "https://github.com/orbitalquark/lua-std-regex/archive/1.0.zip"; 41 + sha256 = "sha256-W2hKHOfqYyo3qk+YvPJlzZfZ1wxZmMVphSlcaql+dOE="; 42 + }; 45 43 } 44 + 45 +
+8 -3
pkgs/applications/graphics/xournalpp/default.nix
··· 6 6 , wrapGAppsHook 7 7 , pkg-config 8 8 9 + , alsa-lib 9 10 , glib 10 11 , gsettings-desktop-schemas 11 12 , gtk3 13 + , gtksourceview4 12 14 , librsvg 13 15 , libsndfile 14 16 , libxml2 ··· 23 25 24 26 stdenv.mkDerivation rec { 25 27 pname = "xournalpp"; 26 - version = "1.1.3"; 28 + version = "1.2.0"; 27 29 28 30 src = fetchFromGitHub { 29 31 owner = "xournalpp"; 30 32 repo = pname; 31 33 rev = "v${version}"; 32 - sha256 = "sha256-Hn7IDnbrmK3V+iz8UqdmHRV2TS4MwYSgYtnH6igbGJ8="; 34 + sha256 = "sha256-0xsNfnKdGl34qeN0KZbII9w6PzC1HvvO7mtlNlRvUqQ="; 33 35 }; 34 36 35 37 nativeBuildInputs = [ cmake gettext pkg-config wrapGAppsHook ]; 36 38 buildInputs = 37 - [ glib 39 + [ 40 + alsa-lib 41 + glib 38 42 gsettings-desktop-schemas 39 43 gtk3 44 + gtksourceview4 40 45 librsvg 41 46 libsndfile 42 47 libxml2
+214
pkgs/development/perl-modules/Data-UUID-CVE-2013-4184.patch
··· 1 + Eliminate use of state/node files in temp directory, which are a security concern due to insecure writing of State/Node files in a temporary directory, with predictable filenames, with a possible symlink attack. 2 + 3 + Fixes CVE-2013-4184 4 + 5 + https://github.com/bleargh45/Data-UUID/pull/40 by Graham TerMarsch @bleargh45 6 + 7 + 8 + diff --git a/Makefile.PL b/Makefile.PL 9 + index 4ca26af..fb1a0f0 100644 10 + --- a/Makefile.PL 11 + +++ b/Makefile.PL 12 + @@ -89,30 +89,14 @@ WriteMakefile( 13 + 14 + CONFIGURE => sub { 15 + my %opt; 16 + - GetOptions(\%opt, 's|state-storage-directory:s', 'd|default-umask:s', 17 + - 'help|?', 'man') or pod2usage(2); 18 + + GetOptions(\%opt, 'help|?', 'man') or pod2usage(2); 19 + pod2usage(1) if $opt{help}; 20 + pod2usage(-verbose => 2) if $opt{man}; 21 + 22 + print "Configured options (run perl Makefile.PL --help for how to change this):\n"; 23 + 24 + - my $d = File::Spec->tmpdir; 25 + - $d = $opt{s} || $d; 26 + - print "\tUUID state storage: $d\n"; 27 + - $d =~ s/\\/\\\\/g if $^O eq 'MSWin32'; 28 + - 29 + - my $m = '0007'; 30 + - unless ($^O eq 'MSWin32') { 31 + - $m = $opt{d} || $m; 32 + - print "\tdefault umask: $m\n"; 33 + - } 34 + - 35 + - chmod(0666, sprintf("%s/%s", $d, ".UUID_NODEID")); 36 + - chmod(0666, sprintf("%s/%s", $d, ".UUID_STATE")); 37 + return { 38 + - DEFINE => '-D_STDIR=' . shell_quote(c_quote($d)) 39 + - . ' -D' . shell_quote("__$Config{osname}__") 40 + - . ' -D_DEFAULT_UMASK=' . shell_quote($m) 41 + + DEFINE => ' -D' . shell_quote("__$Config{osname}__") 42 + }; 43 + } 44 + ); 45 + @@ -127,11 +111,9 @@ Makefile.PL - configure Makefile for Data::UUID 46 + 47 + perl Makefile.PL [options] [EU::MM options] 48 + 49 + -perl Makefile.PL -s=/var/local/lib/data-uuid -d=0007 50 + +perl Makefile.PL 51 + 52 + Options: 53 + - --state-storage-directory directory for storing library state information 54 + - --default-umask umask for files in the state storage directory 55 + --help brief help message 56 + --man full documentation 57 + 58 + @@ -141,18 +123,6 @@ Options can be abbreviated, see L<Getopt::Long/"Case and abbreviations">. 59 + 60 + =over 61 + 62 + -=item --state-storage-directory 63 + - 64 + -Optional. Takes a string that is interpreted as directory for storing library 65 + -state information. Default is c:/tmp/ on Windows if it already exists, or the 66 + -operating system's temporary directory (see tmpdir in L<File::Spec/"METHODS">), 67 + -or /var/tmp as fallback. 68 + - 69 + -=item --default-umask 70 + - 71 + -Optional. Takes a string that is interpreted as umask for the files in the state 72 + -storage directory. Default is 0007. This is ignored on Windows. 73 + - 74 + =item --help 75 + 76 + Print a brief help message and exits. 77 + @@ -165,10 +135,7 @@ Prints the manual page and exits. 78 + 79 + =head1 DESCRIPTION 80 + 81 + -B<Makefile.PL> writes the Makefile for the Data::UUID library. It is configured 82 + -with the options L</"--state-storage-directory"> and L</"--default-umask">. 83 + -Unless given, default values are used. In any case the values are printed for 84 + -confirmation. 85 + +B<Makefile.PL> writes the Makefile for the Data::UUID library. 86 + 87 + Additionally, the usual EU::MM options are processed, see 88 + L<ExtUtils::MakeMaker/"Using Attributes and Parameters">. 89 + diff --git a/README b/README 90 + index 8aaa1c2..34d53a5 100644 91 + --- a/README 92 + +++ b/README 93 + @@ -23,15 +23,6 @@ To install this module type the following: 94 + make test 95 + make install 96 + 97 + -NOTE: This module is designed to save its state information in a permanent 98 + -storage location. The installation script (i.e. Makefile.PL) prompts for 99 + -a directory name to use as a storage location for state file and defaults 100 + -this directory to "/var/tmp" if no directory name is provided. 101 + -The installation script will not accept names of directories that do not 102 + -exist, however, it will take the locations, which the installing user 103 + -has no write permissions to. In this case, the state information will not be 104 + -saved, which will maximize the chances of generating duplicate UUIDs. 105 + - 106 + COPYRIGHT AND LICENCE 107 + 108 + Copyright (C) 2001, Alexander Golomshtok 109 + diff --git a/UUID.h b/UUID.h 110 + index dc5ea28..11d6e13 100644 111 + --- a/UUID.h 112 + +++ b/UUID.h 113 + @@ -44,23 +44,6 @@ 114 + #include <process.h> 115 + #endif 116 + 117 + -#if !defined _STDIR 118 + -# define _STDIR "/var/tmp" 119 + -#endif 120 + -#if !defined _DEFAULT_UMASK 121 + -# define _DEFAULT_UMASK 0007 122 + -#endif 123 + - 124 + -#define UUID_STATE ".UUID_STATE" 125 + -#define UUID_NODEID ".UUID_NODEID" 126 + -#if defined __mingw32__ || (defined _WIN32 && !defined(__cygwin__)) || defined _MSC_VER 127 + -#define UUID_STATE_NV_STORE _STDIR"\\"UUID_STATE 128 + -#define UUID_NODEID_NV_STORE _STDIR"\\"UUID_NODEID 129 + -#else 130 + -#define UUID_STATE_NV_STORE _STDIR"/"UUID_STATE 131 + -#define UUID_NODEID_NV_STORE _STDIR"/"UUID_NODEID 132 + -#endif 133 + - 134 + #define UUIDS_PER_TICK 1024 135 + #ifdef _MSC_VER 136 + #define I64(C) C##i64 137 + @@ -134,7 +117,6 @@ typedef struct _uuid_state_t { 138 + typedef struct _uuid_context_t { 139 + uuid_state_t state; 140 + uuid_node_t nodeid; 141 + - perl_uuid_time_t next_save; 142 + } uuid_context_t; 143 + 144 + static void format_uuid_v1( 145 + diff --git a/UUID.xs b/UUID.xs 146 + index c3496a8..8191727 100644 147 + --- a/UUID.xs 148 + +++ b/UUID.xs 149 + @@ -356,29 +356,11 @@ PREINIT: 150 + UV one = 1; 151 + CODE: 152 + RETVAL = (uuid_context_t *)PerlMemShared_malloc(sizeof(uuid_context_t)); 153 + - if ((fd = fopen(UUID_STATE_NV_STORE, "rb"))) { 154 + - fread(&(RETVAL->state), sizeof(uuid_state_t), 1, fd); 155 + - fclose(fd); 156 + - get_current_time(&timestamp); 157 + - RETVAL->next_save = timestamp; 158 + - } 159 + - if ((fd = fopen(UUID_NODEID_NV_STORE, "rb"))) { 160 + - pid_t *hate = (pid_t *) &(RETVAL->nodeid); 161 + - fread(&(RETVAL->nodeid), sizeof(uuid_node_t), 1, fd ); 162 + - fclose(fd); 163 + - 164 + - *hate += getpid(); 165 + - } else { 166 + + 167 + get_random_info(seed); 168 + seed[0] |= 0x80; 169 + memcpy(&(RETVAL->nodeid), seed, sizeof(uuid_node_t)); 170 + - mask = umask(_DEFAULT_UMASK); 171 + - if ((fd = fopen(UUID_NODEID_NV_STORE, "wb"))) { 172 + - fwrite(&(RETVAL->nodeid), sizeof(uuid_node_t), 1, fd); 173 + - fclose(fd); 174 + - }; 175 + - umask(mask); 176 + - } 177 + + 178 + errno = 0; 179 + #if DU_THREADSAFE 180 + MUTEX_LOCK(&instances_mutex); 181 + @@ -415,17 +397,6 @@ PPCODE: 182 + self->state.node = self->nodeid; 183 + self->state.ts = timestamp; 184 + self->state.cs = clockseq; 185 + - if (timestamp > self->next_save ) { 186 + - mask = umask(_DEFAULT_UMASK); 187 + - if((fd = fopen(UUID_STATE_NV_STORE, "wb"))) { 188 + - LOCK(fd); 189 + - fwrite(&(self->state), sizeof(uuid_state_t), 1, fd); 190 + - UNLOCK(fd); 191 + - fclose(fd); 192 + - } 193 + - umask(mask); 194 + - self->next_save = timestamp + (10 * 10 * 1000 * 1000); 195 + - } 196 + ST(0) = make_ret(uuid, ix); 197 + XSRETURN(1); 198 + 199 + @@ -585,14 +556,6 @@ CODE: 200 + MUTEX_UNLOCK(&instances_mutex); 201 + if (count == 0) { 202 + #endif 203 + - mask = umask(_DEFAULT_UMASK); 204 + - if ((fd = fopen(UUID_STATE_NV_STORE, "wb"))) { 205 + - LOCK(fd); 206 + - fwrite(&(self->state), sizeof(uuid_state_t), 1, fd); 207 + - UNLOCK(fd); 208 + - fclose(fd); 209 + - }; 210 + - umask(mask); 211 + PerlMemShared_free(self); 212 + #if DU_THREADSAFE 213 + } 214 +
+3 -3
pkgs/servers/matrix-synapse/default.nix
··· 12 12 with python3.pkgs; 13 13 buildPythonApplication rec { 14 14 pname = "matrix-synapse"; 15 - version = "1.88.0"; 15 + version = "1.89.0"; 16 16 format = "pyproject"; 17 17 18 18 src = fetchFromGitHub { 19 19 owner = "matrix-org"; 20 20 repo = "synapse"; 21 21 rev = "v${version}"; 22 - hash = "sha256-uNk+vyOCbaoy8Jw8W5KyedIw6bJ0ci8NkFTMlBVcxEw="; 22 + hash = "sha256-ywDXjwYYCR0ojemRnShDmeoeUlDkpFH/ajFxV2DrR70="; 23 23 }; 24 24 25 25 cargoDeps = rustPlatform.fetchCargoTarball { 26 26 inherit src; 27 27 name = "${pname}-${version}"; 28 - hash = "sha256-ILLZUQjUbLvmNsDpCSqKAYO/PRHTJ/XTDJTo/LCT/mg="; 28 + hash = "sha256-Atwa7yIA9kPsle0/DKQD30PJljVNArqWgau4Ueqzo94="; 29 29 }; 30 30 31 31 postPatch = ''
+3 -3
pkgs/tools/security/gopass/default.nix
··· 13 13 14 14 buildGoModule rec { 15 15 pname = "gopass"; 16 - version = "1.15.5"; 16 + version = "1.15.6"; 17 17 18 18 nativeBuildInputs = [ installShellFiles makeWrapper ]; 19 19 ··· 21 21 owner = "gopasspw"; 22 22 repo = "gopass"; 23 23 rev = "v${version}"; 24 - hash = "sha256-0vMzCqH/p0GXtjoSrnSqMsIul9D00fICYb29KY6/Hno="; 24 + hash = "sha256-qhnkU2LuwUWP3Fi/XekFJp3WujeRxF/UHVBiVTfbxJ4="; 25 25 }; 26 26 27 - vendorHash = "sha256-IgfzzwJANUfDToFLHv3BjDfm93KNm5zxQ5GMq7TQP+Q="; 27 + vendorHash = "sha256-FZFN+xy23osgFs7Cm3S+LwKaE9Y94qcDVgv+CxA8J68="; 28 28 29 29 subPackages = [ "." ]; 30 30
+1 -1
pkgs/top-level/aliases.nix
··· 1697 1697 tex-gyre-pagella-math = throw "'tex-gyre-pagella-math' has been renamed to/replaced by 'tex-gyre-math.pagella'"; # Converted to throw 2022-02-22 1698 1698 tex-gyre-schola-math = throw "'tex-gyre-schola-math' has been renamed to/replaced by 'tex-gyre-math.schola'"; # Converted to throw 2022-02-22 1699 1699 tex-gyre-termes-math = throw "'tex-gyre-termes-math' has been renamed to/replaced by 'tex-gyre-math.termes'"; # Converted to throw 2022-02-22 1700 - textadept11 = textadept; # Added 2022-06-07 1700 + textadept11 = throw "textadept11 has been removed. Please use textadept instead"; # Added 2022-12-23 TODO: UPDATE THE DATE 1701 1701 tftp_hpa = throw "'tftp_hpa' has been renamed to/replaced by 'tftp-hpa'"; # Converted to throw 2022-02-22 1702 1702 thunderbird-68 = throw "Thunderbird 68 reached end of life with its final release 68.12.0 on 2020-08-25"; 1703 1703 thunderbird-bin-68 = thunderbird-68;
+1 -1
pkgs/top-level/all-packages.nix
··· 13473 13473 13474 13474 texstudio = qt6Packages.callPackage ../applications/editors/texstudio { }; 13475 13475 13476 - textadept = callPackage ../applications/editors/textadept { }; 13476 + textadept = libsForQt5.callPackage ../applications/editors/textadept { }; 13477 13477 13478 13478 texworks = qt6Packages.callPackage ../applications/editors/texworks { }; 13479 13479
+3
pkgs/top-level/perl-packages.nix
··· 6083 6083 url = "mirror://cpan/authors/id/R/RJ/RJBS/Data-UUID-1.226.tar.gz"; 6084 6084 hash = "sha256-CT1X/6DUEalLr6+uSVaX2yb1ydAncZj+P3zyviKZZFM="; 6085 6085 }; 6086 + patches = [ 6087 + ../development/perl-modules/Data-UUID-CVE-2013-4184.patch 6088 + ]; 6086 6089 meta = { 6087 6090 description = "Globally/Universally Unique Identifiers (GUIDs/UUIDs)"; 6088 6091 license = with lib.licenses; [ bsd0 ];