nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge master into staging-next

authored by

github-actions[bot] and committed by
GitHub
c1ff69e1 a43d6b1a

+558 -366
+33 -9
lib/types.nix
··· 227 227 }; 228 228 229 229 int = mkOptionType { 230 - name = "int"; 231 - description = "signed integer"; 232 - check = isInt; 233 - merge = mergeEqualOption; 234 - }; 230 + name = "int"; 231 + description = "signed integer"; 232 + check = isInt; 233 + merge = mergeEqualOption; 234 + }; 235 235 236 236 # Specialized subdomains of int 237 237 ints = ··· 292 292 port = ints.u16; 293 293 294 294 float = mkOptionType { 295 - name = "float"; 296 - description = "floating point number"; 297 - check = isFloat; 298 - merge = mergeEqualOption; 295 + name = "float"; 296 + description = "floating point number"; 297 + check = isFloat; 298 + merge = mergeEqualOption; 299 + }; 300 + 301 + number = either int float; 302 + 303 + numbers = let 304 + betweenDesc = lowest: highest: 305 + "${builtins.toJSON lowest} and ${builtins.toJSON highest} (both inclusive)"; 306 + in { 307 + between = lowest: highest: 308 + assert lib.assertMsg (lowest <= highest) 309 + "numbers.between: lowest must be smaller than highest"; 310 + addCheck number (x: x >= lowest && x <= highest) // { 311 + name = "numberBetween"; 312 + description = "integer or floating point number between ${betweenDesc lowest highest}"; 313 + }; 314 + 315 + nonnegative = addCheck number (x: x >= 0) // { 316 + name = "numberNonnegative"; 317 + description = "nonnegative integer or floating point number, meaning >=0"; 318 + }; 319 + positive = addCheck number (x: x > 0) // { 320 + name = "numberPositive"; 321 + description = "positive integer or floating point number, meaning >0"; 322 + }; 299 323 }; 300 324 301 325 str = mkOptionType {
+49 -24
nixos/doc/manual/development/option-types.section.md
··· 4 4 can take. Types are also responsible of how values are merged in case of 5 5 multiple value definitions. 6 6 7 - ## Basic Types {#sec-option-types-basic} 7 + ## Basic types {#sec-option-types-basic} 8 8 9 9 Basic types are the simplest available types in the module system. Basic 10 10 types include multiple string types that mainly differ in how definition ··· 24 24 25 25 : A top-level store path. This can be an attribute set pointing 26 26 to a store path, like a derivation or a flake input. 27 + 28 + `types.enum` *`l`* 29 + 30 + : One element of the list *`l`*, e.g. `types.enum [ "left" "right" ]`. 31 + Multiple definitions cannot be merged. 27 32 28 33 `types.anything` 29 34 ··· 100 95 problems. 101 96 ::: 102 97 103 - Integer-related types: 98 + ### Numeric types {#sec-option-types-numeric} 104 99 105 100 `types.int` 106 101 ··· 123 118 from 0 to 2^n−1 respectively (e.g. `0` 124 119 to `255` for 8 bits). 125 120 121 + `types.ints.between` *`lowest highest`* 122 + 123 + : An integer between *`lowest`* and *`highest`* (both inclusive). 124 + 126 125 `types.ints.positive` 127 126 128 127 : A positive integer (that is > 0). ··· 136 127 : A port number. This type is an alias to 137 128 `types.ints.u16`. 138 129 139 - String-related types: 130 + `types.float` 131 + 132 + : A floating point number. 133 + 134 + ::: {.warning} 135 + Converting a floating point number to a string with `toString` or `toJSON` 136 + may result in [precision loss](https://github.com/NixOS/nix/issues/5733). 137 + ::: 138 + 139 + `types.number` 140 + 141 + : Either a signed integer or a floating point number. No implicit conversion 142 + is done between the two types, and multiple equal definitions will only be 143 + merged if they have the same type. 144 + 145 + `types.numbers.between` *`lowest highest`* 146 + 147 + : An integer or floating point number between *`lowest`* and *`highest`* (both inclusive). 148 + 149 + `types.numbers.nonnegative` 150 + 151 + : A nonnegative integer or floating point number (that is >= 0). 152 + 153 + `types.numbers.positive` 154 + 155 + : A positive integer or floating point number (that is > 0). 156 + 157 + ### String types {#sec-option-types-string} 140 158 141 159 `types.str` 142 160 143 161 : A string. Multiple definitions cannot be merged. 162 + 163 + `types.separatedString` *`sep`* 164 + 165 + : A string. Multiple definitions are concatenated with *`sep`*, e.g. 166 + `types.separatedString "|"`. 144 167 145 168 `types.lines` 146 169 ··· 185 144 186 145 `types.envVar` 187 146 188 - : A string. Multiple definitions are concatenated with a collon `":"`. 147 + : A string. Multiple definitions are concatenated with a colon `":"`. 189 148 190 149 `types.strMatching` 191 150 ··· 193 152 definitions cannot be merged. The regular expression is processed 194 153 using `builtins.match`. 195 154 196 - ## Value Types {#sec-option-types-value} 155 + ## Submodule types {#sec-option-types-submodule} 197 156 198 - Value types are types that take a value parameter. 199 - 200 - `types.enum` *`l`* 201 - 202 - : One element of the list *`l`*, e.g. `types.enum [ "left" "right" ]`. 203 - Multiple definitions cannot be merged. 204 - 205 - `types.separatedString` *`sep`* 206 - 207 - : A string with a custom separator *`sep`*, e.g. 208 - `types.separatedString "|"`. 209 - 210 - `types.ints.between` *`lowest highest`* 211 - 212 - : An integer between *`lowest`* and *`highest`* (both inclusive). Useful 213 - for creating types like `types.port`. 157 + Submodules are detailed in [Submodule](#section-option-types-submodule). 214 158 215 159 `types.submodule` *`o`* 216 160 ··· 204 178 value. Submodules are used in composed types to create modular 205 179 options. This is equivalent to 206 180 `types.submoduleWith { modules = toList o; shorthandOnlyDefinesConfig = true; }`. 207 - Submodules are detailed in [Submodule](#section-option-types-submodule). 208 181 209 182 `types.submoduleWith` { *`modules`*, *`specialArgs`* ? {}, *`shorthandOnlyDefinesConfig`* ? false } 210 183 ··· 264 239 more convenient and discoverable than expecting the module user to 265 240 type-merge with the `attrsOf submodule` option. 266 241 267 - ## Composed Types {#sec-option-types-composed} 242 + ## Composed types {#sec-option-types-composed} 268 243 269 244 Composed types are types that take a type as parameter. `listOf 270 245 int` and `either int str` are examples of composed types. ··· 521 496 of strings, and `defs` the list of defined values as a list. It is 522 497 possible to override a type merge function for custom needs. 523 498 524 - ## Custom Types {#sec-option-types-custom} 499 + ## Custom types {#sec-option-types-custom} 525 500 526 501 Custom types can be created with the `mkOptionType` function. As type 527 502 creation includes some more complex topics such as submodule handling,
+248 -181
nixos/doc/manual/from_md/development/option-types.section.xml
··· 6 6 in case of multiple value definitions. 7 7 </para> 8 8 <section xml:id="sec-option-types-basic"> 9 - <title>Basic Types</title> 9 + <title>Basic types</title> 10 10 <para> 11 11 Basic types are the simplest available types in the module system. 12 12 Basic types include multiple string types that mainly differ in ··· 46 46 A top-level store path. This can be an attribute set 47 47 pointing to a store path, like a derivation or a flake 48 48 input. 49 + </para> 50 + </listitem> 51 + </varlistentry> 52 + <varlistentry> 53 + <term> 54 + <literal>types.enum</literal> 55 + <emphasis><literal>l</literal></emphasis> 56 + </term> 57 + <listitem> 58 + <para> 59 + One element of the list 60 + <emphasis><literal>l</literal></emphasis>, e.g. 61 + <literal>types.enum [ &quot;left&quot; &quot;right&quot; ]</literal>. 62 + Multiple definitions cannot be merged. 49 63 </para> 50 64 </listitem> 51 65 </varlistentry> ··· 164 150 </listitem> 165 151 </varlistentry> 166 152 </variablelist> 167 - <para> 168 - Integer-related types: 169 - </para> 170 - <variablelist> 171 - <varlistentry> 172 - <term> 173 - <literal>types.int</literal> 174 - </term> 175 - <listitem> 176 - <para> 177 - A signed integer. 178 - </para> 179 - </listitem> 180 - </varlistentry> 181 - <varlistentry> 182 - <term> 183 - <literal>types.ints.{s8, s16, s32}</literal> 184 - </term> 185 - <listitem> 186 - <para> 187 - Signed integers with a fixed length (8, 16 or 32 bits). They 188 - go from −2^n/2 to 2^n/2−1 respectively (e.g. 189 - <literal>−128</literal> to <literal>127</literal> for 8 190 - bits). 191 - </para> 192 - </listitem> 193 - </varlistentry> 194 - <varlistentry> 195 - <term> 196 - <literal>types.ints.unsigned</literal> 197 - </term> 198 - <listitem> 199 - <para> 200 - An unsigned integer (that is &gt;= 0). 201 - </para> 202 - </listitem> 203 - </varlistentry> 204 - <varlistentry> 205 - <term> 206 - <literal>types.ints.{u8, u16, u32}</literal> 207 - </term> 208 - <listitem> 209 - <para> 210 - Unsigned integers with a fixed length (8, 16 or 32 bits). 211 - They go from 0 to 2^n−1 respectively (e.g. 212 - <literal>0</literal> to <literal>255</literal> for 8 bits). 213 - </para> 214 - </listitem> 215 - </varlistentry> 216 - <varlistentry> 217 - <term> 218 - <literal>types.ints.positive</literal> 219 - </term> 220 - <listitem> 221 - <para> 222 - A positive integer (that is &gt; 0). 223 - </para> 224 - </listitem> 225 - </varlistentry> 226 - <varlistentry> 227 - <term> 228 - <literal>types.port</literal> 229 - </term> 230 - <listitem> 231 - <para> 232 - A port number. This type is an alias to 233 - <literal>types.ints.u16</literal>. 234 - </para> 235 - </listitem> 236 - </varlistentry> 237 - </variablelist> 238 - <para> 239 - String-related types: 240 - </para> 241 - <variablelist> 242 - <varlistentry> 243 - <term> 244 - <literal>types.str</literal> 245 - </term> 246 - <listitem> 247 - <para> 248 - A string. Multiple definitions cannot be merged. 249 - </para> 250 - </listitem> 251 - </varlistentry> 252 - <varlistentry> 253 - <term> 254 - <literal>types.lines</literal> 255 - </term> 256 - <listitem> 257 - <para> 258 - A string. Multiple definitions are concatenated with a new 259 - line <literal>&quot;\n&quot;</literal>. 260 - </para> 261 - </listitem> 262 - </varlistentry> 263 - <varlistentry> 264 - <term> 265 - <literal>types.commas</literal> 266 - </term> 267 - <listitem> 268 - <para> 269 - A string. Multiple definitions are concatenated with a comma 270 - <literal>&quot;,&quot;</literal>. 271 - </para> 272 - </listitem> 273 - </varlistentry> 274 - <varlistentry> 275 - <term> 276 - <literal>types.envVar</literal> 277 - </term> 278 - <listitem> 279 - <para> 280 - A string. Multiple definitions are concatenated with a 281 - collon <literal>&quot;:&quot;</literal>. 282 - </para> 283 - </listitem> 284 - </varlistentry> 285 - <varlistentry> 286 - <term> 287 - <literal>types.strMatching</literal> 288 - </term> 289 - <listitem> 290 - <para> 291 - A string matching a specific regular expression. Multiple 292 - definitions cannot be merged. The regular expression is 293 - processed using <literal>builtins.match</literal>. 294 - </para> 295 - </listitem> 296 - </varlistentry> 297 - </variablelist> 153 + <section xml:id="sec-option-types-numeric"> 154 + <title>Numeric types</title> 155 + <variablelist> 156 + <varlistentry> 157 + <term> 158 + <literal>types.int</literal> 159 + </term> 160 + <listitem> 161 + <para> 162 + A signed integer. 163 + </para> 164 + </listitem> 165 + </varlistentry> 166 + <varlistentry> 167 + <term> 168 + <literal>types.ints.{s8, s16, s32}</literal> 169 + </term> 170 + <listitem> 171 + <para> 172 + Signed integers with a fixed length (8, 16 or 32 bits). 173 + They go from −2^n/2 to 2^n/2−1 respectively (e.g. 174 + <literal>−128</literal> to <literal>127</literal> for 8 175 + bits). 176 + </para> 177 + </listitem> 178 + </varlistentry> 179 + <varlistentry> 180 + <term> 181 + <literal>types.ints.unsigned</literal> 182 + </term> 183 + <listitem> 184 + <para> 185 + An unsigned integer (that is &gt;= 0). 186 + </para> 187 + </listitem> 188 + </varlistentry> 189 + <varlistentry> 190 + <term> 191 + <literal>types.ints.{u8, u16, u32}</literal> 192 + </term> 193 + <listitem> 194 + <para> 195 + Unsigned integers with a fixed length (8, 16 or 32 bits). 196 + They go from 0 to 2^n−1 respectively (e.g. 197 + <literal>0</literal> to <literal>255</literal> for 8 198 + bits). 199 + </para> 200 + </listitem> 201 + </varlistentry> 202 + <varlistentry> 203 + <term> 204 + <literal>types.ints.between</literal> 205 + <emphasis><literal>lowest highest</literal></emphasis> 206 + </term> 207 + <listitem> 208 + <para> 209 + An integer between 210 + <emphasis><literal>lowest</literal></emphasis> and 211 + <emphasis><literal>highest</literal></emphasis> (both 212 + inclusive). 213 + </para> 214 + </listitem> 215 + </varlistentry> 216 + <varlistentry> 217 + <term> 218 + <literal>types.ints.positive</literal> 219 + </term> 220 + <listitem> 221 + <para> 222 + A positive integer (that is &gt; 0). 223 + </para> 224 + </listitem> 225 + </varlistentry> 226 + <varlistentry> 227 + <term> 228 + <literal>types.port</literal> 229 + </term> 230 + <listitem> 231 + <para> 232 + A port number. This type is an alias to 233 + <literal>types.ints.u16</literal>. 234 + </para> 235 + </listitem> 236 + </varlistentry> 237 + <varlistentry> 238 + <term> 239 + <literal>types.float</literal> 240 + </term> 241 + <listitem> 242 + <para> 243 + A floating point number. 244 + </para> 245 + <warning> 246 + <para> 247 + Converting a floating point number to a string with 248 + <literal>toString</literal> or <literal>toJSON</literal> 249 + may result in 250 + <link xlink:href="https://github.com/NixOS/nix/issues/5733">precision 251 + loss</link>. 252 + </para> 253 + </warning> 254 + </listitem> 255 + </varlistentry> 256 + <varlistentry> 257 + <term> 258 + <literal>types.number</literal> 259 + </term> 260 + <listitem> 261 + <para> 262 + Either a signed integer or a floating point number. No 263 + implicit conversion is done between the two types, and 264 + multiple equal definitions will only be merged if they 265 + have the same type. 266 + </para> 267 + </listitem> 268 + </varlistentry> 269 + <varlistentry> 270 + <term> 271 + <literal>types.numbers.between</literal> 272 + <emphasis><literal>lowest highest</literal></emphasis> 273 + </term> 274 + <listitem> 275 + <para> 276 + An integer or floating point number between 277 + <emphasis><literal>lowest</literal></emphasis> and 278 + <emphasis><literal>highest</literal></emphasis> (both 279 + inclusive). 280 + </para> 281 + </listitem> 282 + </varlistentry> 283 + <varlistentry> 284 + <term> 285 + <literal>types.numbers.nonnegative</literal> 286 + </term> 287 + <listitem> 288 + <para> 289 + A nonnegative integer or floating point number (that is 290 + &gt;= 0). 291 + </para> 292 + </listitem> 293 + </varlistentry> 294 + <varlistentry> 295 + <term> 296 + <literal>types.numbers.positive</literal> 297 + </term> 298 + <listitem> 299 + <para> 300 + A positive integer or floating point number (that is &gt; 301 + 0). 302 + </para> 303 + </listitem> 304 + </varlistentry> 305 + </variablelist> 306 + </section> 307 + <section xml:id="sec-option-types-string"> 308 + <title>String types</title> 309 + <variablelist> 310 + <varlistentry> 311 + <term> 312 + <literal>types.str</literal> 313 + </term> 314 + <listitem> 315 + <para> 316 + A string. Multiple definitions cannot be merged. 317 + </para> 318 + </listitem> 319 + </varlistentry> 320 + <varlistentry> 321 + <term> 322 + <literal>types.separatedString</literal> 323 + <emphasis><literal>sep</literal></emphasis> 324 + </term> 325 + <listitem> 326 + <para> 327 + A string. Multiple definitions are concatenated with 328 + <emphasis><literal>sep</literal></emphasis>, e.g. 329 + <literal>types.separatedString &quot;|&quot;</literal>. 330 + </para> 331 + </listitem> 332 + </varlistentry> 333 + <varlistentry> 334 + <term> 335 + <literal>types.lines</literal> 336 + </term> 337 + <listitem> 338 + <para> 339 + A string. Multiple definitions are concatenated with a new 340 + line <literal>&quot;\n&quot;</literal>. 341 + </para> 342 + </listitem> 343 + </varlistentry> 344 + <varlistentry> 345 + <term> 346 + <literal>types.commas</literal> 347 + </term> 348 + <listitem> 349 + <para> 350 + A string. Multiple definitions are concatenated with a 351 + comma <literal>&quot;,&quot;</literal>. 352 + </para> 353 + </listitem> 354 + </varlistentry> 355 + <varlistentry> 356 + <term> 357 + <literal>types.envVar</literal> 358 + </term> 359 + <listitem> 360 + <para> 361 + A string. Multiple definitions are concatenated with a 362 + colon <literal>&quot;:&quot;</literal>. 363 + </para> 364 + </listitem> 365 + </varlistentry> 366 + <varlistentry> 367 + <term> 368 + <literal>types.strMatching</literal> 369 + </term> 370 + <listitem> 371 + <para> 372 + A string matching a specific regular expression. Multiple 373 + definitions cannot be merged. The regular expression is 374 + processed using <literal>builtins.match</literal>. 375 + </para> 376 + </listitem> 377 + </varlistentry> 378 + </variablelist> 379 + </section> 298 380 </section> 299 - <section xml:id="sec-option-types-value"> 300 - <title>Value Types</title> 381 + <section xml:id="sec-option-types-submodule"> 382 + <title>Submodule types</title> 301 383 <para> 302 - Value types are types that take a value parameter. 384 + Submodules are detailed in 385 + <link linkend="section-option-types-submodule">Submodule</link>. 303 386 </para> 304 387 <variablelist> 305 - <varlistentry> 306 - <term> 307 - <literal>types.enum</literal> 308 - <emphasis><literal>l</literal></emphasis> 309 - </term> 310 - <listitem> 311 - <para> 312 - One element of the list 313 - <emphasis><literal>l</literal></emphasis>, e.g. 314 - <literal>types.enum [ &quot;left&quot; &quot;right&quot; ]</literal>. 315 - Multiple definitions cannot be merged. 316 - </para> 317 - </listitem> 318 - </varlistentry> 319 - <varlistentry> 320 - <term> 321 - <literal>types.separatedString</literal> 322 - <emphasis><literal>sep</literal></emphasis> 323 - </term> 324 - <listitem> 325 - <para> 326 - A string with a custom separator 327 - <emphasis><literal>sep</literal></emphasis>, e.g. 328 - <literal>types.separatedString &quot;|&quot;</literal>. 329 - </para> 330 - </listitem> 331 - </varlistentry> 332 - <varlistentry> 333 - <term> 334 - <literal>types.ints.between</literal> 335 - <emphasis><literal>lowest highest</literal></emphasis> 336 - </term> 337 - <listitem> 338 - <para> 339 - An integer between 340 - <emphasis><literal>lowest</literal></emphasis> and 341 - <emphasis><literal>highest</literal></emphasis> (both 342 - inclusive). Useful for creating types like 343 - <literal>types.port</literal>. 344 - </para> 345 - </listitem> 346 - </varlistentry> 347 388 <varlistentry> 348 389 <term> 349 390 <literal>types.submodule</literal> ··· 414 345 in composed types to create modular options. This is 415 346 equivalent to 416 347 <literal>types.submoduleWith { modules = toList o; shorthandOnlyDefinesConfig = true; }</literal>. 417 - Submodules are detailed in 418 - <link linkend="section-option-types-submodule">Submodule</link>. 419 348 </para> 420 349 </listitem> 421 350 </varlistentry> ··· 534 467 </variablelist> 535 468 </section> 536 469 <section xml:id="sec-option-types-composed"> 537 - <title>Composed Types</title> 470 + <title>Composed types</title> 538 471 <para> 539 472 Composed types are types that take a type as parameter. 540 473 <literal>listOf int</literal> and ··· 917 850 </variablelist> 918 851 </section> 919 852 <section xml:id="sec-option-types-custom"> 920 - <title>Custom Types</title> 853 + <title>Custom types</title> 921 854 <para> 922 855 Custom types can be created with the 923 856 <literal>mkOptionType</literal> function. As type creation
+1 -1
nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix
··· 26 26 27 27 # Provide networkmanager for easy wireless configuration. 28 28 networking.networkmanager.enable = true; 29 - networking.wireless.enable = mkForce false; 29 + networking.wireless.enable = mkImageMediaOverride false; 30 30 31 31 # KDE complains if power management is disabled (to be precise, if 32 32 # there is no power management backend such as upower).
+3 -3
nixos/modules/profiles/installation-device.nix
··· 22 22 config = { 23 23 24 24 # Enable in installer, even if the minimal profile disables it. 25 - documentation.enable = mkForce true; 25 + documentation.enable = mkImageMediaOverride true; 26 26 27 27 # Show the manual. 28 - documentation.nixos.enable = mkForce true; 28 + documentation.nixos.enable = mkImageMediaOverride true; 29 29 30 30 # Use less privileged nixos user 31 31 users.users.nixos = { ··· 41 41 # Allow passwordless sudo from nixos user 42 42 security.sudo = { 43 43 enable = mkDefault true; 44 - wheelNeedsPassword = mkForce false; 44 + wheelNeedsPassword = mkImageMediaOverride false; 45 45 }; 46 46 47 47 # Automatically log in at the virtual consoles.
+4 -2
nixos/modules/services/logging/vector.nix
··· 43 43 format = pkgs.formats.toml { }; 44 44 conf = format.generate "vector.toml" cfg.settings; 45 45 validateConfig = file: 46 - pkgs.runCommand "validate-vector-conf" { } '' 47 - ${pkgs.vector}/bin/vector validate --no-environment "${file}" 46 + pkgs.runCommand "validate-vector-conf" { 47 + nativeBuildInputs = [ pkgs.buildPackages.vector ]; 48 + } '' 49 + vector validate --no-environment "${file}" 48 50 ln -s "${file}" "$out" 49 51 ''; 50 52 in
+6 -6
nixos/modules/services/monitoring/grafana.nix
··· 628 628 }; 629 629 allowedDomains = mkOption { 630 630 description = lib.mdDoc '' 631 - To limit access to authenticated users who are members of one or more groups, 632 - set allowedGroups to a comma- or space-separated list of group object IDs. 633 - You can find object IDs for a specific group on the Azure portal. 631 + Limits access to users who belong to specific domains. 632 + Separate domains with space or comma. 634 633 ''; 635 634 default = ""; 636 635 type = types.str; 637 636 }; 638 637 allowedGroups = mkOption { 639 638 description = lib.mdDoc '' 640 - Limits access to users who belong to specific domains. 641 - Separate domains with space or comma. 642 - ''; 639 + To limit access to authenticated users who are members of one or more groups, 640 + set allowedGroups to a comma- or space-separated list of group object IDs. 641 + You can find object IDs for a specific group on the Azure portal. 642 + ''; 643 643 default = ""; 644 644 type = types.str; 645 645 };
+3 -2
nixos/modules/services/networking/syncthing.nix
··· 325 325 }; 326 326 327 327 type = mkOption { 328 - type = types.enum [ "sendreceive" "sendonly" "receiveonly" ]; 328 + type = types.enum [ "sendreceive" "sendonly" "receiveonly" "receiveencrypted" ]; 329 329 default = "sendreceive"; 330 330 description = lib.mdDoc '' 331 331 Whether to only send changes for this folder, only receive them 332 - or both. 332 + or both. `receiveencrypted` can be used for untrusted devices. See 333 + <https://docs.syncthing.net/users/untrusted.html> for reference. 333 334 ''; 334 335 }; 335 336
+5 -14
nixos/modules/services/x11/picom.nix
··· 11 11 addCheck (listOf x) (y: length y == 2) 12 12 // { description = "pair of ${x.description}"; }; 13 13 14 - floatBetween = a: b: with types; 15 - let 16 - # toString prints floats with hardcoded high precision 17 - floatToString = f: builtins.toJSON f; 18 - in 19 - addCheck float (x: x <= b && x >= a) 20 - // { description = "a floating point number in " + 21 - "range [${floatToString a}, ${floatToString b}]"; }; 22 - 23 14 mkDefaultAttrs = mapAttrs (n: v: mkDefault v); 24 15 25 16 # Basically a tinkered lib.generators.mkKeyValueDefault ··· 84 93 }; 85 94 86 95 fadeSteps = mkOption { 87 - type = pairOf (floatBetween 0.01 1); 96 + type = pairOf (types.numbers.between 0.01 1); 88 97 default = [ 0.028 0.03 ]; 89 98 example = [ 0.04 0.04 ]; 90 99 description = lib.mdDoc '' ··· 124 133 }; 125 134 126 135 shadowOpacity = mkOption { 127 - type = floatBetween 0 1; 136 + type = types.numbers.between 0 1; 128 137 default = 0.75; 129 138 example = 0.8; 130 139 description = lib.mdDoc '' ··· 147 156 }; 148 157 149 158 activeOpacity = mkOption { 150 - type = floatBetween 0 1; 159 + type = types.numbers.between 0 1; 151 160 default = 1.0; 152 161 example = 0.8; 153 162 description = lib.mdDoc '' ··· 156 165 }; 157 166 158 167 inactiveOpacity = mkOption { 159 - type = floatBetween 0.1 1; 168 + type = types.numbers.between 0.1 1; 160 169 default = 1.0; 161 170 example = 0.8; 162 171 description = lib.mdDoc '' ··· 165 174 }; 166 175 167 176 menuOpacity = mkOption { 168 - type = floatBetween 0 1; 177 + type = types.numbers.between 0 1; 169 178 default = 1.0; 170 179 example = 0.8; 171 180 description = lib.mdDoc ''
+1 -1
nixos/modules/system/boot/networkd.nix
··· 1411 1411 1412 1412 ipv6RoutePrefixes = mkOption { 1413 1413 default = []; 1414 - example = [ { Route = "fd00::/64"; LifetimeSec = 3600; } ]; 1414 + example = [ { ipv6RoutePrefixConfig = { Route = "fd00::/64"; LifetimeSec = 3600; }; } ]; 1415 1415 type = with types; listOf (submodule ipv6RoutePrefixOptions); 1416 1416 description = '' 1417 1417 A list of ipv6RoutePrefix sections to be added to the unit. See
+1 -30
pkgs/applications/audio/snapcast/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, cmake, pkg-config 2 2 , alsa-lib, asio, avahi, boost17x, flac, libogg, libvorbis, soxr 3 + , aixlog, popl 3 4 , pulseaudioSupport ? false, libpulseaudio 4 5 , nixosTests }: 5 6 6 7 assert pulseaudioSupport -> libpulseaudio != null; 7 - 8 - let 9 - 10 - dependency = { name, version, sha256 }: 11 - stdenv.mkDerivation { 12 - name = "${name}-${version}"; 13 - 14 - src = fetchFromGitHub { 15 - owner = "badaix"; 16 - repo = name; 17 - rev = "v${version}"; 18 - inherit sha256; 19 - }; 20 - 21 - nativeBuildInputs = [ cmake ]; 22 - }; 23 - 24 - aixlog = dependency { 25 - name = "aixlog"; 26 - version = "1.5.0"; 27 - sha256 = "09mnkrans9zmwfxsiwgkm0rba66c11kg5zby9x3rjic34gnmw6ay"; 28 - }; 29 - 30 - popl = dependency { 31 - name = "popl"; 32 - version = "1.2.0"; 33 - sha256 = "1z6z7fwffs3d9h56mc2m24d5gp4fc5bi8836zyfb276s6fjyfcai"; 34 - }; 35 - 36 - in 37 8 38 9 stdenv.mkDerivation rec { 39 10 pname = "snapcast";
+3 -3
pkgs/applications/misc/genact/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "genact"; 5 - version = "0.12.0"; 5 + version = "1.0.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "svenstaro"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-ouDaOs72vivJBZVwcJhv4YoPKQOEBctUTqubvrpoBtI="; 11 + sha256 = "sha256-sKFI7r0mwmzKiHy9HmskS10M5v/jZj/VeO4F9ZQl2g0="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-csubycZaBUHPp8XJ1C+nWw7DzVGVJm38/Dgw41qUMYQ="; 14 + cargoSha256 = "sha256-79IC51xdkelgsRJF+rz9UOTfrJ/HS6PbkyxySe0Qk4Q="; 15 15 16 16 meta = with lib; { 17 17 description = "A nonsense activity generator";
+3 -3
pkgs/applications/misc/gnome-frog/default.nix
··· 22 22 23 23 python3Packages.buildPythonApplication rec { 24 24 pname = "gnome-frog"; 25 - version = "1.1.3"; 25 + version = "1.2.0"; 26 26 27 27 src = fetchFromGitHub { 28 28 owner = "TenderOwl"; 29 29 repo = "Frog"; 30 - rev = version; 31 - sha256 = "sha256-yOjfiGJUU25zb/4WprPU59yDAMpttS3jREp1kB5mXUE="; 30 + rev = "refs/tags/${version}"; 31 + sha256 = "sha256-AJ6pFtTM4ViZ9dB41wzHoPSHDdmu+SOzD5fkoAiRLzQ="; 32 32 }; 33 33 34 34 format = "other";
+2 -2
pkgs/applications/networking/cluster/argocd-autopilot/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "argocd-autopilot"; 5 - version = "0.4.6"; 5 + version = "0.4.7"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "argoproj-labs"; 9 9 repo = "argocd-autopilot"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-qlxs0dafmGbJdsBgFJGpaEkcKVyOoSeiQknqzJwUs8A="; 11 + sha256 = "sha256-aC3U9Qeahji3xSuJWuMlf2TzKEqPDAOuB52A4Om/fRU="; 12 12 }; 13 13 14 14 vendorSha256 = "sha256-ujDtfDL1VWe4XjTHD+pXMmMFp0AiuZcE+CKRkMsiv9Q=";
+2 -2
pkgs/applications/networking/cluster/glooctl/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "glooctl"; 5 - version = "1.12.11"; 5 + version = "1.12.12"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "solo-io"; 9 9 repo = "gloo"; 10 10 rev = "v${version}"; 11 - hash = "sha256-vG1FSBHXaJBJk9dC61yZK1Vkr8PyQ7Q4TVZWRIsDY3E="; 11 + hash = "sha256-aQUN1T6AH1TRj2pPkNFoS5Fmo3NPmmiEXFZfFeXtN1w="; 12 12 }; 13 13 14 14 subPackages = [ "projects/gloo/cli/cmd" ];
+7 -5
pkgs/applications/science/biology/mafft/default.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { lib, stdenv, fetchFromGitLab }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "mafft"; 5 - version = "7.505"; 5 + version = "7.508"; 6 6 7 - src = fetchurl { 8 - url = "https://mafft.cbrc.jp/alignment/software/mafft-${version}-with-extensions-src.tgz"; 9 - sha256 = "sha256-9Up4Zw/NmWAjO8w7PdNZ85WnHAztRae+HP6uGZUM5v8="; 7 + src = fetchFromGitLab { 8 + owner = "sysimm"; 9 + repo = pname; 10 + rev = version; 11 + sha256 = "sha256-XQllmTgLntCBUFJzV2HL4f4oMilcUVTRgcfeZBdD5c0="; 10 12 }; 11 13 12 14 preBuild = ''
+2 -2
pkgs/applications/video/ani-cli/default.nix
··· 12 12 13 13 stdenvNoCC.mkDerivation rec { 14 14 pname = "ani-cli"; 15 - version = "3.3"; 15 + version = "3.4"; 16 16 17 17 src = fetchFromGitHub { 18 18 owner = "pystardust"; 19 19 repo = "ani-cli"; 20 20 rev = "v${version}"; 21 - sha256 = "sha256-khgErF/1DmqnXmTUvTYWuyUAos6aUghImgXp3NjOZEg="; 21 + sha256 = "sha256-Xb7MNL7YKbvyRR5ZppUfCYeYpjNAiJWNOjIFk5fUvpY="; 22 22 }; 23 23 24 24 nativeBuildInputs = [ makeWrapper ];
+3 -3
pkgs/data/misc/v2ray-geoip/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "v2ray-geoip"; 5 - version = "202208180100"; 5 + version = "202209080101"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "v2fly"; 9 9 repo = "geoip"; 10 - rev = "005c33be4dd95339596ddd5ce792e8f97dd168a3"; 11 - sha256 = "sha256-KvEmgtbelZOauE2WBTzJkwJkaUVW2x8ezgmTE+Gbwu8="; 10 + rev = "2e77e5d149f0a8f9c284333b206d0f017b0b66ef"; 11 + sha256 = "sha256-vkWRBSwLpCqZWMlfwOyPWn2MF+/lG+VXnSrDCSR+dak="; 12 12 }; 13 13 14 14 installPhase = ''
+36
pkgs/development/libraries/aixlog/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchFromGitHub 4 + }: 5 + 6 + stdenvNoCC.mkDerivation rec { 7 + pname = "aixlog"; 8 + version = "1.5.0"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "badaix"; 12 + repo = pname; 13 + rev = "v${version}"; 14 + hash = "sha256-Xhle7SODRZlHT3798mYIzBi1Mqjz8ai74/UnbVWetiY="; 15 + }; 16 + 17 + dontConfigure = true; 18 + dontBuild = true; 19 + dontFixup = true; 20 + 21 + installPhase = '' 22 + runHook preInstall 23 + 24 + install -Dm644 $src/include/aixlog.hpp $out/include/aixlog.hpp 25 + 26 + runHook postInstall 27 + ''; 28 + 29 + meta = with lib; { 30 + description = "Header-only C++ logging library"; 31 + homepage = "https://github.com/badaix/aixlog"; 32 + changelog = "https://github.com/badaix/aixlog/releases/tag/${src.rev}"; 33 + license = licenses.mit; 34 + maintainers = with maintainers; [ azahi ]; 35 + }; 36 + }
+2 -2
pkgs/development/libraries/cpp-utilities/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "cpp-utilities"; 10 - version = "5.18.0"; 10 + version = "5.19.0"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "Martchus"; 14 14 repo = pname; 15 15 rev = "v${version}"; 16 - sha256 = "sha256-i/ihEPJHyWzRywzpXhYpauA8lL51yjoiWod8Nc/6gV0="; 16 + sha256 = "sha256-sygt30x5S2n24ONMBRzNyLZcnl4hM4tUFpX/Yx6ZSMM="; 17 17 }; 18 18 19 19 nativeBuildInputs = [ cmake ];
+14 -1
pkgs/development/libraries/glog/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, gflags, perl }: 1 + { stdenv, lib, fetchFromGitHub, cmake, gflags, gtest, perl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "glog"; ··· 13 13 14 14 nativeBuildInputs = [ cmake ]; 15 15 16 + buildInputs = [ gtest ]; 17 + 16 18 propagatedBuildInputs = [ gflags ]; 17 19 18 20 cmakeFlags = [ ··· 26 24 # There are some non-thread safe tests that can fail 27 25 enableParallelChecking = false; 28 26 checkInputs = [ perl ]; 27 + 28 + GTEST_FILTER = 29 + let 30 + filteredTests = lib.optionals stdenv.hostPlatform.isMusl [ 31 + "Symbolize.SymbolizeStackConsumption" 32 + "Symbolize.SymbolizeWithDemanglingStackConsumption" 33 + ] ++ lib.optionals stdenv.hostPlatform.isStatic [ 34 + "LogBacktraceAt.DoesBacktraceAtRightLineWhenEnabled" 35 + ]; 36 + in 37 + lib.optionalString doCheck "-${builtins.concatStringsSep ":" filteredTests}"; 29 38 30 39 meta = with lib; { 31 40 homepage = "https://github.com/google/glog";
+36
pkgs/development/libraries/popl/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchFromGitHub 4 + }: 5 + 6 + stdenvNoCC.mkDerivation rec { 7 + pname = "popl"; 8 + version = "1.3.0"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "badaix"; 12 + repo = pname; 13 + rev = "v${version}"; 14 + hash = "sha256-AkqFRPK0tVdalL+iyMou0LIUkPkFnYYdSqwEbFbgzqI="; 15 + }; 16 + 17 + dontConfigure = true; 18 + dontBuild = true; 19 + dontFixup = true; 20 + 21 + installPhase = '' 22 + runHook preInstall 23 + 24 + install -Dm644 $src/include/popl.hpp $out/include/popl.hpp 25 + 26 + runHook postInstall 27 + ''; 28 + 29 + meta = with lib; { 30 + description = "Header-only C++ program options parser library"; 31 + homepage = "https://github.com/badaix/popl"; 32 + changelog = "https://github.com/badaix/popl/releases/tag/${src.rev}"; 33 + license = licenses.mit; 34 + maintainers = with maintainers; [ azahi ]; 35 + }; 36 + }
+2 -2
pkgs/development/libraries/rapidfuzz-cpp/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "rapidfuzz-cpp"; 10 - version = "1.2.0"; 10 + version = "1.3.0"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "maxbachmann"; 14 14 repo = "rapidfuzz-cpp"; 15 15 rev = "v${version}"; 16 - hash = "sha256-S92ookWpQ4OW53oYXPiCokUchI+47CILDR5RXxPJbmU="; 16 + hash = "sha256-LhMubYSq5EO4Pup+mVPQpcXwur/bPz+NZ1CcyqDt6lM="; 17 17 }; 18 18 19 19 patches = [
+2 -2
pkgs/development/python-modules/casbin/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "casbin"; 12 - version = "1.17.0"; 12 + version = "1.17.1"; 13 13 format = "setuptools"; 14 14 15 15 disabled = pythonOlder "3.6"; ··· 18 18 owner = pname; 19 19 repo = "pycasbin"; 20 20 rev = "refs/tags/v${version}"; 21 - hash = "sha256-fBMhrA4zL4XPjQ63AGc5jf585ZpHTBumPievDNfCw7o="; 21 + hash = "sha256-uh5XPhLoCnJtVnEDG+/oQvneEL1KLMWfAx+RXH/GCyE="; 22 22 }; 23 23 24 24 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/ignite/default.nix
··· 15 15 16 16 buildPythonPackage rec { 17 17 pname = "ignite"; 18 - version = "0.4.9"; 18 + version = "0.4.10"; 19 19 20 20 src = fetchFromGitHub { 21 21 owner = "pytorch"; 22 22 repo = pname; 23 23 rev = "refs/tags/v${version}"; 24 - sha256 = "sha256-KBEoMV9lwlEra4DiGDLgPb85+HrnK4Qiy3XYDa9hO3s="; 24 + sha256 = "sha256-mMiEVenDBNmeXMrDSZamUpnSm+4BQEgfK89zxIaFMio="; 25 25 }; 26 26 27 27 checkInputs = [ pytestCheckHook matplotlib mock pytest-xdist torchvision ];
+3 -3
pkgs/development/python-modules/itemloaders/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "itemloaders"; 14 - version = "1.0.5"; 14 + version = "1.0.6"; 15 15 format = "setuptools"; 16 16 17 17 disabled = pythonOlder "3.6"; ··· 19 19 src = fetchFromGitHub { 20 20 owner = "scrapy"; 21 21 repo = pname; 22 - rev = "v${version}"; 23 - hash = "sha256-ueq1Rsuae+wz4eFc1O7luBVR4XWGbefpDr124H6j56g="; 22 + rev = "refs/tags/v${version}"; 23 + hash = "sha256-ZzpWIJNDve6SvLDb+QUDVSXUfJabFuRwtyBeCUasUgY="; 24 24 }; 25 25 26 26 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/mne-python/default.nix
··· 19 19 20 20 buildPythonPackage rec { 21 21 pname = "mne-python"; 22 - version = "1.1.0"; 22 + version = "1.1.1"; 23 23 24 24 # PyPI dist insufficient to run tests 25 25 src = fetchFromGitHub { 26 26 owner = "mne-tools"; 27 27 repo = pname; 28 28 rev = "refs/tags/v${version}"; 29 - sha256 = "sha256-p4brwO6uERM2vJdkJ34GdeAKk07QeVEmQrZMPcDjI2I="; 29 + sha256 = "sha256-VM7sKcQeAeK20r4/jehhGlvBSHhYwA2SgsNL5Oa/Hug="; 30 30 }; 31 31 32 32 propagatedBuildInputs = [
+3 -3
pkgs/development/python-modules/pymetno/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "pymetno"; 12 - version = "0.9.0"; 12 + version = "0.10.0"; 13 13 format = "setuptools"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "Danielhiversen"; 17 17 repo = "PyMetno"; 18 - rev = version; 19 - sha256 = "sha256-2LNDFQObGqxrzswnqbmvCGLxEI0j+cIdv8o+RZM/7sM="; 18 + rev = "refs/tags/${version}"; 19 + sha256 = "sha256-Do9RQS4gE2BapQtKQsnMzJ8EJzzxkCBA5r3z1zHXIsA="; 20 20 }; 21 21 22 22 propagatedBuildInputs = [
+2 -2
pkgs/development/tools/bazelisk/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "bazelisk"; 5 - version = "1.13.2"; 5 + version = "1.14.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "bazelbuild"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-/6px3S03HJ5W03phGzJTzZ0ROcfA9eKXP+xfBrix1DM="; 11 + sha256 = "sha256-y3DVU2xHYZGUqf+kXhBDpTHACloqOXiMFY9bWU/QfOg="; 12 12 }; 13 13 14 14 vendorSha256 = "sha256-JJdFecRjPVmpYjDmz+ZBDmyT3Vj41An3BXvI2JzisIg=";
+3 -3
pkgs/development/tools/continuous-integration/buildkite-agent/default.nix
··· 3 3 nixosTests }: 4 4 buildGoModule rec { 5 5 pname = "buildkite-agent"; 6 - version = "3.38.0"; 6 + version = "3.39.0"; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "buildkite"; 10 10 repo = "agent"; 11 11 rev = "v${version}"; 12 - sha256 = "sha256-W93yvdyfk6niSZ/usiOp6Yb8tFgEuC3UmJI6zDEHsFY="; 12 + sha256 = "sha256-wEi14Iax155S2tr+Qxa3figXPDKKIdFcwDYv/nsLScQ="; 13 13 }; 14 14 15 - vendorSha256 = "sha256-n+n+Fank/L8mVCB7ulVXJkpJpr65ELirtBqScot2ANM="; 15 + vendorSha256 = "sha256-RD8BXwzrqHwgxdjpL++a9pIvzD9rfSTqguRVh+CbbnE="; 16 16 17 17 postPatch = '' 18 18 substituteInPlace bootstrap/shell/shell.go --replace /bin/bash ${bash}/bin/bash
+2 -2
pkgs/development/tools/ddosify/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "ddosify"; 5 - version = "0.8.2"; 5 + version = "0.8.3"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = pname; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-GvRooRsSLny+KZcro/rmagp4QAt4U52THiqTWqdvhK8="; 11 + sha256 = "sha256-Mv56NpzDBsqzHwUkqL6d828E3hVrNT9FXLL6IqWJYeQ="; 12 12 }; 13 13 14 14 vendorSha256 = "sha256-mq82KNa01gHvW+RUREra+ysaJ1YWIwX0v/uYMxmFN4M=";
+3 -3
pkgs/development/tools/gopls/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "gopls"; 5 - version = "0.9.4"; 5 + version = "0.9.5"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "golang"; 9 9 repo = "tools"; 10 10 rev = "gopls/v${version}"; 11 - sha256 = "sha256-4bhKNMhC8kLRpS5DR6tLF7MgDX4LDeSKoeXcPYC2ywE="; 11 + sha256 = "sha256-kDO7Sxz2pqZZBG2eGAWyh9UTAoYLzkAn86qh9LdepoU="; 12 12 }; 13 13 14 14 modRoot = "gopls"; 15 - vendorSha256 = "sha256-r7XM7VX0VzFlUqrtvaQaiUXXiD1Vz4C3hmxRMonORAw="; 15 + vendorSha256 = "sha256-ny+gD3ZXp6ZncWJtpW9fprYojQBkIUL+FEKp/7K5rrU="; 16 16 17 17 doCheck = false; 18 18
+22 -10
pkgs/development/tools/rust/cargo-generate/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, rustPlatform, Security, openssl, pkg-config, libiconv, curl }: 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , pkg-config 5 + , libgit2 6 + , openssl 7 + , stdenv 8 + , Security 9 + }: 2 10 3 11 rustPlatform.buildRustPackage rec { 4 12 pname = "cargo-generate"; 5 - version = "0.14.0"; 13 + version = "0.16.0"; 6 14 7 15 src = fetchFromGitHub { 8 - owner = "ashleygwilliams"; 16 + owner = "cargo-generate"; 9 17 repo = "cargo-generate"; 10 18 rev = "v${version}"; 11 - sha256 = "sha256-OYYGOB1NfNnOl8bd8KozgMCyW4Gb39LoFtD80DPzpdw="; 19 + sha256 = "sha256-qL5ZbLimpsi/7yuhubHF3/tAouE/5zCWRx4nZG841cU="; 12 20 }; 13 21 14 - cargoSha256 = "sha256-qmRKjPhPLpzVVuTHuoo0iTlX3BnT2Udo1kFXvA3zNQE="; 22 + # patch Cargo.toml to not vendor libgit2 and openssl 23 + cargoPatches = [ ./no-vendor.patch ]; 24 + 25 + cargoSha256 = "sha256-OB3rjJNxkUKRQPsWRvCniNPfYBgLFV4yXO7dnVvL7wo="; 15 26 16 27 nativeBuildInputs = [ pkg-config ]; 17 28 18 - buildInputs = [ openssl ] 19 - ++ lib.optionals stdenv.isDarwin [ Security libiconv curl ]; 29 + buildInputs = [ libgit2 openssl ] 30 + ++ lib.optionals stdenv.isDarwin [ Security ]; 20 31 21 32 preCheck = '' 22 33 export HOME=$(mktemp -d) USER=nixbld ··· 43 32 44 33 meta = with lib; { 45 34 description = "cargo, make me a project"; 46 - homepage = "https://github.com/ashleygwilliams/cargo-generate"; 47 - license = licenses.asl20; 48 - maintainers = [ maintainers.turbomack ]; 35 + homepage = "https://github.com/cargo-generate/cargo-generate"; 36 + changelog = "https://github.com/cargo-generate/cargo-generate/blob/v${version}/CHANGELOG.md"; 37 + license = with licenses; [ asl20 /* or */ mit ]; 38 + maintainers = with maintainers; [ figsoda turbomack ]; 49 39 }; 50 40 }
+11
pkgs/development/tools/rust/cargo-generate/no-vendor.patch
··· 1 + --- a/Cargo.toml 2 + +++ b/Cargo.toml 3 + @@ -10,7 +10,7 @@ include = ["src/**/*", "LICENSE-*", "*.md"] 4 + 5 + [dependencies] 6 + clap = { version = "3.2", features = ["derive", "std"], default-features = false } 7 + -git2 = { version = "0.14", features = ["ssh", "https", "vendored-libgit2", "vendored-openssl"], default-features = false } 8 + +git2 = { version = "0.14", features = ["ssh", "https"], default-features = false } 9 + console = "0.15" 10 + dialoguer = "0.10" 11 + dirs = "4.0"
+3 -3
pkgs/development/tools/rust/cargo-public-api/default.nix
··· 8 8 9 9 rustPlatform.buildRustPackage rec { 10 10 pname = "cargo-public-api"; 11 - version = "0.18.0"; 11 + version = "0.19.0"; 12 12 13 13 src = fetchCrate { 14 14 inherit pname version; 15 - sha256 = "sha256-h5eLJyrk5n2lSSeAT6YHDALay7CsN/xApl3j0s3pIjc="; 15 + sha256 = "sha256-gtqPt59jA4NhbaE9ij45oFEaAJ+l984lWEjloQtBSSE="; 16 16 }; 17 17 18 - cargoSha256 = "sha256-1zt3q04LPER+Kvp6EQHziWzYeckFYO9MmPRlHto2Juo="; 18 + cargoSha256 = "sha256-j0bsuu+A5oCf+0pFM4PAQ3oqq9POc5rrzt5UR0RDnAw="; 19 19 20 20 nativeBuildInputs = [ pkg-config ]; 21 21
+3 -3
pkgs/development/tools/yq-go/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "yq-go"; 5 - version = "4.27.3"; 5 + version = "4.27.5"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "mikefarah"; 9 9 repo = "yq"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-JEIKkiqVkzSXyZBAcZASHkn8MKoFZe52vKqrdJ4kX+I="; 11 + sha256 = "sha256-ZUrpmGNrLJuslcHXWERxNQBfUYutXaCSq13ajFy+D28="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-yv/qft4KpGi4xDfaQoylq1TanATUz5wd3a6RBlILG+s="; 14 + vendorSha256 = "sha256-4J/Qz5JN8UUdwa3/Io2/o4Y01eFK9zOcNAZkndzI178="; 15 15 16 16 nativeBuildInputs = [ installShellFiles ]; 17 17
+2 -2
pkgs/development/web/valum/default.nix
··· 3 3 4 4 stdenv.mkDerivation rec { 5 5 pname = "valum"; 6 - version = "0.3.17"; 6 + version = "0.3.18"; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "valum-framework"; 10 10 repo = "valum"; 11 11 rev = "v${version}"; 12 - sha256 = "sha256-GpzFtr6MueHGHA6BEc24oGSfjxyHxIlL52cq+0gmBAI="; 12 + sha256 = "sha256-baAv83YiX8HdBm/t++ktB7pmTVlt4aWZ5xnsAs/NrTI="; 13 13 }; 14 14 15 15 nativeBuildInputs = [ meson ninja pkg-config ];
+3 -3
pkgs/misc/tmux-plugins/default.nix
··· 523 523 tmux-fzf = mkTmuxPlugin { 524 524 pluginName = "tmux-fzf"; 525 525 rtpFilePath = "main.tmux"; 526 - version = "unstable-2021-10-20"; 526 + version = "unstable-2022-08-02"; 527 527 src = fetchFromGitHub { 528 528 owner = "sainnhe"; 529 529 repo = "tmux-fzf"; 530 - rev = "1801dd525b39154745ea668fb6916035023949e3"; 531 - sha256 = "e929Jqletmobp3WAR1tPU3pJuYTYVynxc5CvB80gig8="; 530 + rev = "3e261309ad367c3fe56c0ef14af00078684b1035"; 531 + sha256 = "13wlcq3f7944v74lcnfbmabcy2c0ca83ya21s3qn3j0lw3wqj6vj"; 532 532 }; 533 533 postInstall = '' 534 534 find $target -type f -print0 | xargs -0 sed -i -e 's|fzf |${pkgs.fzf}/bin/fzf |g'
+3 -3
pkgs/servers/monitoring/prometheus/nginx-exporter.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "nginx_exporter"; 5 - version = "0.10.0"; 5 + version = "0.11.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "nginxinc"; 9 9 repo = "nginx-prometheus-exporter"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-k9sbMIn5N3EJ7ZlfmD9pRV6lfywnKyFvpxC/pGGgNTA="; 11 + sha256 = "sha256-glKjScJoJnFEm7Z9LAVF51haeyHB3wQ946U8RzJXs3k="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-SaaHbn97cb/d8symyrBYLzK+5ukVLfGrFiRIz+tKPhw="; 14 + vendorSha256 = "sha256-YyMySHnrjBHm3hRNJDwWBs86Ih4S5DONYuwlQ3FBjkA="; 15 15 16 16 ldflags = [ "-s" "-w" "-X main.version=${version}" ]; 17 17
+3 -3
pkgs/servers/piping-server-rust/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "piping-server-rust"; 5 - version = "0.14.0"; 5 + version = "0.14.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "nwtgck"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-ON3/GaDwQ9DtApRZuYClZWzFhmiLi988jIBvl0DgYSM="; 11 + sha256 = "sha256-QgOrKAPLphvIMqcOrbYuo4ra65IV8dK5+6tyh+YyyP4="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-rc3VTJllDu4oIFcswCNUJejJHzC2PoJJV9EU5fOC7fQ="; 14 + cargoSha256 = "sha256-Nd+Frhospp6ERYFuxzEzKbkLAFqTv7Lp7MWwv09S+KA="; 15 15 16 16 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ]; 17 17
+2 -2
pkgs/servers/tailscale/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "tailscale"; 5 - version = "1.30.0"; 5 + version = "1.30.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "tailscale"; 9 9 repo = "tailscale"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-KruBCpJe6RhQYxNopj7ZZlZZy/UYtO1vQMvHxUgw0P8="; 11 + sha256 = "sha256-sR1DB8Hc/JkCFaoj9FRRJhTeUWWoGUee2kx0EreUbWE="; 12 12 }; 13 13 vendorSha256 = "sha256-+7Cr7wmt4PheHJRAlyKhRd6QRIZBqrbVtn5I94h8lLo="; 14 14
+2 -2
pkgs/servers/web-apps/netbox/default.nix
··· 17 17 in 18 18 py.pkgs.buildPythonApplication rec { 19 19 pname = "netbox"; 20 - version = "3.3.0"; 20 + version = "3.3.2"; 21 21 22 22 src = fetchFromGitHub { 23 23 owner = "netbox-community"; 24 24 repo = pname; 25 25 rev = "refs/tags/v${version}"; 26 - sha256 = "sha256-tdl3A5l8CDNdVpNMKHg31QJoQSdr1v0COTcX33Sh7nc="; 26 + sha256 = "sha256-G7d9CG7mxdtdShWOdbbcWTVD3qrTKjh7j3MX/cTJbPw="; 27 27 }; 28 28 29 29 format = "other";
+3 -3
pkgs/shells/carapace/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "carapace"; 5 - version = "0.8.10"; 5 + version = "0.15.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "rsteube"; 9 9 repo = "${pname}-bin"; 10 10 rev = "v${version}"; 11 - sha256 = "0j60fvrmjm4440gj9hib2ar386zxcblw7yifigsnchr7p3i2187n"; 11 + sha256 = "sha256-3ZWYEfssGq6fBoHrDsp6yvkB9TLF+heELEIbZ1TN2lI="; 12 12 }; 13 13 14 - vendorSha256 = "1s1sws79cyz1rl63wayzf7yhb04x29a4a1mkifqnl4cc2pv806jf"; 14 + vendorSha256 = "sha256-OrbVqCgsVX5b5knN6IdlJBWeGfg2fh09a2xe5+2EGEs="; 15 15 16 16 subPackages = [ "./cmd/carapace" ]; 17 17
+1 -1
pkgs/tools/X11/xprompt/default.nix
··· 36 36 in 37 37 optionalString (conf != null) "cp ${configFile} config.h"; 38 38 39 - makeFlags = [ "PREFIX=$(out)" ]; 39 + makeFlags = [ "CC:=$(CC)" "PREFIX=$(out)" ]; 40 40 41 41 passthru.updateScript = nix-update-script { 42 42 attrPath = pname;
+2 -2
pkgs/tools/admin/boulder/default.nix
··· 7 7 8 8 buildGoModule rec { 9 9 pname = "boulder"; 10 - version = "2022-08-29"; 10 + version = "2022-09-06"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "letsencrypt"; ··· 19 19 git rev-parse --short=8 HEAD 2>/dev/null >$out/COMMIT 20 20 find "$out" -name .git -print0 | xargs -0 rm -rf 21 21 ''; 22 - hash = "sha256-DiO7sOcTd8aOld4Pqd0D7yTPrRh/Mhg25I63Vb/gHhM="; 22 + hash = "sha256-BteHJAjIMPckbNIxgZCSSZV2iUc/yKVd0Px+S9ZwwUI="; 23 23 }; 24 24 25 25 vendorHash = null;
+2 -2
pkgs/tools/graphics/argyllcms/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "argyllcms"; 7 - version = "2.3.0"; 7 + version = "2.3.1"; 8 8 9 9 src = fetchzip { 10 10 # Kind of flacky URL, it was reaturning 406 and inconsistent binaries for a 11 11 # while on me. It might be good to find a mirror 12 12 url = "https://www.argyllcms.com/Argyll_V${version}_src.zip"; 13 - sha256 = "sha256-UNjCcqJgbRSox55OP3pLdKFHY0NPLHEq3nwqvxWre7U="; 13 + sha256 = "sha256-XWsubjdD1tg0o7x/aoAalemAChehWkwh4fkP2WRvhAw="; 14 14 }; 15 15 16 16 nativeBuildInputs = [ jam unzip ];
+3 -3
pkgs/tools/misc/hyperfine/default.nix
··· 8 8 9 9 rustPlatform.buildRustPackage rec { 10 10 pname = "hyperfine"; 11 - version = "1.14.0"; 11 + version = "1.15.0"; 12 12 13 13 src = fetchCrate { 14 14 inherit pname version; 15 - sha256 = "sha256-3DDgh/0iD1LJEPjicLtHcs9PMso/Wv+3vlkWfdJlpIM="; 15 + sha256 = "sha256-JJ4sEwe2fXOGlofJ9SkXEllMCMhn7MSJ+H3aAF0F0zk="; 16 16 }; 17 17 18 - cargoSha256 = "sha256-VkB6KJUi5PACpjrK/OJ5tmroJJVnDxhZAQzSWkrtuCU="; 18 + cargoSha256 = "sha256-3xOh51rUnQcUfQ+asurbfNYTb5dWQO5YY/AbGRV+26w="; 19 19 20 20 nativeBuildInputs = [ installShellFiles ]; 21 21 buildInputs = lib.optional stdenv.isDarwin Security;
+5 -4
pkgs/top-level/all-packages.nix
··· 1212 1212 1213 1213 airwindows-lv2 = callPackage ../applications/audio/airwindows-lv2 { }; 1214 1214 1215 + aixlog = callPackage ../development/libraries/aixlog { }; 1216 + 1215 1217 aj-snapshot = callPackage ../applications/audio/aj-snapshot { }; 1216 1218 1217 1219 ajour = callPackage ../tools/games/ajour { ··· 1909 1907 notion-app-enhanced = callPackage ../applications/office/notion-app-enhanced { }; 1910 1908 1911 1909 pikchr = callPackage ../tools/graphics/pikchr { }; 1910 + 1911 + popl = callPackage ../development/libraries/popl { }; 1912 1912 1913 1913 popsicle = callPackage ../tools/misc/popsicle { }; 1914 1914 ··· 23539 23535 }; 23540 23536 prometheus-nextcloud-exporter = callPackage ../servers/monitoring/prometheus/nextcloud-exporter.nix { }; 23541 23537 prometheus-nginx-exporter = callPackage ../servers/monitoring/prometheus/nginx-exporter.nix { }; 23542 - prometheus-nginxlog-exporter = callPackage ../servers/monitoring/prometheus/nginxlog-exporter.nix { 23543 - # pinned due to build failure or vendoring problems. When unpinning double check with: nix-build -A $name.go-modules --rebuild 23544 - buildGoModule = buildGo117Module; 23545 - }; 23538 + prometheus-nginxlog-exporter = callPackage ../servers/monitoring/prometheus/nginxlog-exporter.nix { }; 23546 23539 prometheus-node-exporter = callPackage ../servers/monitoring/prometheus/node-exporter.nix { 23547 23540 inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit; 23548 23541 };