Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge staging-next into staging

authored by github-actions[bot] and committed by GitHub dfdd2255 473eaafe

+1566 -991
+1
.github/workflows/check-nix-format.yml
··· 37 37 pkgs/development/cuda-modules 38 38 pkgs/test/cuda 39 39 pkgs/top-level/cuda-packages.nix 40 + NIX_FMT_PATHS_VSCODE_EXTS: pkgs/applications/editors/vscode/extensions 40 41 # Iterate over all environment variables beginning with NIX_FMT_PATHS_. 41 42 run: | 42 43 for env_var in "${!NIX_FMT_PATHS_@}"; do
+1 -1
lib/systems/doubles.nix
··· 13 13 "x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin" 14 14 15 15 # FreeBSD 16 - "i686-freebsd13" "x86_64-freebsd13" 16 + "i686-freebsd" "x86_64-freebsd" 17 17 18 18 # Genode 19 19 "aarch64-genode" "i686-genode" "x86_64-genode"
+1 -1
lib/systems/examples.nix
··· 328 328 # BSDs 329 329 330 330 x86_64-freebsd = { 331 - config = "x86_64-unknown-freebsd13"; 331 + config = "x86_64-unknown-freebsd"; 332 332 useLLVM = true; 333 333 }; 334 334
+1 -5
lib/systems/parse.nix
··· 326 326 # the normalized name for macOS. 327 327 macos = { execFormat = macho; families = { inherit darwin; }; name = "darwin"; }; 328 328 ios = { execFormat = macho; families = { inherit darwin; }; }; 329 - # A tricky thing about FreeBSD is that there is no stable ABI across 330 - # versions. That means that putting in the version as part of the 331 - # config string is paramount. 332 - freebsd12 = { execFormat = elf; families = { inherit bsd; }; name = "freebsd"; version = 12; }; 333 - freebsd13 = { execFormat = elf; families = { inherit bsd; }; name = "freebsd"; version = 13; }; 329 + freebsd = { execFormat = elf; families = { inherit bsd; }; name = "freebsd"; }; 334 330 linux = { execFormat = elf; families = { }; }; 335 331 netbsd = { execFormat = elf; families = { inherit bsd; }; }; 336 332 none = { execFormat = unknown; families = { }; };
+3 -3
lib/tests/systems.nix
··· 40 40 41 41 testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv6l-netbsd" "armv6l-none" "armv7a-linux" "armv7a-netbsd" "armv7l-linux" "armv7l-netbsd" "arm-none" "armv7a-darwin" ]; 42 42 testarmv7 = mseteq armv7 [ "armv7a-darwin" "armv7a-linux" "armv7l-linux" "armv7a-netbsd" "armv7l-netbsd" ]; 43 - testi686 = mseteq i686 [ "i686-linux" "i686-freebsd13" "i686-genode" "i686-netbsd" "i686-openbsd" "i686-cygwin" "i686-windows" "i686-none" "i686-darwin" ]; 43 + testi686 = mseteq i686 [ "i686-linux" "i686-freebsd" "i686-genode" "i686-netbsd" "i686-openbsd" "i686-cygwin" "i686-windows" "i686-none" "i686-darwin" ]; 44 44 testmips = mseteq mips [ "mips-none" "mips64-none" "mips-linux" "mips64-linux" "mips64el-linux" "mipsel-linux" "mipsel-netbsd" ]; 45 45 testmmix = mseteq mmix [ "mmix-mmixware" ]; 46 46 testpower = mseteq power [ "powerpc-netbsd" "powerpc-none" "powerpc64-linux" "powerpc64le-linux" "powerpcle-none" ]; ··· 48 48 testriscv32 = mseteq riscv32 [ "riscv32-linux" "riscv32-netbsd" "riscv32-none" ]; 49 49 testriscv64 = mseteq riscv64 [ "riscv64-linux" "riscv64-netbsd" "riscv64-none" ]; 50 50 tests390x = mseteq s390x [ "s390x-linux" "s390x-none" ]; 51 - testx86_64 = mseteq x86_64 [ "x86_64-linux" "x86_64-darwin" "x86_64-freebsd13" "x86_64-genode" "x86_64-redox" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin" "x86_64-solaris" "x86_64-windows" "x86_64-none" ]; 51 + testx86_64 = mseteq x86_64 [ "x86_64-linux" "x86_64-darwin" "x86_64-freebsd" "x86_64-genode" "x86_64-redox" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin" "x86_64-solaris" "x86_64-windows" "x86_64-none" ]; 52 52 53 53 testcygwin = mseteq cygwin [ "i686-cygwin" "x86_64-cygwin" ]; 54 54 testdarwin = mseteq darwin [ "x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin" ]; 55 - testfreebsd = mseteq freebsd [ "i686-freebsd13" "x86_64-freebsd13" ]; 55 + testfreebsd = mseteq freebsd [ "i686-freebsd" "x86_64-freebsd" ]; 56 56 testgenode = mseteq genode [ "aarch64-genode" "i686-genode" "x86_64-genode" ]; 57 57 testredox = mseteq redox [ "x86_64-redox" ]; 58 58 testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */);
+6 -6
maintainers/maintainer-list.nix
··· 2071 2071 githubId = 135230; 2072 2072 name = "Aycan iRiCAN"; 2073 2073 }; 2074 - ayes-web = { 2075 - email = "ayes2022@protonmail.com"; 2076 - github = "ayes-web"; 2077 - githubId = 52951851; 2078 - name = "ayes-web"; 2079 - }; 2080 2074 aynish = { 2081 2075 github = "Chickensoupwithrice"; 2082 2076 githubId = 22575913; ··· 2263 2257 github = "basvandijk"; 2264 2258 githubId = 576355; 2265 2259 name = "Bas van Dijk"; 2260 + }; 2261 + BatteredBunny = { 2262 + email = "ayes2022@protonmail.com"; 2263 + github = "BatteredBunny"; 2264 + githubId = 52951851; 2265 + name = "BatteredBunny"; 2266 2266 }; 2267 2267 BattleCh1cken = { 2268 2268 email = "BattleCh1cken@larkov.de";
+25 -25
nixos/doc/manual/release-notes/rl-2405.section.md
··· 10 10 11 11 - `cryptsetup` has been upgraded from 2.6.1 to 2.7.0. Cryptsetup is a critical component enabling LUKS-based (but not only) full disk encryption. 12 12 Take the time to review [the release notes](https://gitlab.com/cryptsetup/cryptsetup/-/raw/v2.7.0/docs/v2.7.0-ReleaseNotes). 13 - One of the highlight is that it is now possible to use hardware OPAL-based encryption of your disk with `cryptsetup`, it has a lot of caveats, see the above notes for the full details. 13 + One of the highlights is that it is now possible to use hardware OPAL-based encryption of your disk with `cryptsetup`. It has a lot of caveats, see the above notes for the full details. 14 14 15 15 - `screen`'s module has been cleaned, and will now require you to set `programs.screen.enable` in order to populate `screenrc` and add the program to the environment. 16 16 17 17 - `linuxPackages_testing_bcachefs` is now fully deprecated by `linuxPackages_latest`, and is therefore no longer available. 18 18 19 - - The default kernel package has been updated from 6.1 to 6.6. All supported kernels remain available. 19 + - (TODO not sure what path to use here) The default kernel package has been updated from 6.1 to 6.6. All supported kernels remain available. 20 20 21 21 - NixOS now installs a stub ELF loader that prints an informative error message when users attempt to run binaries not made for NixOS. 22 22 - This can be disabled through the `environment.stub-ld.enable` option. ··· 34 34 - `nixVersions.git` which tracks the latest Nix master and is roughly updated once a week. This is intended to enable people to easily test unreleased changes of Nix to catch regressions earlier. 35 35 - `nixVersions.latest` which points to the latest Nix version packaged in nixpkgs. 36 36 37 - - Julia environments can now be built with arbitrary packages from the ecosystem using the `.withPackages` function. For example: `julia.withPackages ["Plots"]`. 37 + - `julia` environments can now be built with arbitrary packages from the ecosystem using the `.withPackages` function. For example: `julia.withPackages ["Plots"]`. 38 38 39 - - The PipeWire and WirePlumber modules have removed support for using 39 + - `pipewire` and `wireplumber` modules have removed support for using 40 40 `environment.etc."pipewire/..."` and `environment.etc."wireplumber/..."`. 41 41 Use `services.pipewire.extraConfig` or `services.pipewire.configPackages` for PipeWire and 42 42 `services.pipewire.wireplumber.configPackages` for WirePlumber instead." ··· 45 45 Refer to upstream [upgrade instructions](https://goteleport.com/docs/management/operations/upgrading/) 46 46 and release notes for [v15](https://goteleport.com/docs/changelog/#1500-013124). 47 47 48 - - A new option `systemd.sysusers.enable` was added. If enabled, users and 48 + - `systemd.sysusers.enable` option was added. If enabled, users and 49 49 groups are created with systemd-sysusers instead of with a custom perl script. 50 50 51 51 - `virtualisation.docker.enableNvidia` and `virtualisation.podman.enableNvidia` options are deprecated. `hardware.nvidia-container-toolkit.enable` should be used instead. This option will expose GPUs on containers with the `--device` CLI option. This is supported by Docker 25, Podman 3.2.0 and Singularity 4. Any container runtime that supports the CDI specification will take advantage of this feature. ··· 69 69 } 70 70 ``` 71 71 72 - - The initial Incus LTS release (v6.0.x) is now available through `virtualisation.incus` as the default. Users who wish to continue using the non-LTS release will need to set `virtualisation.incus.package = pkgs.incus`. Stable release users are encouraged to stay on the LTS release as non-LTS releases will by default not be backported. 72 + - `virtialisation.incus` now defaults to the newly-added `incus-lts` release (v6.0.x). Users who wish to continue using the non-LTS release will need to set `virtualisation.incus.package = pkgs.incus`. Stable release users are encouraged to stay on the LTS release as non-LTS releases will by default not be backported. 73 73 74 - - Canonical LXD has been upgraded to v5.21.x, an LTS release. The LTS release is now the only supported LXD release. Users are encouraged to [migrate to Incus](https://linuxcontainers.org/incus/docs/main/howto/server_migrate_lxd/) for better support on NixOS. 74 + - Canonical `lxd` has been upgraded to v5.21.x, an LTS release. The LTS release is now the only supported LXD release. Users are encouraged to [migrate to Incus](https://linuxcontainers.org/incus/docs/main/howto/server_migrate_lxd/) for better support on NixOS. 75 75 76 - - lua interpreters default LUA_PATH and LUA_CPATH are not overriden by nixpkgs 76 + - `lua` interpreters default LUA_PATH and LUA_CPATH are not overriden by nixpkgs 77 77 anymore, we patch LUA_ROOT instead which is more respectful to upstream. 78 78 79 - - Plasma 6 is now available and can be installed with `services.xserver.desktopManager.plasma6.enable = true;`. Plasma 5 will likely be deprecated in the next release (24.11). Note that Plasma 6 runs as Wayland by default, and the X11 session needs to be explicitly selected if necessary. 79 + - `plasma6` is now available and can be installed with `services.xserver.desktopManager.plasma6.enable = true;`. Plasma 5 will likely be deprecated in the next release (24.11). Note that Plasma 6 runs as Wayland by default, and the X11 session needs to be explicitly selected if necessary. 80 80 81 - - The desktop mode of Lomiri (formerly known as Unity8), using Mir 2.x to function as a Wayland compositor, is now available and can be installed with `services.desktopManager.lomiri.enable = true`. Note that some core applications, services and indicators have yet to be packaged, and some functions may remain incomplete, but the base experience should be there. 81 + - `lomiri` (formerly known as Unity8) desktop mode, using Mir 2.x to function as a Wayland compositor, is now available and can be installed with `services.desktopManager.lomiri.enable = true`. Note that some core applications, services and indicators have yet to be packaged, and some functions may remain incomplete, but the base experience should be there. 82 82 83 83 ## New Services {#sec-release-24.05-new-services} 84 84 ··· 100 100 101 101 - [ryzen-smu](https://gitlab.com/leogx9r/ryzen_smu), Linux kernel driver to expose the SMU (System Management Unit) for certain AMD Ryzen Processors. Includes the userspace program `monitor_cpu`. Available at [hardward.cpu.amd.ryzen-smu](#opt-hardware.cpu.amd.ryzen-smu.enable) 102 102 103 - - systemd's gateway, upload, and remote services, which provides ways of sending journals across the network. Enable using [services.journald.gateway](#opt-services.journald.gateway.enable), [services.journald.upload](#opt-services.journald.upload.enable), and [services.journald.remote](#opt-services.journald.remote.enable). 103 + - `systemd`'s `gateway`, `upload`, and `remote` services, which provide ways of sending journals across the network. Enable using [services.journald.gateway](#opt-services.journald.gateway.enable), [services.journald.upload](#opt-services.journald.upload.enable), and [services.journald.remote](#opt-services.journald.remote.enable). 104 104 105 105 - [GNS3](https://www.gns3.com/), a network software emulator. Available as [services.gns3-server](#opt-services.gns3-server.enable). 106 106 ··· 127 127 - [db-rest](https://github.com/derhuerst/db-rest), a wrapper around Deutsche Bahn's internal API for public transport data. Available as [services.db-rest](#opt-services.db-rest.enable). 128 128 129 129 - [Anki Sync Server](https://docs.ankiweb.net/sync-server.html), the official sync server built into recent versions of Anki. Available as [services.anki-sync-server](#opt-services.anki-sync-server.enable). 130 - The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been marked deprecated and will be dropped after 24.05 due to lack of maintenance of the anki-sync-server softwares. 130 + The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been marked deprecated and will be dropped after 24.05 due to lack of maintenance of the anki-sync-server software. 131 131 132 132 - [mautrix-meta](https://github.com/mautrix/meta), a Matrix <-> Facebook and Matrix <-> Instagram hybrid puppeting/relaybot bridge. Available as services.mautrix-meta 133 133 ··· 139 139 140 140 - [Suwayomi Server](https://github.com/Suwayomi/Suwayomi-Server), a free and open source manga reader server that runs extensions built for [Tachiyomi](https://tachiyomi.org). Available as [services.suwayomi-server](#opt-services.suwayomi-server.enable). 141 141 142 - - A self-hosted management server for the [Netbird](https://netbird.io). Available as [services.netbird.server](#opt-services.netbird.server.enable). 142 + - [Netbird](https://netbird.io), an open-source VPN management platform, now has a self-hosted management server. Available as [services.netbird.server](#opt-services.netbird.server.enable). 143 143 144 144 - [ping_exporter](https://github.com/czerwonk/ping_exporter), a Prometheus exporter for ICMP echo requests. Available as [services.prometheus.exporters.ping](#opt-services.prometheus.exporters.ping.enable). 145 145 ··· 151 151 152 152 - [Monado](https://monado.freedesktop.org/), an open source XR runtime. Available as [services.monado](#opt-services.monado.enable). 153 153 154 - - [Pretix](https://pretix.eu/about/en/), an open source ticketing software for events. Available as [services.pretix]($opt-services-pretix.enable). 154 + - [Pretix](https://pretix.eu/about/en/), an open source ticketing software for events. Available as [services.pretix](#opt-services.pretix.enable). 155 155 156 - - [microsocks](https://github.com/rofl0r/microsocks), a tiny, portable SOCKS5 server with very moderate resource usage. Available as [services.microsocks]($opt-services-microsocks.enable). 156 + - [microsocks](https://github.com/rofl0r/microsocks), a tiny, portable SOCKS5 server with very moderate resource usage. Available as [services.microsocks](#opt-services.microsocks.enable). 157 157 158 158 - [inadyn](https://github.com/troglobit/inadyn), a Dynamic DNS client with built-in support for multiple providers. Available as [services.inadyn](#opt-services.inadyn.enable). 159 159 ··· 163 163 164 164 - [armagetronad](https://wiki.armagetronad.org), a mid-2000s 3D lightcycle game widely played at iD Tech Camps. You can define multiple servers using `services.armagetronad.<server>.enable`. 165 165 166 - - [wyoming-satellite](https://github.com/rhasspy/wyoming-satellite), a voice assistant satellite for Home Assistant using the Wyoming protocol. Available as [services.wyoming.satellite]($opt-services.wyoming.satellite.enable). 166 + - [wyoming-satellite](https://github.com/rhasspy/wyoming-satellite), a voice assistant satellite for Home Assistant using the Wyoming protocol. Available as [services.wyoming.satellite](#opt-services.wyoming.satellite.enable). 167 167 168 168 - [TuxClocker](https://github.com/Lurkki14/tuxclocker), a hardware control and monitoring program. Available as [programs.tuxclocker](#opt-programs.tuxclocker.enable). 169 169 170 - - binfmt option for AppImage-run to support running [AppImage](https://appimage.org/)'s seamlessly on NixOS.. Available as [programs.appimage.binfmt](#opt-programs.appimage.binfmt). 170 + - [AppImage](https://appimage.org/), a tool to package desktop applications, now has a `binfmt` option to support running AppImages seamlessly on NixOS. Available as [programs.appimage.binfmt](#opt-programs.appimage.binfmt). 171 171 172 172 - [nh](https://github.com/viperML/nh), yet another Nix CLI helper. Available as [programs.nh](#opt-programs.nh.enable). 173 173 174 174 - [ALVR](https://github.com/alvr-org/alvr), a VR desktop streamer. Available as [programs.alvr](#opt-programs.alvr.enable) 175 175 176 - - [RustDesk](https://rustdesk.com), a full-featured open source remote control alternative for self-hosting and security with minimal configuration. Alternative to TeamViewer. 176 + - [RustDesk](https://rustdesk.com), a full-featured open source remote control alternative for self-hosting and security with minimal configuration. Alternative to TeamViewer. Available as [services.rustdesk-server](#opt-services.rustdesk-server.enable). 177 177 178 - - [Scrutiny](https://github.com/AnalogJ/scrutiny), a S.M.A.R.T monitoring tool for hard disks with a web frontend. 178 + - [Scrutiny](https://github.com/AnalogJ/scrutiny), a S.M.A.R.T monitoring tool for hard disks with a web frontend. Available as [services.scrutiny](#opt-services.scrutiny.enable). 179 179 180 - - [davis](https://github.com/tchapi/davis), a simple CardDav and CalDav server inspired by Baïkal. Available as [services.davis]($opt-services-davis.enable). 180 + - [davis](https://github.com/tchapi/davis), a simple CardDav and CalDav server inspired by Baïkal. Available as [services.davis](#opt-services.davis.enable). 181 181 182 182 - [Firefly-iii](https://www.firefly-iii.org), a free and open source personal finance manager. Available as [services.firefly-iii](#opt-services.firefly-iii.enable) 183 183 ··· 208 208 defaulting to `/etc/ssh/authorized_keys.d/%u`. 209 209 ::: {.warning} 210 210 Users of {manpage}`pam_ssh_agent_auth(8)` must take care that the pubkeys they use (for instance with `sudo`) 211 - are listed in [`sshAgentAuth.authorizedKeysFiles`].. 211 + are listed in [`sshAgentAuth.authorizedKeysFiles`]. 212 212 ::: 213 213 ::: {.note} 214 214 Previously, all `services.openssh.authorizedKeysFiles` were trusted, including `~/.ssh/authorized_keys`, ··· 226 226 227 227 - `cudaPackages.autoFixElfFiles` has been deprecated for `pkgs.autoFixElfFiles`. Functionality has not changed, but the setuphook has been renamed and moved to the top-level package scope. 228 228 229 - - `appimageTools.wrapAppImage` now create the binary at `$out/bin/${pname}` rather than `$out/bin/${pname}-${version}`, which will break downstream workarounds. 229 + - `appimageTools.wrapAppImage` now creates the binary at `$out/bin/${pname}` rather than `$out/bin/${pname}-${version}`, which will break downstream workarounds. 230 230 231 231 - `pdns` was updated to version [v4.9.x](https://doc.powerdns.com/authoritative/changelog/4.9.html), which introduces breaking changes. Check out the [Upgrade Notes](https://doc.powerdns.com/authoritative/upgrading.html#to-4-9-0) for details. 232 232 ··· 246 246 The list in `nixos/modules/virtualisation/amazon-ec2-amis.nix` will stop 247 247 being updated and will be removed in the future. 248 248 249 - - The option `services.postgresql.ensureUsers._.ensurePermissions` has been removed as it's 249 + - The option `services.postgresql.ensureUsers._.ensurePermissions` has been removed as it is 250 250 not declarative and is broken with newer postgresql versions. Consider using 251 251 [](#opt-services.postgresql.ensureUsers._.ensureDBOwnership) 252 - instead or a tool that's more suited for managing the data inside a postgresql database. 252 + instead or a tool that is more suited for managing the data inside a postgresql database. 253 253 254 254 - `idris2` was updated to v0.7.0. This version introduces breaking changes. Check out the [changelog](https://github.com/idris-lang/Idris2/blob/v0.7.0/CHANGELOG.md#v070) for details. 255 255 256 256 - `nvtop` family of packages was reorganized into nested attrset. `nvtop` has been renamed to `nvtopPackages.full`, and all `nvtop-{amd,nvidia,intel,msm}` packages are now named as `nvtopPackages.{amd,nvidia,intel,msm}` 257 257 258 - - `neo4j` has been updated to version 5, you may want to read the [release notes for Neo4j 5](https://neo4j.com/release-notes/database/neo4j-5/) 258 + - `neo4j` has been updated to version 5. You may want to read the [release notes for Neo4j 5](https://neo4j.com/release-notes/database/neo4j-5/). 259 259 260 260 - `services.neo4j.allowUpgrade` was removed and no longer has any effect. Neo4j 5 supports automatic rolling upgrades. 261 261
+54 -10
nixos/modules/hardware/openrazer.nix
··· 19 19 [Startup] 20 20 sync_effects_enabled = ${toPyBoolStr cfg.syncEffectsEnabled} 21 21 devices_off_on_screensaver = ${toPyBoolStr cfg.devicesOffOnScreensaver} 22 - mouse_battery_notifier = ${toPyBoolStr cfg.mouseBatteryNotifier} 22 + battery_notifier = ${toPyBoolStr (cfg.mouseBatteryNotifier || cfg.batteryNotifier.enable)} 23 + battery_notifier_freq = ${builtins.toString cfg.batteryNotifier.frequency} 24 + battery_notifier_percent = ${builtins.toString cfg.batteryNotifier.percentage} 23 25 24 26 [Statistics] 25 27 key_statistics = ${toPyBoolStr cfg.keyStatistics} ··· 86 88 ''; 87 89 }; 88 90 91 + batteryNotifier = mkOption { 92 + description = '' 93 + Settings for device battery notifications. 94 + ''; 95 + default = {}; 96 + type = types.submodule { 97 + options = { 98 + enable = mkOption { 99 + type = types.bool; 100 + default = true; 101 + description = '' 102 + Mouse battery notifier. 103 + ''; 104 + }; 105 + frequency = mkOption { 106 + type = types.int; 107 + default = 600; 108 + description = '' 109 + How often battery notifications should be shown (in seconds). 110 + A value of 0 disables notifications. 111 + ''; 112 + }; 113 + 114 + percentage = mkOption { 115 + type = types.int; 116 + default = 33; 117 + description = '' 118 + At what battery percentage the device should reach before 119 + sending notifications. 120 + ''; 121 + }; 122 + }; 123 + }; 124 + }; 125 + 89 126 keyStatistics = mkOption { 90 127 type = types.bool; 91 128 default = false; ··· 107 144 }; 108 145 109 146 config = mkIf cfg.enable { 147 + warnings = flatten [ 148 + (optional cfg.mouseBatteryNotifier '' 149 + The option openrazer.mouseBatteryNotifier is deprecated. 150 + Please use openrazer.batteryNotifier instead to enable and configure battery notifications. 151 + '') 152 + ]; 153 + 110 154 boot.extraModulePackages = [ kernelPackages.openrazer ]; 111 155 boot.kernelModules = drivers; 112 156 ··· 127 171 systemd.user.services.openrazer-daemon = { 128 172 description = "Daemon to manage razer devices in userspace"; 129 173 unitConfig.Documentation = "man:openrazer-daemon(8)"; 130 - # Requires a graphical session so the daemon knows when the screensaver 131 - # starts. See the 'devicesOffOnScreensaver' option. 132 - wantedBy = [ "graphical-session.target" ]; 133 - partOf = [ "graphical-session.target" ]; 134 - serviceConfig = { 135 - Type = "dbus"; 136 - BusName = "org.razer"; 137 - ExecStart = "${daemonExe} --foreground"; 138 - Restart = "always"; 174 + # Requires a graphical session so the daemon knows when the screensaver 175 + # starts. See the 'devicesOffOnScreensaver' option. 176 + wantedBy = [ "graphical-session.target" ]; 177 + partOf = [ "graphical-session.target" ]; 178 + serviceConfig = { 179 + Type = "dbus"; 180 + BusName = "org.razer"; 181 + ExecStart = "${daemonExe} --foreground"; 182 + Restart = "always"; 139 183 }; 140 184 }; 141 185 };
+28 -5
nixos/modules/services/databases/postgresql.nix
··· 1 1 { config, lib, pkgs, ... }: 2 2 3 - with lib; 4 - 5 3 let 4 + inherit (lib) 5 + attrValues 6 + concatMapStrings 7 + concatStringsSep 8 + const 9 + elem 10 + filterAttrs 11 + isString 12 + literalExpression 13 + mapAttrs 14 + mapAttrsToList 15 + mkAfter 16 + mkBefore 17 + mkDefault 18 + mkEnableOption 19 + mkIf 20 + mkMerge 21 + mkOption 22 + mkPackageOption 23 + mkRemovedOptionModule 24 + mkRenamedOptionModule 25 + optionalString 26 + types 27 + versionAtLeast 28 + ; 6 29 7 30 cfg = config.services.postgresql; 8 31 ··· 24 47 if true == value then "yes" 25 48 else if false == value then "no" 26 49 else if isString value then "'${lib.replaceStrings ["'"] ["''"] value}'" 27 - else toString value; 50 + else builtins.toString value; 28 51 29 52 # The main PostgreSQL configuration file. 30 53 configFile = pkgs.writeTextDir "postgresql.conf" (concatStringsSep "\n" (mapAttrsToList (n: v: "${n} = ${toStr v}") (filterAttrs (const (x: x != null)) cfg.settings))); ··· 439 462 config = mkIf cfg.enable { 440 463 441 464 assertions = map ({ name, ensureDBOwnership, ... }: { 442 - assertion = ensureDBOwnership -> builtins.elem name cfg.ensureDatabases; 465 + assertion = ensureDBOwnership -> elem name cfg.ensureDatabases; 443 466 message = '' 444 467 For each database user defined with `services.postgresql.ensureUsers` and 445 468 `ensureDBOwnership = true;`, a database with the same name must be defined ··· 537 560 # Wait for PostgreSQL to be ready to accept connections. 538 561 postStart = 539 562 '' 540 - PSQL="psql --port=${toString cfg.settings.port}" 563 + PSQL="psql --port=${builtins.toString cfg.settings.port}" 541 564 542 565 while ! $PSQL -d postgres -c "" 2> /dev/null; do 543 566 if ! kill -0 "$MAINPID"; then exit 1; fi
+2 -2
nixos/modules/services/security/vault.nix
··· 56 56 }; 57 57 58 58 devRootTokenID = mkOption { 59 - type = types.str; 60 - default = false; 59 + type = types.nullOr types.str; 60 + default = null; 61 61 description = '' 62 62 Initial root token. This only applies when {option}`services.vault.dev` is true 63 63 '';
+2 -1
nixos/modules/services/web-servers/nginx/default.nix
··· 352 352 353 353 # The acme-challenge location doesn't need to be added if we are not using any automated 354 354 # certificate provisioning and can also be omitted when we use a certificate obtained via a DNS-01 challenge 355 - acmeLocation = optionalString (vhost.enableACME || (vhost.useACMEHost != null && config.security.acme.certs.${vhost.useACMEHost}.dnsProvider == null)) 355 + acmeName = if vhost.useACMEHost != null then vhost.useACMEHost else vhostName; 356 + acmeLocation = optionalString ((vhost.enableACME || vhost.useACMEHost != null) && config.security.acme.certs.${acmeName}.dnsProvider == null) 356 357 # Rule for legitimate ACME Challenge requests (like /.well-known/acme-challenge/xxxxxxxxx) 357 358 # We use ^~ here, so that we don't check any regexes (which could 358 359 # otherwise easily override this intended match accidentally).
+14 -3
nixos/modules/virtualisation/incus.nix
··· 9 9 cfg = config.virtualisation.incus; 10 10 preseedFormat = pkgs.formats.yaml { }; 11 11 12 - serverBinPath = ''${pkgs.qemu_kvm}/libexec:${ 12 + serverBinPath = ''/run/wrappers/bin:${pkgs.qemu_kvm}/libexec:${ 13 13 lib.makeBinPath ( 14 14 with pkgs; 15 15 [ ··· 33 33 gzip 34 34 iproute2 35 35 iptables 36 + iw 36 37 kmod 38 + libnvidia-container 39 + libxfs 37 40 lvm2 38 41 minio 42 + minio-client 39 43 nftables 40 - qemu_kvm 41 44 qemu-utils 45 + qemu_kvm 42 46 rsync 47 + squashfs-tools-ng 43 48 squashfsTools 49 + sshfs 44 50 swtpm 45 51 systemd 46 52 thin-provisioning-tools 47 53 util-linux 48 54 virtiofsd 55 + xdelta 49 56 xz 57 + ] 58 + ++ lib.optionals config.security.apparmor.enable [ 59 + apparmor-bin-utils 50 60 51 61 (writeShellScriptBin "apparmor_parser" '' 52 62 exec '${apparmor-parser}/bin/apparmor_parser' -I '${apparmor-profiles}/etc/apparmor.d' "$@" 53 63 '') 54 64 ] 65 + ++ lib.optionals config.services.ceph.client.enable [ ceph-client ] 66 + ++ lib.optionals config.virtualisation.vswitch.enable [ config.virtualisation.vswitch.package ] 55 67 ++ lib.optionals config.boot.zfs.enabled [ 56 68 config.boot.zfs.package 57 69 "${config.boot.zfs.package}/lib/udev" 58 70 ] 59 - ++ lib.optionals config.virtualisation.vswitch.enable [ config.virtualisation.vswitch.package ] 60 71 ) 61 72 }''; 62 73
+2 -2
pkgs/applications/audio/bitwig-studio/bitwig-studio5.nix
··· 27 27 28 28 stdenv.mkDerivation rec { 29 29 pname = "bitwig-studio"; 30 - version = "5.1.6"; 30 + version = "5.1.8"; 31 31 32 32 src = fetchurl { 33 33 url = "https://downloads.bitwig.com/stable/${version}/${pname}-${version}.deb"; 34 - sha256 = "sha256-U1Qp7/7kAr1IEcv256I2J/sb5MYxfR20Pi5N8WaVh2U="; 34 + sha256 = "sha256-KxNLae/uTYL1m/X+/7wr7hhKfw31NpB9Mw9RzfrTuus="; 35 35 }; 36 36 37 37 nativeBuildInputs = [ dpkg makeWrapper wrapGAppsHook3 ];
+3 -3
pkgs/applications/blockchains/lnd/default.nix
··· 6 6 7 7 buildGoModule rec { 8 8 pname = "lnd"; 9 - version = "0.17.4-beta"; 9 + version = "0.17.5-beta"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "lightningnetwork"; 13 13 repo = "lnd"; 14 14 rev = "v${version}"; 15 - hash = "sha256-O6cGK4UMKrZpYqtghjjqqLBStLG5GEi/Q5liR557I8s="; 15 + hash = "sha256-q/mzF6LPW/ThgqfGgjtax8GvoC3JEpg0IetfSTo1XYk="; 16 16 }; 17 17 18 - vendorHash = "sha256-eaQmM5bfsUmzTiUALX543VBQRJK+TqW2i28npwSrn3Q="; 18 + vendorHash = "sha256-unT0zJrOEmKHpoUsrBHKfn5IziGlaqEtMfkeo/74Rfc="; 19 19 20 20 subPackages = [ "cmd/lncli" "cmd/lnd" ]; 21 21
+4 -2
pkgs/applications/blockchains/ton/default.nix
··· 7 7 , gperf 8 8 , libmicrohttpd 9 9 , libsodium 10 + , lz4 10 11 , openssl 11 12 , readline 12 13 , secp256k1 ··· 16 17 17 18 stdenv.mkDerivation rec { 18 19 pname = "ton"; 19 - version = "2024.03"; 20 + version = "2024.04"; 20 21 21 22 src = fetchFromGitHub { 22 23 owner = "ton-blockchain"; 23 24 repo = "ton"; 24 25 rev = "v${version}"; 25 - hash = "sha256-AVg33aZAyedmNIFqQJm4Nn6luLxK4mKgnIRmNU7j2C0="; 26 + hash = "sha256-hh8D4IZX6RS/RXdhVONhgetqp89kpTC2IwDQ2KHdKsE="; 26 27 fetchSubmodules = true; 27 28 }; 28 29 ··· 38 39 gperf 39 40 libmicrohttpd 40 41 libsodium 42 + lz4 41 43 openssl 42 44 readline 43 45 secp256k1
+1 -1
pkgs/applications/editors/neovim/utils.nix
··· 218 218 ]; 219 219 in 220 220 221 - toVimPlugin (runCommand "vimplugin-treesitter-grammar-${name}" 221 + toVimPlugin (runCommand "treesitter-grammar-${name}" 222 222 { 223 223 meta = { 224 224 platforms = lib.platforms.all;
+16 -17
pkgs/applications/editors/vscode/extensions/WakaTime.vscode-wakatime/default.nix
··· 1 - { lib 2 - , vscode-utils }: 1 + { lib, vscode-utils }: 3 2 4 3 let 5 4 inherit (vscode-utils) buildVscodeMarketplaceExtension; 6 5 in 7 - buildVscodeMarketplaceExtension { 8 - mktplcRef = { 9 - name = "vscode-wakatime"; 10 - publisher = "WakaTime"; 11 - version = "18.0.5"; 12 - hash = "sha256-vWqGxMbxKqd4UgKK0sOKadMTDf6Y3TQxfWsc93MHjFs="; 13 - }; 6 + buildVscodeMarketplaceExtension { 7 + mktplcRef = { 8 + name = "vscode-wakatime"; 9 + publisher = "WakaTime"; 10 + version = "18.0.5"; 11 + hash = "sha256-vWqGxMbxKqd4UgKK0sOKadMTDf6Y3TQxfWsc93MHjFs="; 12 + }; 14 13 15 - meta = { 16 - description = '' 17 - Visual Studio Code plugin for automatic time tracking and metrics generated 18 - from your programming activity 19 - ''; 20 - license = lib.licenses.bsd3; 21 - }; 22 - } 14 + meta = { 15 + description = '' 16 + Visual Studio Code plugin for automatic time tracking and metrics generated 17 + from your programming activity 18 + ''; 19 + license = lib.licenses.bsd3; 20 + }; 21 + }
+16 -5
pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix
··· 1 - { lib, stdenv, vscode-utils, callPackage }: 1 + { 2 + lib, 3 + stdenv, 4 + vscode-utils, 5 + callPackage, 6 + }: 2 7 let 3 8 version = "1.50.0"; 4 9 rescript-editor-analysis = callPackage ./rescript-editor-analysis.nix { inherit version; }; 5 10 arch = 6 - if stdenv.isLinux then "linux" 7 - else if stdenv.isDarwin then "darwin" 8 - else throw "Unsupported system: ${stdenv.system}"; 11 + if stdenv.isLinux then 12 + "linux" 13 + else if stdenv.isDarwin then 14 + "darwin" 15 + else 16 + throw "Unsupported system: ${stdenv.system}"; 9 17 analysisDir = "server/analysis_binaries/${arch}"; 10 18 in 11 19 vscode-utils.buildVscodeMarketplaceExtension rec { ··· 23 31 meta = { 24 32 description = "The official VSCode plugin for ReScript"; 25 33 homepage = "https://github.com/rescript-lang/rescript-vscode"; 26 - maintainers = [ lib.maintainers.dlip lib.maintainers.jayesh-bhoot ]; 34 + maintainers = [ 35 + lib.maintainers.dlip 36 + lib.maintainers.jayesh-bhoot 37 + ]; 27 38 license = lib.licenses.mit; 28 39 }; 29 40 }
+19 -3
pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/rescript-editor-analysis.nix
··· 1 - { lib, stdenv, fetchFromGitHub, bash, ocaml, ocamlPackages, dune_3, version }: 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + bash, 6 + ocaml, 7 + ocamlPackages, 8 + dune_3, 9 + version, 10 + }: 2 11 3 12 stdenv.mkDerivation { 4 13 pname = "rescript-editor-analysis"; ··· 11 20 hash = "sha256-+Ht8qWwxtFWHFMiV/aoZIs2S3SxkOWgdwSKN+akp/LU="; 12 21 }; 13 22 14 - nativeBuildInputs = [ ocaml dune_3 ocamlPackages.cppo ]; 23 + nativeBuildInputs = [ 24 + ocaml 25 + dune_3 26 + ocamlPackages.cppo 27 + ]; 15 28 16 29 # Skip testing phases because they need to download and install node modules 17 30 postPatch = '' ··· 28 41 meta = { 29 42 description = "Analysis binary for the ReScript VSCode plugin"; 30 43 homepage = "https://github.com/rescript-lang/rescript-vscode"; 31 - maintainers = [ lib.maintainers.dlip lib.maintainers.jayesh-bhoot ]; 44 + maintainers = [ 45 + lib.maintainers.dlip 46 + lib.maintainers.jayesh-bhoot 47 + ]; 32 48 license = lib.licenses.mit; 33 49 }; 34 50 }
+8 -11
pkgs/applications/editors/vscode/extensions/contextmapper.context-mapper-vscode-extension/default.nix
··· 1 - { graphviz 2 - , jre 3 - , lib 4 - , makeWrapper 5 - , vscode-utils 1 + { 2 + graphviz, 3 + jre, 4 + lib, 5 + makeWrapper, 6 + vscode-utils, 6 7 }: 7 8 8 9 vscode-utils.buildVscodeMarketplaceExtension rec { ··· 13 14 hash = "sha256-TvApcBBI+Egu7t4tJuEYTs6mhvABOY2eXVb57O4gWfs="; 14 15 }; 15 16 16 - nativeBuildInputs = [ 17 - makeWrapper 18 - ]; 17 + nativeBuildInputs = [ makeWrapper ]; 19 18 20 - buildInputs = [ 21 - graphviz 22 - ]; 19 + buildInputs = [ graphviz ]; 23 20 24 21 postInstall = '' 25 22 wrapProgram $out/share/vscode/extensions/contextmapper.context-mapper-vscode-extension/lsp/bin/context-mapper-lsp \
+2 -2
pkgs/applications/editors/vscode/extensions/default.nix
··· 3514 3514 mktplcRef = { 3515 3515 name = "wikitext"; 3516 3516 publisher = "RoweWilsonFrederiskHolme"; 3517 - version = "3.8.0"; 3518 - sha256 = "30540a85163e797028eec9bc3db1866bbf473e98615bf6ade6d1d672017ebe52"; 3517 + version = "3.8.1"; 3518 + hash = "sha256-piwS3SPjx10nsjN5axC+EN0MEDf0r2lVFllqQzciOfc="; 3519 3519 }; 3520 3520 meta = { 3521 3521 description = "Extension that helps users view and write MediaWiki's Wikitext files";
+1 -3
pkgs/applications/editors/vscode/extensions/equinusocio.vsc-material-theme/default.nix
··· 1 - { lib 2 - , vscode-utils 3 - }: 1 + { lib, vscode-utils }: 4 2 5 3 vscode-utils.buildVscodeMarketplaceExtension { 6 4 mktplcRef = {
+5 -1
pkgs/applications/editors/vscode/extensions/hashicorp.terraform/default.nix
··· 1 - { lib, vscode-utils, terraform-ls }: 1 + { 2 + lib, 3 + vscode-utils, 4 + terraform-ls, 5 + }: 2 6 vscode-utils.buildVscodeMarketplaceExtension rec { 3 7 mktplcRef = { 4 8 name = "terraform";
+13 -7
pkgs/applications/editors/vscode/extensions/jebbs.plantuml/default.nix
··· 1 - { lib, vscode-utils, plantuml, jq, moreutils }: 1 + { 2 + lib, 3 + vscode-utils, 4 + plantuml, 5 + jq, 6 + moreutils, 7 + }: 2 8 3 9 vscode-utils.buildVscodeMarketplaceExtension { 4 10 mktplcRef = { ··· 7 13 version = "2.17.4"; 8 14 hash = "sha256-fnz6ubB73i7rJcv+paYyNV1r4cReuyFPjgPM0HO40ug="; 9 15 }; 10 - nativeBuildInputs = [ jq moreutils ]; 16 + nativeBuildInputs = [ 17 + jq 18 + moreutils 19 + ]; 11 20 postInstall = '' 12 21 cd "$out/$installPrefix" 13 22 jq '.contributes.configuration.properties."plantuml.java".default = "${plantuml}/bin/plantuml"' package.json | sponge package.json ··· 15 24 16 25 meta = { 17 26 description = "A Visual Studio Code extension for supporting Rich PlantUML"; 18 - downloadPage = 19 - "https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml"; 27 + downloadPage = "https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml"; 20 28 homepage = "https://github.com/qjebbs/vscode-plantuml"; 21 - changelog = 22 - "https://marketplace.visualstudio.com/items/jebbs.plantuml/changelog"; 29 + changelog = "https://marketplace.visualstudio.com/items/jebbs.plantuml/changelog"; 23 30 license = lib.licenses.mit; 24 31 maintainers = [ lib.maintainers.victormignot ]; 25 32 }; 26 33 } 27 -
+6 -2
pkgs/applications/editors/vscode/extensions/language-packs.nix
··· 4 4 5 5 let 6 6 7 - buildVscodeLanguagePack = { language, version ? "1.76.2023030809", sha256 }: 7 + buildVscodeLanguagePack = 8 + { 9 + language, 10 + version ? "1.76.2023030809", 11 + sha256, 12 + }: 8 13 buildVscodeMarketplaceExtension { 9 14 mktplcRef = { 10 15 name = "vscode-language-pack-${language}"; ··· 15 20 license = lib.licenses.mit; 16 21 }; 17 22 }; 18 - 19 23 in 20 24 21 25 # See list of core language packs at https://github.com/Microsoft/vscode-loc
+8 -1
pkgs/applications/editors/vscode/extensions/mktplcExtRefToFetchArgs.nix
··· 1 - { publisher, name, version, arch ? "", sha256 ? "", hash ? "" }: 1 + { 2 + publisher, 3 + name, 4 + version, 5 + arch ? "", 6 + sha256 ? "", 7 + hash ? "", 8 + }: 2 9 let 3 10 archurl = (if arch == "" then "" else "?targetPlatform=${arch}"); 4 11 in
+99 -86
pkgs/applications/editors/vscode/extensions/ms-dotnettools.csdevkit/default.nix
··· 1 - { lib 2 - , icu 3 - , openssl 4 - , patchelf 5 - , stdenv 6 - , vscode-utils 1 + { 2 + lib, 3 + icu, 4 + openssl, 5 + patchelf, 6 + stdenv, 7 + vscode-utils, 7 8 }: 8 9 let 9 10 inherit (stdenv.hostPlatform) system; 10 11 inherit (vscode-utils) buildVscodeMarketplaceExtension; 11 12 12 - extInfo = { 13 - x86_64-linux = { 14 - arch = "linux-x64"; 15 - hash = "sha256-7m85Zl9oV40le3nkNPzoKu/AAf8XhQpI8sBMsQXmBg8="; 16 - binaries = [ 17 - "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/servicehub-controller-net60.linux-x64/Microsoft.ServiceHub.Controller" 18 - "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/visualstudio-code-servicehost.linux-x64/Microsoft.VisualStudio.Code.ServiceHost" 19 - "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/visualstudio-reliability-monitor.linux-x64/Microsoft.VisualStudio.Reliability.Monitor" 20 - "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/visualstudio-server.linux-x64/Microsoft.VisualStudio.Code.Server" 21 - ]; 22 - }; 23 - aarch64-linux = { 24 - arch = "linux-arm64"; 25 - hash = "sha256-39D55EdwE4baDYbHc9GD/1XoxGbQkUkS1H2uysJHlxw="; 26 - binaries = [ 27 - "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/servicehub-controller-net60.linux-arm64/Microsoft.ServiceHub.Controller" 28 - "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/visualstudio-code-servicehost.linux-arm64/Microsoft.VisualStudio.Code.ServiceHost" 29 - "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/visualstudio-reliability-monitor.linux-arm64/Microsoft.VisualStudio.Reliability.Monitor" 30 - "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/visualstudio-server.linux-arm64/Microsoft.VisualStudio.Code.Server" 31 - ]; 32 - }; 33 - x86_64-darwin = { 34 - arch = "darwin-x64"; 35 - hash = "sha256-gfhJX07R+DIw9FbzaEE0JZwEmDeifiq4vHyMHZZ1udM="; 36 - binaries = [ 37 - "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/servicehub-controller-net60.darwin-x64/Microsoft.ServiceHub.Controller" 38 - "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/visualstudio-code-servicehost.darwin-x64/Microsoft.VisualStudio.Code.ServiceHost" 39 - "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/visualstudio-reliability-monitor.darwin-x64/Microsoft.VisualStudio.Reliability.Monitor" 40 - "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/visualstudio-server.darwin-x64/Microsoft.VisualStudio.Code.Server" 41 - ]; 42 - }; 43 - aarch64-darwin = { 44 - arch = "darwin-arm64"; 45 - hash = "sha256-vogstgCWvI9csNF9JfJ41XPR1POy842g2yhWqIDoHLw="; 46 - binaries = [ 47 - "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/servicehub-controller-net60.darwin-arm64/Microsoft.ServiceHub.Controller" 48 - "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/visualstudio-code-servicehost.darwin-arm64/Microsoft.VisualStudio.Code.ServiceHost" 49 - "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/visualstudio-reliability-monitor.darwin-arm64/Microsoft.VisualStudio.Reliability.Monitor" 50 - "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/visualstudio-server.darwin-arm64/Microsoft.VisualStudio.Code.Server" 51 - ]; 52 - }; 53 - }.${system} or (throw "Unsupported system: ${system}"); 13 + extInfo = 14 + { 15 + x86_64-linux = { 16 + arch = "linux-x64"; 17 + hash = "sha256-7m85Zl9oV40le3nkNPzoKu/AAf8XhQpI8sBMsQXmBg8="; 18 + binaries = [ 19 + "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/servicehub-controller-net60.linux-x64/Microsoft.ServiceHub.Controller" 20 + "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/visualstudio-code-servicehost.linux-x64/Microsoft.VisualStudio.Code.ServiceHost" 21 + "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/visualstudio-reliability-monitor.linux-x64/Microsoft.VisualStudio.Reliability.Monitor" 22 + "components/vs-green-server/platforms/linux-x64/node_modules/@microsoft/visualstudio-server.linux-x64/Microsoft.VisualStudio.Code.Server" 23 + ]; 24 + }; 25 + aarch64-linux = { 26 + arch = "linux-arm64"; 27 + hash = "sha256-39D55EdwE4baDYbHc9GD/1XoxGbQkUkS1H2uysJHlxw="; 28 + binaries = [ 29 + "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/servicehub-controller-net60.linux-arm64/Microsoft.ServiceHub.Controller" 30 + "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/visualstudio-code-servicehost.linux-arm64/Microsoft.VisualStudio.Code.ServiceHost" 31 + "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/visualstudio-reliability-monitor.linux-arm64/Microsoft.VisualStudio.Reliability.Monitor" 32 + "components/vs-green-server/platforms/linux-arm64/node_modules/@microsoft/visualstudio-server.linux-arm64/Microsoft.VisualStudio.Code.Server" 33 + ]; 34 + }; 35 + x86_64-darwin = { 36 + arch = "darwin-x64"; 37 + hash = "sha256-gfhJX07R+DIw9FbzaEE0JZwEmDeifiq4vHyMHZZ1udM="; 38 + binaries = [ 39 + "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/servicehub-controller-net60.darwin-x64/Microsoft.ServiceHub.Controller" 40 + "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/visualstudio-code-servicehost.darwin-x64/Microsoft.VisualStudio.Code.ServiceHost" 41 + "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/visualstudio-reliability-monitor.darwin-x64/Microsoft.VisualStudio.Reliability.Monitor" 42 + "components/vs-green-server/platforms/darwin-x64/node_modules/@microsoft/visualstudio-server.darwin-x64/Microsoft.VisualStudio.Code.Server" 43 + ]; 44 + }; 45 + aarch64-darwin = { 46 + arch = "darwin-arm64"; 47 + hash = "sha256-vogstgCWvI9csNF9JfJ41XPR1POy842g2yhWqIDoHLw="; 48 + binaries = [ 49 + "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/servicehub-controller-net60.darwin-arm64/Microsoft.ServiceHub.Controller" 50 + "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/visualstudio-code-servicehost.darwin-arm64/Microsoft.VisualStudio.Code.ServiceHost" 51 + "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/visualstudio-reliability-monitor.darwin-arm64/Microsoft.VisualStudio.Reliability.Monitor" 52 + "components/vs-green-server/platforms/darwin-arm64/node_modules/@microsoft/visualstudio-server.darwin-arm64/Microsoft.VisualStudio.Code.Server" 53 + ]; 54 + }; 55 + } 56 + .${system} or (throw "Unsupported system: ${system}"); 54 57 in 55 58 buildVscodeMarketplaceExtension { 56 59 mktplcRef = { ··· 61 64 }; 62 65 sourceRoot = "extension"; # This has more than one folder. 63 66 64 - nativeBuildInputs = [ 65 - patchelf 66 - ]; 67 + nativeBuildInputs = [ patchelf ]; 67 68 68 - postPatch = '' 69 - declare ext_unique_id 70 - ext_unique_id="$(basename "$out" | head -c 32)" 69 + postPatch = 70 + '' 71 + declare ext_unique_id 72 + ext_unique_id="$(basename "$out" | head -c 32)" 71 73 72 - patchelf_add_icu_as_needed() { 73 - declare elf="''${1?}" 74 - declare icu_major_v="${ 75 - lib.head (lib.splitVersion (lib.getVersion icu.name)) 76 - }" 74 + patchelf_add_icu_as_needed() { 75 + declare elf="''${1?}" 76 + declare icu_major_v="${lib.head (lib.splitVersion (lib.getVersion icu.name))}" 77 77 78 - for icu_lib in icui18n icuuc icudata; do 79 - patchelf --add-needed "lib''${icu_lib}.so.$icu_major_v" "$elf" 80 - done 81 - } 78 + for icu_lib in icui18n icuuc icudata; do 79 + patchelf --add-needed "lib''${icu_lib}.so.$icu_major_v" "$elf" 80 + done 81 + } 82 82 83 - patchelf_common() { 84 - declare elf="''${1?}" 83 + patchelf_common() { 84 + declare elf="''${1?}" 85 85 86 - patchelf_add_icu_as_needed "$elf" 87 - patchelf --add-needed "libssl.so" "$elf" 88 - patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 89 - --set-rpath "${lib.makeLibraryPath [stdenv.cc.cc openssl icu.out]}:\$ORIGIN" \ 90 - "$elf" 91 - } 86 + patchelf_add_icu_as_needed "$elf" 87 + patchelf --add-needed "libssl.so" "$elf" 88 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 89 + --set-rpath "${ 90 + lib.makeLibraryPath [ 91 + stdenv.cc.cc 92 + openssl 93 + icu.out 94 + ] 95 + }:\$ORIGIN" \ 96 + "$elf" 97 + } 92 98 93 - substituteInPlace dist/extension.js \ 94 - --replace 'e.extensionPath,"cache"' 'require("os").tmpdir(),"'"$ext_unique_id"'"' \ 95 - --replace 't.setExecuteBit=async function(e){if("win32"!==process.platform){const t=i.join(e[a.SERVICEHUB_CONTROLLER_COMPONENT_NAME],"Microsoft.ServiceHub.Controller"),n=i.join(e[a.SERVICEHUB_HOST_COMPONENT_NAME],(0,a.getServiceHubHostEntrypointName)()),r=[(0,a.getServerPath)(e),t,n,(0,c.getReliabilityMonitorPath)(e)];await Promise.all(r.map((e=>(0,o.chmod)(e,"0755"))))}}' 't.setExecuteBit=async function(e){}' 99 + substituteInPlace dist/extension.js \ 100 + --replace 'e.extensionPath,"cache"' 'require("os").tmpdir(),"'"$ext_unique_id"'"' \ 101 + --replace 't.setExecuteBit=async function(e){if("win32"!==process.platform){const t=i.join(e[a.SERVICEHUB_CONTROLLER_COMPONENT_NAME],"Microsoft.ServiceHub.Controller"),n=i.join(e[a.SERVICEHUB_HOST_COMPONENT_NAME],(0,a.getServiceHubHostEntrypointName)()),r=[(0,a.getServerPath)(e),t,n,(0,c.getReliabilityMonitorPath)(e)];await Promise.all(r.map((e=>(0,o.chmod)(e,"0755"))))}}' 't.setExecuteBit=async function(e){}' 96 102 97 - '' 98 - + (lib.concatStringsSep "\n" (map 99 - (bin: '' 100 - chmod +x "${bin}" 101 - '') 102 - extInfo.binaries)) 103 - + lib.optionalString stdenv.isLinux (lib.concatStringsSep "\n" (map 104 - (bin: '' 105 - patchelf_common "${bin}" 106 - '') 107 - extInfo.binaries)); 103 + '' 104 + + (lib.concatStringsSep "\n" ( 105 + map (bin: '' 106 + chmod +x "${bin}" 107 + '') extInfo.binaries 108 + )) 109 + + lib.optionalString stdenv.isLinux ( 110 + lib.concatStringsSep "\n" ( 111 + map (bin: '' 112 + patchelf_common "${bin}" 113 + '') extInfo.binaries 114 + ) 115 + ); 108 116 109 117 meta = { 110 118 changelog = "https://marketplace.visualstudio.com/items/ms-dotnettools.csdevkit/changelog"; ··· 112 120 downloadPage = "https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit"; 113 121 license = lib.licenses.unfree; 114 122 maintainers = [ lib.maintainers.ggg ]; 115 - platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 123 + platforms = [ 124 + "x86_64-linux" 125 + "aarch64-linux" 126 + "x86_64-darwin" 127 + "aarch64-darwin" 128 + ]; 116 129 }; 117 130 }
+62 -51
pkgs/applications/editors/vscode/extensions/ms-dotnettools.csharp/default.nix
··· 1 - { lib 2 - , vscode-utils 3 - , patchelf 4 - , icu 5 - , stdenv 6 - , openssl 7 - , coreutils 8 - , 1 + { 2 + lib, 3 + vscode-utils, 4 + patchelf, 5 + icu, 6 + stdenv, 7 + openssl, 8 + coreutils, 9 9 }: 10 10 let 11 11 inherit (stdenv.hostPlatform) system; ··· 26 26 ".debugger/x86_64/vsdbg" 27 27 ]; 28 28 in 29 - { 30 - x86_64-linux = { 31 - arch = "linux-x64"; 32 - hash = "sha256-si4HKGVIHu44QNlNI2WEnMff9+QZOMWiBfWQaaFGyQE="; 33 - binaries = linuxBins; 34 - }; 35 - aarch64-linux = { 36 - arch = "linux-arm64"; 37 - hash = "sha256-1IXkSRgCHOLD4VeCdqyy54MXCBUX5RDDb3pf7GQH5jA="; 38 - binaries = linuxBins; 39 - }; 40 - x86_64-darwin = { 41 - arch = "darwin-x64"; 42 - hash = "sha256-AAbYjZ+YYyGEXSLkiFfluLf7P4OzPhmHzK44N5XT9UI="; 43 - binaries = darwinBins; 44 - }; 45 - aarch64-darwin = { 46 - arch = "darwin-arm64"; 47 - hash = "sha256-1m47kX0Jo+UvthNfgdoPdBBOcDyCA8DfP+zRk3SicR0="; 48 - binaries = darwinBins ++ [ 49 - ".debugger/arm64/vsdbg-ui" 50 - ".debugger/arm64/vsdbg" 51 - ]; 52 - }; 53 - }.${system} or (throw "Unsupported system: ${system}"); 29 + { 30 + x86_64-linux = { 31 + arch = "linux-x64"; 32 + hash = "sha256-si4HKGVIHu44QNlNI2WEnMff9+QZOMWiBfWQaaFGyQE="; 33 + binaries = linuxBins; 34 + }; 35 + aarch64-linux = { 36 + arch = "linux-arm64"; 37 + hash = "sha256-1IXkSRgCHOLD4VeCdqyy54MXCBUX5RDDb3pf7GQH5jA="; 38 + binaries = linuxBins; 39 + }; 40 + x86_64-darwin = { 41 + arch = "darwin-x64"; 42 + hash = "sha256-AAbYjZ+YYyGEXSLkiFfluLf7P4OzPhmHzK44N5XT9UI="; 43 + binaries = darwinBins; 44 + }; 45 + aarch64-darwin = { 46 + arch = "darwin-arm64"; 47 + hash = "sha256-1m47kX0Jo+UvthNfgdoPdBBOcDyCA8DfP+zRk3SicR0="; 48 + binaries = darwinBins ++ [ 49 + ".debugger/arm64/vsdbg-ui" 50 + ".debugger/arm64/vsdbg" 51 + ]; 52 + }; 53 + } 54 + .${system} or (throw "Unsupported system: ${system}"); 54 55 in 55 56 buildVscodeMarketplaceExtension { 56 57 mktplcRef = { ··· 60 61 inherit (extInfo) hash arch; 61 62 }; 62 63 63 - nativeBuildInputs = [ 64 - patchelf 65 - ]; 64 + nativeBuildInputs = [ patchelf ]; 66 65 67 - postPatch = '' 66 + postPatch = 67 + '' 68 68 patchelf_add_icu_as_needed() { 69 69 declare elf="''${1?}" 70 - declare icu_major_v="${ 71 - lib.head (lib.splitVersion (lib.getVersion icu.name)) 72 - }" 70 + declare icu_major_v="${lib.head (lib.splitVersion (lib.getVersion icu.name))}" 73 71 74 72 for icu_lib in icui18n icuuc icudata; do 75 73 patchelf --add-needed "lib''${icu_lib}.so.$icu_major_v" "$elf" ··· 82 80 patchelf_add_icu_as_needed "$elf" 83 81 patchelf --add-needed "libssl.so" "$elf" 84 82 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 85 - --set-rpath "${lib.makeLibraryPath [stdenv.cc.cc openssl icu.out]}:\$ORIGIN" \ 83 + --set-rpath "${ 84 + lib.makeLibraryPath [ 85 + stdenv.cc.cc 86 + openssl 87 + icu.out 88 + ] 89 + }:\$ORIGIN" \ 86 90 "$elf" 87 91 } 88 92 ··· 90 94 --replace 'uname -m' '${lib.getExe' coreutils "uname"} -m' 91 95 92 96 '' 93 - + (lib.concatStringsSep "\n" (map 94 - (bin: '' 97 + + (lib.concatStringsSep "\n" ( 98 + map (bin: '' 95 99 chmod +x "${bin}" 96 - '') 97 - extInfo.binaries)) 98 - + lib.optionalString stdenv.isLinux (lib.concatStringsSep "\n" (map 99 - (bin: '' 100 - patchelf_common "${bin}" 101 - '') 102 - extInfo.binaries)); 100 + '') extInfo.binaries 101 + )) 102 + + lib.optionalString stdenv.isLinux ( 103 + lib.concatStringsSep "\n" ( 104 + map (bin: '' 105 + patchelf_common "${bin}" 106 + '') extInfo.binaries 107 + ) 108 + ); 103 109 104 110 meta = { 105 111 description = "Official C# support for Visual Studio Code"; 106 112 homepage = "https://github.com/dotnet/vscode-csharp"; 107 113 license = lib.licenses.mit; 108 114 maintainers = with lib.maintainers; [ ggg ]; 109 - platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 115 + platforms = [ 116 + "x86_64-linux" 117 + "aarch64-linux" 118 + "x86_64-darwin" 119 + "aarch64-darwin" 120 + ]; 110 121 }; 111 122 }
+47 -35
pkgs/applications/editors/vscode/extensions/ms-python.python/default.nix
··· 1 - { lib 2 - , vscode-utils 3 - , icu 4 - , python3 1 + { 2 + lib, 3 + vscode-utils, 4 + icu, 5 + python3, 5 6 # When `true`, the python default setting will be fixed to specified. 6 7 # Use version from `PATH` for default setting otherwise. 7 8 # Defaults to `false` as we expect it to be project specific most of the time. 8 - , pythonUseFixed ? false 9 + pythonUseFixed ? false, 9 10 # For updateScript 10 - , writeScript 11 - , bash 12 - , curl 13 - , coreutils 14 - , gnused 15 - , jq 16 - , nix 11 + writeScript, 12 + bash, 13 + curl, 14 + coreutils, 15 + gnused, 16 + jq, 17 + nix, 17 18 }: 18 19 19 20 vscode-utils.buildVscodeMarketplaceExtension rec { ··· 33 34 jedi-language-server 34 35 ]; 35 36 36 - postPatch = '' 37 - # remove bundled python deps and use libs from nixpkgs 38 - rm -r pythonFiles/lib 39 - mkdir -p pythonFiles/lib/python/ 40 - ln -s ${python3.pkgs.debugpy}/lib/*/site-packages/debugpy pythonFiles/lib/python/ 41 - buildPythonPath "$propagatedBuildInputs" 42 - for i in pythonFiles/*.py; do 43 - patchPythonScript "$i" 44 - done 45 - '' + lib.optionalString pythonUseFixed '' 46 - # Patch `packages.json` so that nix's *python* is used as default value for `python.pythonPath`. 47 - substituteInPlace "./package.json" \ 48 - --replace "\"default\": \"python\"" "\"default\": \"${python3.interpreter}\"" 49 - ''; 37 + postPatch = 38 + '' 39 + # remove bundled python deps and use libs from nixpkgs 40 + rm -r pythonFiles/lib 41 + mkdir -p pythonFiles/lib/python/ 42 + ln -s ${python3.pkgs.debugpy}/lib/*/site-packages/debugpy pythonFiles/lib/python/ 43 + buildPythonPath "$propagatedBuildInputs" 44 + for i in pythonFiles/*.py; do 45 + patchPythonScript "$i" 46 + done 47 + '' 48 + + lib.optionalString pythonUseFixed '' 49 + # Patch `packages.json` so that nix's *python* is used as default value for `python.pythonPath`. 50 + substituteInPlace "./package.json" \ 51 + --replace "\"default\": \"python\"" "\"default\": \"${python3.interpreter}\"" 52 + ''; 50 53 51 54 passthru.updateScript = writeScript "update" '' 52 55 #! ${bash}/bin/bash 53 56 54 57 set -eu -o pipefail 55 58 56 - export PATH=${lib.makeBinPath [ 57 - curl 58 - coreutils 59 - gnused 60 - jq 61 - nix 62 - ]} 59 + export PATH=${ 60 + lib.makeBinPath [ 61 + curl 62 + coreutils 63 + gnused 64 + jq 65 + nix 66 + ] 67 + } 63 68 64 69 api=$(curl -s 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' \ 65 70 -H 'accept: application/json;api-version=3.0-preview.1' \ ··· 82 87 homepage = "https://github.com/Microsoft/vscode-python"; 83 88 changelog = "https://github.com/microsoft/vscode-python/releases"; 84 89 license = lib.licenses.mit; 85 - platforms = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ]; 86 - maintainers = [ lib.maintainers.jraygauthier lib.maintainers.jfchevrette ]; 90 + platforms = [ 91 + "x86_64-linux" 92 + "aarch64-darwin" 93 + "x86_64-darwin" 94 + ]; 95 + maintainers = [ 96 + lib.maintainers.jraygauthier 97 + lib.maintainers.jfchevrette 98 + ]; 87 99 }; 88 100 }
+6 -1
pkgs/applications/editors/vscode/extensions/ms-toolsai.jupyter/default.nix
··· 1 - { lib, vscode-utils, jq, moreutils }: 1 + { 2 + lib, 3 + vscode-utils, 4 + jq, 5 + moreutils, 6 + }: 2 7 3 8 vscode-utils.buildVscodeMarketplaceExtension { 4 9 mktplcRef = {
+8 -5
pkgs/applications/editors/vscode/extensions/ms-vscode-remote.remote-ssh/default.nix
··· 1 - { lib 2 - , nixosTests 3 - , vscode-utils 4 - , useLocalExtensions ? false 1 + { 2 + lib, 3 + nixosTests, 4 + vscode-utils, 5 + useLocalExtensions ? false, 5 6 }: 6 7 # Note that useLocalExtensions requires that vscode-server is not running 7 8 # on host. If it is, you'll need to remove $HOME/.vscode-server, ··· 92 93 --replace '# Start the server\n' '${patch}' 93 94 ''; 94 95 95 - passthru.tests = { inherit (nixosTests) vscode-remote-ssh; }; 96 + passthru.tests = { 97 + inherit (nixosTests) vscode-remote-ssh; 98 + }; 96 99 97 100 meta = { 98 101 description = "Use any remote machine with a SSH server as your development environment.";
+24 -7
pkgs/applications/editors/vscode/extensions/ms-vscode.cpptools/default.nix
··· 1 - { lib, vscode-utils 2 - , fetchurl, writeScript, runtimeShell 3 - , jq, clang-tools 4 - , gdbUseFixed ? true, gdb # The gdb default setting will be fixed to specified. Use version from `PATH` otherwise. 5 - , autoPatchelfHook, makeWrapper, stdenv, lttng-ust, libkrb5, zlib 1 + { 2 + lib, 3 + vscode-utils, 4 + fetchurl, 5 + writeScript, 6 + runtimeShell, 7 + jq, 8 + clang-tools, 9 + gdbUseFixed ? true, 10 + gdb, # The gdb default setting will be fixed to specified. Use version from `PATH` otherwise. 11 + autoPatchelfHook, 12 + makeWrapper, 13 + stdenv, 14 + lttng-ust, 15 + libkrb5, 16 + zlib, 6 17 }: 7 18 8 19 /* ··· 94 105 description = "The C/C++ extension adds language support for C/C++ to Visual Studio Code, including features such as IntelliSense and debugging."; 95 106 homepage = "https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools"; 96 107 license = lib.licenses.unfree; 97 - maintainers = [ lib.maintainers.jraygauthier lib.maintainers.stargate01 ]; 98 - platforms = [ "x86_64-linux" "aarch64-linux" ]; 108 + maintainers = [ 109 + lib.maintainers.jraygauthier 110 + lib.maintainers.stargate01 111 + ]; 112 + platforms = [ 113 + "x86_64-linux" 114 + "aarch64-linux" 115 + ]; 99 116 }; 100 117 }
+5 -1
pkgs/applications/editors/vscode/extensions/ms-vsliveshare.vsliveshare/default.nix
··· 1 - { lib, vscode-utils, xsel }: 1 + { 2 + lib, 3 + vscode-utils, 4 + xsel, 5 + }: 2 6 3 7 vscode-utils.buildVscodeMarketplaceExtension { 4 8 mktplcRef = {
+41 -30
pkgs/applications/editors/vscode/extensions/rust-lang.rust-analyzer/default.nix
··· 1 - { lib 2 - , fetchFromGitHub 3 - , vscode-utils 4 - , jq 5 - , rust-analyzer 6 - , nodePackages 7 - , moreutils 8 - , esbuild 9 - , pkg-config 10 - , libsecret 11 - , stdenv 12 - , darwin 13 - , setDefaultServerPath ? true 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + vscode-utils, 5 + jq, 6 + rust-analyzer, 7 + nodePackages, 8 + moreutils, 9 + esbuild, 10 + pkg-config, 11 + libsecret, 12 + stdenv, 13 + darwin, 14 + setDefaultServerPath ? true, 14 15 }: 15 16 16 17 let ··· 29 30 hash = "sha256-Oj/RPMridKpYt3eRqUIPg9YNrj6npG8THIGuWjsamnE="; 30 31 }; 31 32 32 - build-deps = nodePackages."rust-analyzer-build-deps-../../applications/editors/vscode/extensions/rust-lang.rust-analyzer/build-deps"; 33 + build-deps = 34 + nodePackages."rust-analyzer-build-deps-../../applications/editors/vscode/extensions/rust-lang.rust-analyzer/build-deps"; 33 35 # FIXME: Making a new derivation to link `node_modules` and run `npm run package` 34 36 # will cause a build failure. 35 37 vsix = build-deps.override { 36 38 src = "${src}/editors/code"; 37 - outputs = [ "vsix" "out" ]; 39 + outputs = [ 40 + "vsix" 41 + "out" 42 + ]; 38 43 39 44 inherit releaseTag; 40 45 41 - nativeBuildInputs = [ 42 - jq 43 - moreutils 44 - esbuild 45 - # Required by `keytar`, which is a dependency of `vsce`. 46 - pkg-config 47 - libsecret 48 - ] ++ lib.optionals stdenv.isDarwin [ 49 - darwin.apple_sdk.frameworks.AppKit 50 - darwin.apple_sdk.frameworks.Security 51 - ]; 46 + nativeBuildInputs = 47 + [ 48 + jq 49 + moreutils 50 + esbuild 51 + # Required by `keytar`, which is a dependency of `vsce`. 52 + pkg-config 53 + libsecret 54 + ] 55 + ++ lib.optionals stdenv.isDarwin [ 56 + darwin.apple_sdk.frameworks.AppKit 57 + darwin.apple_sdk.frameworks.Security 58 + ]; 52 59 53 60 # Follows https://github.com/rust-lang/rust-analyzer/blob/41949748a6123fd6061eb984a47f4fe780525e63/xtask/src/dist.rs#L39-L65 54 61 postRebuild = '' ··· 65 72 echo y | npx vsce package -o $vsix/${pname}.zip 66 73 ''; 67 74 }; 68 - 69 75 in 70 76 vscode-utils.buildVscodeExtension { 71 77 inherit version vsix; ··· 75 81 vscodeExtPublisher = publisher; 76 82 vscodeExtName = pname; 77 83 78 - nativeBuildInputs = lib.optionals setDefaultServerPath [ jq moreutils ]; 84 + nativeBuildInputs = lib.optionals setDefaultServerPath [ 85 + jq 86 + moreutils 87 + ]; 79 88 80 89 preInstall = lib.optionalString setDefaultServerPath '' 81 90 jq '.contributes.configuration.properties."rust-analyzer.server.path".default = $s' \ ··· 86 95 meta = { 87 96 description = "An alternative rust language server to the RLS"; 88 97 homepage = "https://github.com/rust-lang/rust-analyzer"; 89 - license = [ lib.licenses.mit lib.licenses.asl20 ]; 98 + license = [ 99 + lib.licenses.mit 100 + lib.licenses.asl20 101 + ]; 90 102 maintainers = [ ]; 91 103 platforms = lib.platforms.all; 92 104 }; 93 105 } 94 -
+4 -3
pkgs/applications/editors/vscode/extensions/sumneko.lua/default.nix
··· 1 - { lib 2 - , vscode-utils 3 - , lua-language-server 1 + { 2 + lib, 3 + vscode-utils, 4 + lua-language-server, 4 5 }: 5 6 6 7 vscode-utils.buildVscodeMarketplaceExtension {
+29 -25
pkgs/applications/editors/vscode/extensions/updateSettings.nix
··· 1 1 # Updates the vscode setting file base on a nix expression 2 2 # should run from the workspace root. 3 - { writeShellScriptBin 4 - , lib 5 - , jq 3 + { 4 + writeShellScriptBin, 5 + lib, 6 + jq, 6 7 }: 7 8 ##User Input 8 - { settings ? {} 9 - # if marked as true will create an empty json file if does not exist 10 - , createIfDoesNotExists ? true 11 - , vscodeSettingsFile ? ".vscode/settings.json" 12 - , userSettingsFolder ? "" 13 - , symlinkFromUserSetting ? false 9 + { 10 + settings ? { }, 11 + # if marked as true will create an empty json file if does not exist 12 + createIfDoesNotExists ? true, 13 + vscodeSettingsFile ? ".vscode/settings.json", 14 + userSettingsFolder ? "", 15 + symlinkFromUserSetting ? false, 14 16 }: 15 17 let 16 18 17 19 updateVSCodeSettingsCmd = '' 18 - ( 19 - echo 'updateSettings.nix: Updating ${vscodeSettingsFile}...' 20 - oldSettings=$(cat ${vscodeSettingsFile}) 21 - echo $oldSettings' ${builtins.toJSON settings}' | ${jq}/bin/jq -s add > ${vscodeSettingsFile} 22 - )''; 20 + ( 21 + echo 'updateSettings.nix: Updating ${vscodeSettingsFile}...' 22 + oldSettings=$(cat ${vscodeSettingsFile}) 23 + echo $oldSettings' ${builtins.toJSON settings}' | ${jq}/bin/jq -s add > ${vscodeSettingsFile} 24 + )''; 23 25 24 26 createEmptySettingsCmd = ''mkdir -p .vscode && echo "{}" > ${vscodeSettingsFile}''; 25 27 fileName = builtins.baseNameOf vscodeSettingsFile; 26 - symlinkFromUserSettingCmd = lib.optionalString symlinkFromUserSetting 27 - '' && mkdir -p "${userSettingsFolder}" && ln -sfv "$(pwd)/${vscodeSettingsFile}" "${userSettingsFolder}/" ''; 28 + symlinkFromUserSettingCmd = lib.optionalString symlinkFromUserSetting ''&& mkdir -p "${userSettingsFolder}" && ln -sfv "$(pwd)/${vscodeSettingsFile}" "${userSettingsFolder}/" ''; 28 29 in 29 30 30 - writeShellScriptBin ''vscodeNixUpdate-${lib.removeSuffix ".json" (fileName)}'' 31 - (lib.optionalString (settings != {}) 32 - (if createIfDoesNotExists then '' 33 - [ ! -f "${vscodeSettingsFile}" ] && ${createEmptySettingsCmd} 34 - ${updateVSCodeSettingsCmd} ${symlinkFromUserSettingCmd} 35 - '' 36 - else ''[ -f "${vscodeSettingsFile}" ] && ${updateVSCodeSettingsCmd} ${symlinkFromUserSettingCmd} 37 - '' 38 - ) 31 + writeShellScriptBin ''vscodeNixUpdate-${lib.removeSuffix ".json" (fileName)}'' ( 32 + lib.optionalString (settings != { }) ( 33 + if createIfDoesNotExists then 34 + '' 35 + [ ! -f "${vscodeSettingsFile}" ] && ${createEmptySettingsCmd} 36 + ${updateVSCodeSettingsCmd} ${symlinkFromUserSettingCmd} 37 + '' 38 + else 39 + '' 40 + [ -f "${vscodeSettingsFile}" ] && ${updateVSCodeSettingsCmd} ${symlinkFromUserSettingCmd} 41 + '' 39 42 ) 43 + )
+2 -2
pkgs/applications/editors/vscode/extensions/updateSettingsTest.nix
··· 1 - with import <nixpkgs>{}; 2 - callPackage (import ./updateSettings.nix) {} { 1 + with import <nixpkgs> { }; 2 + callPackage (import ./updateSettings.nix) { } { 3 3 settings = { 4 4 a = "fdsdf"; 5 5 };
+50 -21
pkgs/applications/editors/vscode/extensions/vadimcn.vscode-lldb/default.nix
··· 1 - { pkgs, lib, stdenv, fetchFromGitHub, runCommand, rustPlatform, makeWrapper, llvmPackages 2 - , buildNpmPackage, cmake, nodejs, unzip, python3, pkg-config, libsecret, darwin 1 + { 2 + pkgs, 3 + lib, 4 + stdenv, 5 + fetchFromGitHub, 6 + runCommand, 7 + rustPlatform, 8 + makeWrapper, 9 + llvmPackages, 10 + buildNpmPackage, 11 + cmake, 12 + nodejs, 13 + unzip, 14 + python3, 15 + pkg-config, 16 + libsecret, 17 + darwin, 3 18 }: 4 19 assert lib.versionAtLeast python3.version "3.5"; 5 20 let ··· 31 46 32 47 nativeBuildInputs = [ makeWrapper ]; 33 48 34 - env = lib.optionalAttrs stdenv.isDarwin { 35 - NIX_LDFLAGS = "-llldb -lc++abi"; 36 - }; 49 + env = lib.optionalAttrs stdenv.isDarwin { NIX_LDFLAGS = "-llldb -lc++abi"; }; 37 50 38 51 buildAndTestSubdir = "adapter"; 39 52 ··· 76 89 pkg-config 77 90 ]; 78 91 79 - buildInputs = [ 80 - libsecret 81 - ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ 82 - Security 83 - AppKit 84 - ]); 92 + buildInputs = 93 + [ libsecret ] 94 + ++ lib.optionals stdenv.isDarwin ( 95 + with darwin.apple_sdk.frameworks; 96 + [ 97 + Security 98 + AppKit 99 + ] 100 + ); 85 101 86 102 dontNpmBuild = true; 87 103 ··· 103 119 "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver" 104 120 else 105 121 "${lldb.out}/bin/lldb-server"; 106 - 107 - in stdenv.mkDerivation { 122 + in 123 + stdenv.mkDerivation { 108 124 pname = "vscode-extension-${publisher}-${pname}"; 109 - inherit src version vscodeExtUniqueId vscodeExtPublisher vscodeExtName; 125 + inherit 126 + src 127 + version 128 + vscodeExtUniqueId 129 + vscodeExtPublisher 130 + vscodeExtName 131 + ; 110 132 111 133 installPrefix = "share/vscode/extensions/${vscodeExtUniqueId}"; 112 134 113 - nativeBuildInputs = [ cmake nodejs unzip makeWrapper ]; 135 + nativeBuildInputs = [ 136 + cmake 137 + nodejs 138 + unzip 139 + makeWrapper 140 + ]; 114 141 115 142 patches = [ ./cmake-build-extension-only.patch ]; 116 143 ··· 120 147 --replace "1.9.2" ${version} 121 148 ''; 122 149 123 - postConfigure = '' 124 - cp -r ${nodeDeps}/lib/node_modules . 125 - '' + lib.optionalString stdenv.isDarwin '' 126 - export HOME="$TMPDIR/home" 127 - mkdir $HOME 128 - ''; 150 + postConfigure = 151 + '' 152 + cp -r ${nodeDeps}/lib/node_modules . 153 + '' 154 + + lib.optionalString stdenv.isDarwin '' 155 + export HOME="$TMPDIR/home" 156 + mkdir $HOME 157 + ''; 129 158 130 159 cmakeFlags = [ 131 160 # Do not append timestamp to version.
+13 -7
pkgs/applications/editors/vscode/extensions/vadimcn.vscode-lldb/lldb.nix
··· 1 1 # Patched lldb for Rust language support. 2 - { fetchFromGitHub, runCommand, llvmPackages }: 2 + { 3 + fetchFromGitHub, 4 + runCommand, 5 + llvmPackages, 6 + }: 3 7 let 4 8 llvmSrc = fetchFromGitHub { 5 9 owner = "vadimcn"; ··· 8 12 rev = "4c267c83cbb55fedf2e0b89644dc1db320fdfde7"; 9 13 hash = "sha256-jM//ej6AxnRYj+8BAn4QrxHPT6HiDzK5RqHPSg3dCcw="; 10 14 }; 11 - in (llvmPackages.lldb.overrideAttrs (oldAttrs: rec { 12 - passthru = (oldAttrs.passthru or {}) // { 15 + in 16 + (llvmPackages.lldb.overrideAttrs (oldAttrs: rec { 17 + passthru = (oldAttrs.passthru or { }) // { 13 18 inherit llvmSrc; 14 19 }; 15 20 ··· 23 28 echo "'lldb --version' returns: $versionOutput" 24 29 echo "$versionOutput" | grep -q 'rust-enabled' 25 30 ''; 26 - })).override({ 27 - monorepoSrc = llvmSrc; 28 - libllvm = llvmPackages.libllvm.override({ monorepoSrc = llvmSrc; }); 29 - }) 31 + })).override 32 + ({ 33 + monorepoSrc = llvmSrc; 34 + libllvm = llvmPackages.libllvm.override ({ monorepoSrc = llvmSrc; }); 35 + })
+114 -73
pkgs/applications/editors/vscode/extensions/vscode-utils.nix
··· 1 - { stdenv, lib, buildEnv, writeShellScriptBin, fetchurl, vscode, unzip, jq }: 1 + { 2 + stdenv, 3 + lib, 4 + buildEnv, 5 + writeShellScriptBin, 6 + fetchurl, 7 + vscode, 8 + unzip, 9 + jq, 10 + }: 2 11 let 3 - buildVscodeExtension = a@{ 4 - name, 5 - src, 6 - # Same as "Unique Identifier" on the extension's web page. 7 - # For the moment, only serve as unique extension dir. 8 - vscodeExtPublisher, 9 - vscodeExtName, 10 - vscodeExtUniqueId, 11 - configurePhase ? '' 12 - runHook preConfigure 13 - runHook postConfigure 14 - '', 15 - buildPhase ?'' 16 - runHook preBuild 17 - runHook postBuild 18 - '', 19 - dontPatchELF ? true, 20 - dontStrip ? true, 21 - nativeBuildInputs ? [], 22 - passthru ? { }, 23 - ... 24 - }: 25 - stdenv.mkDerivation ((removeAttrs a [ "vscodeExtUniqueId" ]) // { 12 + buildVscodeExtension = 13 + a@{ 14 + name, 15 + src, 16 + # Same as "Unique Identifier" on the extension's web page. 17 + # For the moment, only serve as unique extension dir. 18 + vscodeExtPublisher, 19 + vscodeExtName, 20 + vscodeExtUniqueId, 21 + configurePhase ? '' 22 + runHook preConfigure 23 + runHook postConfigure 24 + '', 25 + buildPhase ? '' 26 + runHook preBuild 27 + runHook postBuild 28 + '', 29 + dontPatchELF ? true, 30 + dontStrip ? true, 31 + nativeBuildInputs ? [ ], 32 + passthru ? { }, 33 + ... 34 + }: 35 + stdenv.mkDerivation ( 36 + (removeAttrs a [ "vscodeExtUniqueId" ]) 37 + // { 26 38 27 - name = "vscode-extension-${name}"; 39 + name = "vscode-extension-${name}"; 28 40 29 - passthru = passthru // { 30 - inherit vscodeExtPublisher vscodeExtName vscodeExtUniqueId; 31 - }; 41 + passthru = passthru // { 42 + inherit vscodeExtPublisher vscodeExtName vscodeExtUniqueId; 43 + }; 32 44 33 - inherit configurePhase buildPhase dontPatchELF dontStrip; 45 + inherit 46 + configurePhase 47 + buildPhase 48 + dontPatchELF 49 + dontStrip 50 + ; 34 51 35 - # Some .vsix files contain other directories (e.g., `package`) that we don't use. 36 - # If other directories are present but `sourceRoot` is unset, the unpacker phase fails. 37 - sourceRoot = "extension"; 52 + # Some .vsix files contain other directories (e.g., `package`) that we don't use. 53 + # If other directories are present but `sourceRoot` is unset, the unpacker phase fails. 54 + sourceRoot = "extension"; 38 55 39 - installPrefix = "share/vscode/extensions/${vscodeExtUniqueId}"; 56 + installPrefix = "share/vscode/extensions/${vscodeExtUniqueId}"; 40 57 41 - nativeBuildInputs = [ unzip ] ++ nativeBuildInputs; 58 + nativeBuildInputs = [ unzip ] ++ nativeBuildInputs; 42 59 43 - installPhase = '' 60 + installPhase = '' 44 61 45 - runHook preInstall 62 + runHook preInstall 46 63 47 - mkdir -p "$out/$installPrefix" 48 - find . -mindepth 1 -maxdepth 1 | xargs -d'\n' mv -t "$out/$installPrefix/" 64 + mkdir -p "$out/$installPrefix" 65 + find . -mindepth 1 -maxdepth 1 | xargs -d'\n' mv -t "$out/$installPrefix/" 49 66 50 - runHook postInstall 51 - ''; 67 + runHook postInstall 68 + ''; 69 + } 70 + ); 52 71 53 - }); 72 + fetchVsixFromVscodeMarketplace = 73 + mktplcExtRef: fetchurl (import ./mktplcExtRefToFetchArgs.nix mktplcExtRef); 54 74 55 - fetchVsixFromVscodeMarketplace = mktplcExtRef: 56 - fetchurl (import ./mktplcExtRefToFetchArgs.nix mktplcExtRef); 57 - 58 - buildVscodeMarketplaceExtension = a@{ 59 - name ? "", 60 - src ? null, 61 - vsix ? null, 62 - mktplcRef, 63 - ... 64 - }: assert "" == name; assert null == src; 65 - buildVscodeExtension ((removeAttrs a [ "mktplcRef" "vsix" ]) // { 66 - name = "${mktplcRef.publisher}-${mktplcRef.name}-${mktplcRef.version}"; 67 - version = mktplcRef.version; 68 - src = if (vsix != null) 69 - then vsix 70 - else fetchVsixFromVscodeMarketplace mktplcRef; 71 - vscodeExtPublisher = mktplcRef.publisher; 72 - vscodeExtName = mktplcRef.name; 73 - vscodeExtUniqueId = "${mktplcRef.publisher}.${mktplcRef.name}"; 74 - }); 75 + buildVscodeMarketplaceExtension = 76 + a@{ 77 + name ? "", 78 + src ? null, 79 + vsix ? null, 80 + mktplcRef, 81 + ... 82 + }: 83 + assert "" == name; 84 + assert null == src; 85 + buildVscodeExtension ( 86 + (removeAttrs a [ 87 + "mktplcRef" 88 + "vsix" 89 + ]) 90 + // { 91 + name = "${mktplcRef.publisher}-${mktplcRef.name}-${mktplcRef.version}"; 92 + version = mktplcRef.version; 93 + src = if (vsix != null) then vsix else fetchVsixFromVscodeMarketplace mktplcRef; 94 + vscodeExtPublisher = mktplcRef.publisher; 95 + vscodeExtName = mktplcRef.name; 96 + vscodeExtUniqueId = "${mktplcRef.publisher}.${mktplcRef.name}"; 97 + } 98 + ); 75 99 76 100 mktplcRefAttrList = [ 77 101 "name" ··· 82 106 "arch" 83 107 ]; 84 108 85 - mktplcExtRefToExtDrv = ext: 86 - buildVscodeMarketplaceExtension (removeAttrs ext mktplcRefAttrList // { 87 - mktplcRef = builtins.intersectAttrs (lib.genAttrs mktplcRefAttrList (_: null)) ext; 88 - }); 109 + mktplcExtRefToExtDrv = 110 + ext: 111 + buildVscodeMarketplaceExtension ( 112 + removeAttrs ext mktplcRefAttrList 113 + // { 114 + mktplcRef = builtins.intersectAttrs (lib.genAttrs mktplcRefAttrList (_: null)) ext; 115 + } 116 + ); 89 117 90 118 extensionFromVscodeMarketplace = mktplcExtRefToExtDrv; 91 - extensionsFromVscodeMarketplace = mktplcExtRefList: 92 - builtins.map extensionFromVscodeMarketplace mktplcExtRefList; 119 + extensionsFromVscodeMarketplace = 120 + mktplcExtRefList: builtins.map extensionFromVscodeMarketplace mktplcExtRefList; 93 121 94 122 vscodeWithConfiguration = import ./vscodeWithConfiguration.nix { 95 123 inherit lib extensionsFromVscodeMarketplace writeShellScriptBin; ··· 102 130 }; 103 131 104 132 vscodeEnv = import ./vscodeEnv.nix { 105 - inherit lib buildEnv writeShellScriptBin extensionsFromVscodeMarketplace jq; 133 + inherit 134 + lib 135 + buildEnv 136 + writeShellScriptBin 137 + extensionsFromVscodeMarketplace 138 + jq 139 + ; 106 140 vscodeDefault = vscode; 107 141 }; 108 142 ··· 139 173 toExtensionJson = extensions: builtins.toJSON (map toExtensionJsonEntry extensions); 140 174 in 141 175 { 142 - inherit fetchVsixFromVscodeMarketplace buildVscodeExtension 143 - buildVscodeMarketplaceExtension extensionFromVscodeMarketplace 144 - extensionsFromVscodeMarketplace 145 - vscodeWithConfiguration vscodeExts2nix vscodeEnv 146 - toExtensionJsonEntry toExtensionJson; 176 + inherit 177 + fetchVsixFromVscodeMarketplace 178 + buildVscodeExtension 179 + buildVscodeMarketplaceExtension 180 + extensionFromVscodeMarketplace 181 + extensionsFromVscodeMarketplace 182 + vscodeWithConfiguration 183 + vscodeExts2nix 184 + vscodeEnv 185 + toExtensionJsonEntry 186 + toExtensionJson 187 + ; 147 188 }
+61 -42
pkgs/applications/editors/vscode/extensions/vscodeEnv.nix
··· 1 1 #Use vscodeWithConfiguration and vscodeExts2nix to create a vscode executable. When the executable exits, it updates the mutable extension file, which is imported when evaluated by Nix later. 2 - { lib 3 - , buildEnv 4 - , writeShellScriptBin 5 - , extensionsFromVscodeMarketplace 6 - , vscodeDefault 7 - , jq 2 + { 3 + lib, 4 + buildEnv, 5 + writeShellScriptBin, 6 + extensionsFromVscodeMarketplace, 7 + vscodeDefault, 8 + jq, 8 9 }: 9 10 ##User input 10 - { vscode ? vscodeDefault 11 - , nixExtensions ? [] 12 - , vscodeExtsFolderName ? ".vscode-exts" 13 - # will add to the command updateSettings (which will run on executing vscode) settings to override in settings.json file 14 - , settings ? {} 15 - , createSettingsIfDoesNotExists ? true 16 - , launch ? {} 17 - , createLaunchIfDoesNotExists ? true 18 - # will add to the command updateKeybindings(which will run on executing vscode) keybindings to override in keybinding.json file 19 - , keybindings ? {} 20 - , createKeybindingsIfDoesNotExists ? true 21 - , user-data-dir ? ''"''${TMP}''${name}"/vscode-data-dir'' 22 - # if file exists will use it and import the extensions in it into this derivation else will use empty extensions list 23 - # this file will be created/updated by vscodeExts2nix when vscode exists 24 - , mutableExtensionsFile 11 + { 12 + vscode ? vscodeDefault, 13 + nixExtensions ? [ ], 14 + vscodeExtsFolderName ? ".vscode-exts", 15 + # will add to the command updateSettings (which will run on executing vscode) settings to override in settings.json file 16 + settings ? { }, 17 + createSettingsIfDoesNotExists ? true, 18 + launch ? { }, 19 + createLaunchIfDoesNotExists ? true, 20 + # will add to the command updateKeybindings(which will run on executing vscode) keybindings to override in keybinding.json file 21 + keybindings ? { }, 22 + createKeybindingsIfDoesNotExists ? true, 23 + user-data-dir ? ''"''${TMP}''${name}"/vscode-data-dir'', 24 + # if file exists will use it and import the extensions in it into this derivation else will use empty extensions list 25 + # this file will be created/updated by vscodeExts2nix when vscode exists 26 + mutableExtensionsFile, 25 27 }: 26 28 let 27 29 mutableExtensionsFilePath = toString mutableExtensionsFile; 28 - mutableExtensions = lib.optionals (builtins.pathExists mutableExtensionsFile) (import mutableExtensionsFilePath); 29 - vscodeWithConfiguration = import ./vscodeWithConfiguration.nix { 30 - inherit lib writeShellScriptBin extensionsFromVscodeMarketplace; 31 - vscodeDefault = vscode; 32 - } 33 - { 34 - inherit nixExtensions mutableExtensions vscodeExtsFolderName user-data-dir; 35 - }; 30 + mutableExtensions = lib.optionals (builtins.pathExists mutableExtensionsFile) ( 31 + import mutableExtensionsFilePath 32 + ); 33 + vscodeWithConfiguration = 34 + import ./vscodeWithConfiguration.nix 35 + { 36 + inherit lib writeShellScriptBin extensionsFromVscodeMarketplace; 37 + vscodeDefault = vscode; 38 + } 39 + { 40 + inherit 41 + nixExtensions 42 + mutableExtensions 43 + vscodeExtsFolderName 44 + user-data-dir 45 + ; 46 + }; 36 47 37 48 updateSettings = import ./updateSettings.nix { inherit lib writeShellScriptBin jq; }; 38 - userSettingsFolder = "${ user-data-dir }/User"; 49 + userSettingsFolder = "${user-data-dir}/User"; 39 50 40 51 updateSettingsCmd = updateSettings { 41 52 settings = { 42 - "extensions.autoCheckUpdates" = false; 43 - "extensions.autoUpdate" = false; 44 - "update.mode" = "none"; 53 + "extensions.autoCheckUpdates" = false; 54 + "extensions.autoUpdate" = false; 55 + "update.mode" = "none"; 45 56 } // settings; 46 57 inherit userSettingsFolder; 47 58 createIfDoesNotExists = createSettingsIfDoesNotExists; ··· 62 73 symlinkFromUserSetting = (user-data-dir != ""); 63 74 }; 64 75 65 - vscodeExts2nix = import ./vscodeExts2nix.nix { 66 - inherit lib writeShellScriptBin; 67 - vscodeDefault = vscodeWithConfiguration; 68 - } 69 - { 70 - extensionsToIgnore = nixExtensions; 71 - extensions = mutableExtensions; 72 - }; 76 + vscodeExts2nix = 77 + import ./vscodeExts2nix.nix 78 + { 79 + inherit lib writeShellScriptBin; 80 + vscodeDefault = vscodeWithConfiguration; 81 + } 82 + { 83 + extensionsToIgnore = nixExtensions; 84 + extensions = mutableExtensions; 85 + }; 73 86 code = writeShellScriptBin "code" '' 74 87 ${updateSettingsCmd}/bin/vscodeNixUpdate-settings 75 88 ${updateLaunchCmd}/bin/vscodeNixUpdate-launch ··· 81 94 in 82 95 buildEnv { 83 96 name = "vscodeEnv"; 84 - paths = [ code vscodeExts2nix updateSettingsCmd updateLaunchCmd updateKeybindingsCmd ]; 97 + paths = [ 98 + code 99 + vscodeExts2nix 100 + updateSettingsCmd 101 + updateLaunchCmd 102 + updateKeybindingsCmd 103 + ]; 85 104 }
+13 -11
pkgs/applications/editors/vscode/extensions/vscodeEnvTest.nix
··· 1 - with import <nixpkgs>{}; 2 - callPackage (import ./vscodeEnv.nix) { 3 - extensionsFromVscodeMarketplace = vscode-utils.extensionsFromVscodeMarketplace; 4 - vscodeDefault = vscode; 5 - } { 6 - mutableExtensionsFile = ./extensions.nix; 7 - settings = { 8 - a = "fdsdf"; 9 - t = "test"; 10 - }; 11 - } 1 + with import <nixpkgs> { }; 2 + callPackage (import ./vscodeEnv.nix) 3 + { 4 + extensionsFromVscodeMarketplace = vscode-utils.extensionsFromVscodeMarketplace; 5 + vscodeDefault = vscode; 6 + } 7 + { 8 + mutableExtensionsFile = ./extensions.nix; 9 + settings = { 10 + a = "fdsdf"; 11 + t = "test"; 12 + }; 13 + }
+24 -12
pkgs/applications/editors/vscode/extensions/vscodeExts2nix.nix
··· 1 1 # based on the passed vscode will stdout a nix expression with the installed vscode extensions 2 - { lib 3 - , vscodeDefault 4 - , writeShellScriptBin 2 + { 3 + lib, 4 + vscodeDefault, 5 + writeShellScriptBin, 5 6 }: 6 7 7 8 ##User input 8 - { vscode ? vscodeDefault 9 - , extensionsToIgnore ? [] 10 - # will use those extensions to get sha256 if still exists when executed. 11 - , extensions ? [] 9 + { 10 + vscode ? vscodeDefault, 11 + extensionsToIgnore ? [ ], 12 + # will use those extensions to get sha256 if still exists when executed. 13 + extensions ? [ ], 12 14 }: 13 15 let 14 16 mktplcExtRefToFetchArgs = import ./mktplcExtRefToFetchArgs.nix; ··· 17 19 echo '[' 18 20 19 21 for line in $(${vscode}/bin/code --list-extensions --show-versions \ 20 - ${lib.optionalString (extensionsToIgnore != []) '' 21 - | grep -v -i '^\(${lib.concatMapStringsSep "\\|" (e : "${e.publisher}.${e.name}") extensionsToIgnore}\)' 22 - ''} 22 + ${ 23 + lib.optionalString (extensionsToIgnore != [ ]) '' 24 + | grep -v -i '^\(${ 25 + lib.concatMapStringsSep "\\|" (e: "${e.publisher}.${e.name}") extensionsToIgnore 26 + }\)' 27 + '' 28 + } 23 29 ) ; do 24 30 [[ $line =~ ([^.]*)\.([^@]*)@(.*) ]] 25 31 name=''${BASH_REMATCH[2]} 26 32 publisher=''${BASH_REMATCH[1]} 27 33 version=''${BASH_REMATCH[3]} 28 34 29 - extensions="${lib.concatMapStringsSep "." (e : "${e.publisher}${e.name}@${e.sha256}") extensions}" 35 + extensions="${lib.concatMapStringsSep "." (e: "${e.publisher}${e.name}@${e.sha256}") extensions}" 30 36 reCurrentExt=$publisher$name"@([^.]*)" 31 37 if [[ $extensions =~ $reCurrentExt ]]; then 32 38 sha256=''${BASH_REMATCH[1]} 33 39 else 34 40 sha256=$( 35 - nix-prefetch-url "${(mktplcExtRefToFetchArgs {publisher = ''"$publisher"''; name = ''"$name"''; version = ''"$version"'';}).url}" 2> /dev/null 41 + nix-prefetch-url "${ 42 + (mktplcExtRefToFetchArgs { 43 + publisher = ''"$publisher"''; 44 + name = ''"$name"''; 45 + version = ''"$version"''; 46 + }).url 47 + }" 2> /dev/null 36 48 ) 37 49 fi 38 50
+41 -34
pkgs/applications/editors/vscode/extensions/vscodeWithConfiguration.nix
··· 1 1 # wrapper over vscode to control extensions per project (extensions folder will be created in execution path) 2 - { lib 3 - , writeShellScriptBin 4 - , extensionsFromVscodeMarketplace 5 - , vscodeDefault 2 + { 3 + lib, 4 + writeShellScriptBin, 5 + extensionsFromVscodeMarketplace, 6 + vscodeDefault, 6 7 }: 7 8 ## User input 8 - { vscode ? vscodeDefault 9 - # extensions to be symlinked into the project's extensions folder 10 - , nixExtensions ? [] 11 - # extensions to be copied into the project's extensions folder 12 - , mutableExtensions ? [] 13 - , vscodeExtsFolderName ? ".vscode-exts" 14 - , user-data-dir ? ''"''${TMP}vscodeWithConfiguration/vscode-data-dir"'' 9 + { 10 + vscode ? vscodeDefault, 11 + # extensions to be symlinked into the project's extensions folder 12 + nixExtensions ? [ ], 13 + # extensions to be copied into the project's extensions folder 14 + mutableExtensions ? [ ], 15 + vscodeExtsFolderName ? ".vscode-exts", 16 + user-data-dir ? ''"''${TMP}vscodeWithConfiguration/vscode-data-dir"'', 15 17 }: 16 18 let 17 19 nixExtsDrvs = extensionsFromVscodeMarketplace nixExtensions; 18 20 mutExtsDrvs = extensionsFromVscodeMarketplace mutableExtensions; 19 - mutableExtsPaths = lib.forEach mutExtsDrvs ( e: 20 - { 21 + mutableExtsPaths = lib.forEach mutExtsDrvs (e: { 21 22 origin = "${e}/share/vscode/extensions/${e.vscodeExtUniqueId}"; 22 - target = ''${vscodeExtsFolderName}/${e.vscodeExtUniqueId}-${(lib.findSingle (ext: "${ext.publisher}.${ext.name}" == e.vscodeExtUniqueId) "" "m" mutableExtensions ).version}''; 23 - } 24 - ); 23 + target = ''${vscodeExtsFolderName}/${e.vscodeExtUniqueId}-${ 24 + (lib.findSingle ( 25 + ext: "${ext.publisher}.${ext.name}" == e.vscodeExtUniqueId 26 + ) "" "m" mutableExtensions).version 27 + }''; 28 + }); 25 29 26 30 #removed not defined extensions 27 - rmExtensions = lib.optionalString (nixExtensions++mutableExtensions != []) '' 31 + rmExtensions = lib.optionalString (nixExtensions ++ mutableExtensions != [ ]) '' 28 32 find ${vscodeExtsFolderName} -mindepth 1 -maxdepth 1 ${ 29 - lib.concatMapStringsSep " " (e : "! -iname ${e.publisher}.${e.name} ") nixExtensions 30 - + 31 - lib.concatMapStringsSep " " (e : "! -iname ${e.publisher}.${e.name}-${e.version} ") mutableExtensions 32 - } -exec rm -rf {} \; 33 + lib.concatMapStringsSep " " (e: "! -iname ${e.publisher}.${e.name} ") nixExtensions 34 + + lib.concatMapStringsSep " " ( 35 + e: "! -iname ${e.publisher}.${e.name}-${e.version} " 36 + ) mutableExtensions 37 + } -exec rm -rf {} \; 33 38 ''; 34 39 #copy mutable extension out of the nix store 35 40 cpExtensions = '' 36 - ${lib.concatMapStringsSep "\n" (e : "ln -sfn ${e}/share/vscode/extensions/* ${vscodeExtsFolderName}/") nixExtsDrvs} 37 - ${lib.concatMapStringsSep "\n" (ePath : '' 41 + ${lib.concatMapStringsSep "\n" ( 42 + e: "ln -sfn ${e}/share/vscode/extensions/* ${vscodeExtsFolderName}/" 43 + ) nixExtsDrvs} 44 + ${lib.concatMapStringsSep "\n" (ePath: '' 38 45 if [ ! -d ${ePath.target} ]; then 39 46 cp -a ${ePath.origin} ${ePath.target} 40 47 chmod -R u+rwx ${ePath.target} 41 48 fi 42 - '') mutableExtsPaths} 49 + '') mutableExtsPaths} 43 50 ''; 44 51 in 45 - writeShellScriptBin "code" '' 46 - if ! [[ "$@" =~ "--list-extension" ]]; then 47 - mkdir -p "${vscodeExtsFolderName}" 48 - ${rmExtensions} 49 - ${cpExtensions} 50 - fi 51 - ${vscode}/bin/code --extensions-dir "${vscodeExtsFolderName}" ${ 52 - lib.optionalString (user-data-dir != "") "--user-data-dir ${user-data-dir}" 53 - } "$@" 54 - '' 52 + writeShellScriptBin "code" '' 53 + if ! [[ "$@" =~ "--list-extension" ]]; then 54 + mkdir -p "${vscodeExtsFolderName}" 55 + ${rmExtensions} 56 + ${cpExtensions} 57 + fi 58 + ${vscode}/bin/code --extensions-dir "${vscodeExtsFolderName}" ${ 59 + lib.optionalString (user-data-dir != "") "--user-data-dir ${user-data-dir}" 60 + } "$@" 61 + ''
+3 -3
pkgs/applications/misc/gum/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "gum"; 5 - version = "0.13.0"; 5 + version = "0.14.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "charmbracelet"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - hash = "sha256-NgMEgSfHVLCEKZ3MmNV571ySMUD8wj+kq5EccGrxtZc="; 11 + hash = "sha256-TpLaZ/935S57K60NdgJXVY+YQEedralZMoQHWRgkH+A="; 12 12 }; 13 13 14 - vendorHash = "sha256-fmc6nbS/Xmn/YRwToRH7EhP4SFRMf8hjZ/rLtaP/USo="; 14 + vendorHash = "sha256-UgpOHZ/CEnGsmUTyNrhh+qDmKEplr18b/OrO2qcIhF4="; 15 15 16 16 nativeBuildInputs = [ 17 17 installShellFiles
+2 -2
pkgs/applications/networking/cluster/kn/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "kn"; 5 - version = "1.13.0"; 5 + version = "1.14.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "knative"; 9 9 repo = "client"; 10 10 rev = "knative-v${version}"; 11 - sha256 = "sha256-irMipYDYMyA0l9d7tI1wS7XsxGWjBzTvxmhpKM1gLW8="; 11 + sha256 = "sha256-sUMQrBAOhpMxMawOdvLFSUrcU9od6pmT7NabSywoQn8="; 12 12 }; 13 13 14 14 vendorHash = null;
+3 -3
pkgs/applications/networking/cluster/temporal/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "temporal"; 5 - version = "1.23.0"; 5 + version = "1.23.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "temporalio"; 9 9 repo = "temporal"; 10 10 rev = "v${version}"; 11 - hash = "sha256-4e8z4k7loL9vVYe5jut1X/5qDboChQxZtPO1ZBHNb7o="; 11 + hash = "sha256-yu5EfW5ThTJx6ouCBoEEq9wU4MtlFGqqRaHMgIPaRqY="; 12 12 }; 13 13 14 - vendorHash = "sha256-4xwdVFE0CGcOA8Efj4ECionPP9rbzT02zyr2HR143AM="; 14 + vendorHash = "sha256-INmc/qbayjI+umkoGL8ih/iC7xqUkO1kfIZN5cQn/bw="; 15 15 16 16 excludedPackages = [ "./build" ]; 17 17
+2 -2
pkgs/applications/networking/instant-messengers/signal-desktop/signal-desktop-beta.nix
··· 2 2 callPackage ./generic.nix { } rec { 3 3 pname = "signal-desktop-beta"; 4 4 dir = "Signal Beta"; 5 - version = "7.6.0-beta.3"; 5 + version = "7.7.0-beta.1"; 6 6 url = "https://updates.signal.org/desktop/apt/pool/s/signal-desktop-beta/signal-desktop-beta_${version}_amd64.deb"; 7 - hash = "sha256-BbXogNB2BxFQTpvHw0JVOaCV2PQHEQbafSavVcBd/Fg="; 7 + hash = "sha256-oswS1aRkpiTNSpQ6CqfJnoM412RRwraeht4iqq8L1Bk="; 8 8 }
+8 -8
pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix
··· 25 25 , xorg 26 26 }: 27 27 28 - stdenv.mkDerivation rec { 28 + stdenv.mkDerivation (finalAttrs: { 29 29 pname = "whatsapp-for-linux"; 30 30 version = "1.6.4"; 31 31 32 32 src = fetchFromGitHub { 33 33 owner = "eneshecan"; 34 - repo = pname; 35 - rev = "v${version}"; 36 - sha256 = "sha256-DU9tvIvDfOtBydR68yeRMFYdMjiBrOobCDXIZMmm7pQ="; 34 + repo = "whatsapp-for-linux"; 35 + rev = "v${finalAttrs.version}"; 36 + hash = "sha256-DU9tvIvDfOtBydR68yeRMFYdMjiBrOobCDXIZMmm7pQ="; 37 37 }; 38 38 39 39 nativeBuildInputs = [ ··· 68 68 xorg.libXtst 69 69 ]; 70 70 71 - meta = with lib; { 71 + meta = { 72 72 homepage = "https://github.com/eneshecan/whatsapp-for-linux"; 73 73 description = "Whatsapp desktop messaging app"; 74 74 mainProgram = "whatsapp-for-linux"; 75 - license = licenses.gpl3Only; 76 - maintainers = with maintainers; [ bartuka ]; 75 + license = lib.licenses.gpl3Only; 76 + maintainers = with lib.maintainers; [ bartuka ]; 77 77 platforms = [ "x86_64-linux" ]; 78 78 }; 79 - } 79 + })
+9 -9
pkgs/applications/networking/remote/anydesk/default.nix
··· 5 5 6 6 let 7 7 description = "Desktop sharing application, providing remote support and online meetings"; 8 - in stdenv.mkDerivation rec { 8 + in stdenv.mkDerivation (finalAttrs: { 9 9 pname = "anydesk"; 10 10 version = "6.3.2"; 11 11 12 12 src = fetchurl { 13 13 urls = [ 14 - "https://download.anydesk.com/linux/anydesk-${version}-amd64.tar.gz" 15 - "https://download.anydesk.com/linux/generic-linux/anydesk-${version}-amd64.tar.gz" 14 + "https://download.anydesk.com/linux/anydesk-${finalAttrs.version}-amd64.tar.gz" 15 + "https://download.anydesk.com/linux/generic-linux/anydesk-${finalAttrs.version}-amd64.tar.gz" 16 16 ]; 17 17 hash = "sha256-nSY4qHRsEvQk4M3JDHalAk3C6Y21WlfDQ2Gpp6/jjMs="; 18 18 }; ··· 54 54 postFixup = '' 55 55 patchelf \ 56 56 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 57 - --set-rpath "${lib.makeLibraryPath buildInputs}" \ 57 + --set-rpath "${lib.makeLibraryPath finalAttrs.buildInputs}" \ 58 58 $out/bin/anydesk 59 59 60 60 # pangox is not actually necessary (it was only added as a part of gtkglext) ··· 77 77 }; 78 78 }; 79 79 80 - meta = with lib; { 80 + meta = { 81 81 inherit description; 82 82 homepage = "https://www.anydesk.com"; 83 - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 84 - license = licenses.unfree; 83 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 84 + license = lib.licenses.unfree; 85 85 platforms = [ "x86_64-linux" ]; 86 - maintainers = with maintainers; [ shyim cheriimoya ]; 86 + maintainers = with lib.maintainers; [ shyim cheriimoya ]; 87 87 }; 88 - } 88 + })
+2 -2
pkgs/applications/office/timeular/default.nix
··· 5 5 }: 6 6 7 7 let 8 - version = "6.7.5"; 8 + version = "6.7.6"; 9 9 pname = "timeular"; 10 10 11 11 src = fetchurl { 12 12 url = "https://s3.amazonaws.com/timeular-desktop-packages/linux/production/Timeular-${version}.AppImage"; 13 - hash = "sha256-b/I34f8fGgPr4+fZJ+2cb+Xi/AvotxNHYg7IaLTByPk="; 13 + hash = "sha256-wQUR2jLJi1peXqXJJj/72X9xNaD2DzNiB0mGFiaEWBE="; 14 14 }; 15 15 16 16 appimageContents = appimageTools.extractType2 {
+2 -2
pkgs/applications/science/biology/igv/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "igv"; 5 - version = "2.17.3"; 5 + version = "2.17.4"; 6 6 src = fetchzip { 7 7 url = "https://data.broadinstitute.org/igv/projects/downloads/${lib.versions.majorMinor version}/IGV_${version}.zip"; 8 - sha256 = "sha256-SGqkWBv4nol0+lnGN7wBHJvndcIqZ5+Wt1wAcXA42cU="; 8 + sha256 = "sha256-LF/rwm/XlLHAJjiAlQVTmx5l+5Np2b5rPjoCdN/qERU="; 9 9 }; 10 10 11 11 installPhase = ''
+26 -12
pkgs/applications/science/math/scotch/default.nix pkgs/by-name/sc/scotch/package.nix
··· 1 - { lib, stdenv, fetchurl, bison, mpi, flex, zlib}: 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitLab, 5 + bison, 6 + mpi, 7 + flex, 8 + zlib, 9 + }: 2 10 3 - stdenv.mkDerivation rec { 11 + stdenv.mkDerivation (finalAttrs: { 12 + pname = "scotch"; 4 13 version = "6.1.1"; 5 - pname = "scotch"; 6 - src_name = "scotch_${version}"; 7 14 8 - buildInputs = [ bison mpi flex zlib ]; 15 + buildInputs = [ 16 + bison 17 + mpi 18 + flex 19 + zlib 20 + ]; 9 21 10 - src = fetchurl { 11 - url = "https://gforge.inria.fr/frs/download.php/file/34618/${src_name}.tar.gz"; 12 - sha256 = "sha256-OQUvWf9HSkppzvwlzzyvhClACIneugEO5kA8oYj4sxE="; 22 + src = fetchFromGitLab { 23 + domain = "gitlab.inria.fr"; 24 + owner = "scotch"; 25 + repo = "scotch"; 26 + rev = "v${finalAttrs.version}"; 27 + hash = "sha256-GUV6s+P56OAJq9AMe+LZOMPICQO/RuIi+hJAecmO5Wc="; 13 28 }; 14 29 15 - sourceRoot = "${src_name}/src"; 16 - 17 30 preConfigure = '' 31 + cd src 18 32 ln -s Make.inc/Makefile.inc.x86-64_pc_linux2 Makefile.inc 19 33 ''; 20 34 21 35 buildFlags = [ "scotch ptscotch" ]; 36 + 22 37 installFlags = [ "prefix=\${out}" ]; 23 38 24 39 meta = { ··· 32 47 maintainers = [ lib.maintainers.bzizou ]; 33 48 platforms = lib.platforms.linux; 34 49 }; 35 - } 36 - 50 + })
+38 -10
pkgs/applications/video/manim/default.nix pkgs/development/python-modules/manim/default.nix
··· 1 1 { lib 2 + , buildPythonPackage 2 3 , fetchFromGitHub 4 + , poetry-core 5 + , pytest-xdist 6 + , pytestCheckHook 7 + , pythonOlder 8 + , pythonRelaxDepsHook 3 9 4 10 , cairo 5 11 , ffmpeg 6 12 , texliveInfraOnly 7 13 8 - , python3 14 + , click 15 + , click-default-group 16 + , cloup 17 + , colour 18 + , grpcio 19 + , grpcio-tools 20 + , importlib-metadata 21 + , isosurfaces 22 + , jupyterlab 23 + , manimpango 24 + , mapbox-earcut 25 + , moderngl 26 + , moderngl-window 27 + , networkx 28 + , numpy 29 + , pillow 30 + , pycairo 31 + , pydub 32 + , pygments 33 + , rich 34 + , scipy 35 + , screeninfo 36 + , skia-pathops 37 + , srt 38 + , svgelements 39 + , tqdm 40 + , watchdog 9 41 }: 10 42 11 43 let ··· 42 74 babel-english gnu-freefont mathastext cbfonts-fd 43 75 ]); 44 76 45 - python = python3; 46 - 47 - in python.pkgs.buildPythonApplication rec { 77 + in buildPythonPackage rec { 48 78 pname = "manim"; 49 79 pyproject = true; 50 80 version = "0.18.1"; 51 - disabled = python3.pythonOlder "3.9"; 81 + disabled = pythonOlder "3.9"; 52 82 53 83 src = fetchFromGitHub { 54 84 owner = "ManimCommunity"; ··· 57 87 hash = "sha256-o+Wl3NMK6yopcsRVFtZuUE9c1GABa5d8rbQNHDJ4OiQ="; 58 88 }; 59 89 60 - nativeBuildInputs = with python.pkgs; [ 90 + nativeBuildInputs = [ 61 91 poetry-core 62 92 pythonRelaxDepsHook 63 93 ]; ··· 81 111 82 112 buildInputs = [ cairo ]; 83 113 84 - propagatedBuildInputs = with python.pkgs; [ 114 + propagatedBuildInputs = [ 85 115 click 86 116 click-default-group 87 117 cloup ··· 101 131 pycairo 102 132 pydub 103 133 pygments 104 - pysrt 105 134 rich 106 135 scipy 107 136 screeninfo ··· 122 151 nativeCheckInputs = [ 123 152 ffmpeg 124 153 manim-tinytex 125 - ] ++ (with python.pkgs; [ 126 154 pytest-xdist 127 155 pytestCheckHook 128 - ]); 156 + ]; 129 157 130 158 # about 55 of ~600 tests failing mostly due to demand for display 131 159 disabledTests = import ./failing_tests.nix;
pkgs/applications/video/manim/failing_tests.nix pkgs/development/python-modules/manim/failing_tests.nix
pkgs/applications/video/manim/pytest-report-header.patch pkgs/development/python-modules/manim/pytest-report-header.patch
+2
pkgs/applications/video/mpv/scripts/default.nix
··· 77 77 mpv-cheatsheet = callPackage ./mpv-cheatsheet.nix { }; 78 78 mpv-osc-modern = callPackage ./mpv-osc-modern.nix { }; 79 79 mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { }; 80 + mpv-slicing = callPackage ./mpv-slicing.nix { }; 80 81 mpv-webm = callPackage ./mpv-webm.nix { }; 81 82 mpvacious = callPackage ./mpvacious.nix { }; 82 83 quack = callPackage ./quack.nix { }; ··· 88 89 thumbfast = callPackage ./thumbfast.nix { }; 89 90 thumbnail = callPackage ./thumbnail.nix { }; 90 91 uosc = callPackage ./uosc.nix { }; 92 + videoclip = callPackage ./videoclip.nix { }; 91 93 visualizer = callPackage ./visualizer.nix { }; 92 94 vr-reversal = callPackage ./vr-reversal.nix { }; 93 95 webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { };
+32
pkgs/applications/video/mpv/scripts/mpv-slicing.nix
··· 1 + { 2 + lib, 3 + buildLua, 4 + fetchFromGitHub, 5 + ffmpeg, 6 + }: 7 + 8 + buildLua { 9 + pname = "mpv-slicing"; 10 + version = "0-unstable-2017-11-25"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "Kagami"; 14 + repo = "mpv_slicing"; 15 + rev = "d09c11227704c8d5bdaa2c799ef64dce881c63a7"; 16 + hash = "sha256-MKoM0f74/XoctiHQVOB3LzFWtJXpsREfQh5icaebCJo="; 17 + }; 18 + 19 + postPatch = '' 20 + substituteInPlace slicing.lua \ 21 + --replace-fail ffmpeg ${lib.getExe ffmpeg} 22 + ''; 23 + 24 + passthru.scriptName = "slicing.lua"; 25 + 26 + meta = { 27 + description = "A lua script to cut fragments of the video in uncompressed RGB format"; 28 + homepage = "https://github.com/Kagami/mpv_slicing"; 29 + license = lib.licenses.cc0; 30 + maintainers = with lib.maintainers; [ tomasajt ]; 31 + }; 32 + }
+40
pkgs/applications/video/mpv/scripts/videoclip.nix
··· 1 + { lib 2 + , fetchFromGitHub 3 + , curl 4 + , xclip 5 + , wl-clipboard 6 + , stdenv 7 + , buildLua 8 + , unstableGitUpdater 9 + }: 10 + buildLua { 11 + pname = "videoclip"; 12 + version = "0-unstable-2024-03-08"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "Ajatt-Tools"; 16 + repo = "videoclip"; 17 + rev = "0e3f2245b03e888c14c093a50261e0f54ecdf8e8"; 18 + hash = "sha256-Sg6LHU9OVmVx3cTs8Y0WL8wACb5BlVyeBRccoX+7BXY="; 19 + }; 20 + 21 + patchPhase = '' 22 + substituteInPlace platform.lua \ 23 + --replace \'curl\' \'${lib.getExe curl}\' \ 24 + '' + lib.optionalString stdenv.isLinux '' 25 + --replace xclip ${lib.getExe xclip} \ 26 + --replace wl-copy ${lib.getExe' wl-clipboard "wl-copy"} 27 + ''; 28 + 29 + scriptPath = "."; 30 + passthru.scriptName = "videoclip"; 31 + passthru.updateScript = unstableGitUpdater { }; 32 + 33 + meta = with lib; { 34 + description = "Easily create videoclips with mpv"; 35 + homepage = "https://github.com/Ajatt-Tools/videoclip"; 36 + license = licenses.gpl3Plus; 37 + platforms = platforms.all; 38 + maintainers = with maintainers; [ BatteredBunny ]; 39 + }; 40 + }
+2 -2
pkgs/applications/video/vdr/softhddevice/default.nix
··· 14 14 }: 15 15 stdenv.mkDerivation rec { 16 16 pname = "vdr-softhddevice"; 17 - version = "2.1.2"; 17 + version = "2.2.0"; 18 18 19 19 src = fetchFromGitHub { 20 20 owner = "ua0lnj"; 21 21 repo = "vdr-plugin-softhddevice"; 22 - sha256 = "sha256-y6b0nOf597uxS9zDh0NQOwLN81nk4U7lHK2CalyVi8s="; 22 + sha256 = "sha256-1yCDNfUdQLgJ0WWyx0q3Hi0yxb6zxaK7wMzLD9jXweI="; 23 23 rev = "v${version}"; 24 24 }; 25 25
+2 -2
pkgs/by-name/an/anytype/package.nix
··· 2 2 3 3 let 4 4 pname = "anytype"; 5 - version = "0.40.2"; 5 + version = "0.40.8"; 6 6 name = "Anytype-${version}"; 7 7 src = fetchurl { 8 8 url = "https://github.com/anyproto/anytype-ts/releases/download/v${version}/${name}.AppImage"; 9 9 name = "Anytype-${version}.AppImage"; 10 - hash = "sha256-RO8rYH0wHPxwey1ICAVK1jURs7b+oxLXRlychgi6c1c="; 10 + hash = "sha256-Rvl52nKrOWQfT2qgssEpFjQCjva54zPvm6aEXmO0NTc="; 11 11 }; 12 12 appimageContents = appimageTools.extractType2 { inherit name src; }; 13 13 in appimageTools.wrapType2 {
+2 -2
pkgs/by-name/dm/dmarc-report-converter/package.nix
··· 7 7 8 8 buildGoModule rec { 9 9 pname = "dmarc-report-converter"; 10 - version = "0.7.1"; 10 + version = "0.7.2"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "tierpod"; 14 14 repo = "dmarc-report-converter"; 15 15 rev = "v${version}"; 16 - hash = "sha256-cP96tiBpMFNEHuIF0sovi+Q4yW8wMUqr138RyMOFoho="; 16 + hash = "sha256-93sNEBV7MxZr6tqPaFKgY0KA1J3W0HoCiIDZg268Smc="; 17 17 }; 18 18 19 19 vendorHash = null;
+2 -7
pkgs/by-name/gp/gpt4all/package.nix
··· 11 11 12 12 stdenv.mkDerivation (finalAttrs: { 13 13 pname = "gpt4all"; 14 - version = "2.7.3"; 14 + version = "2.7.4"; 15 15 16 16 src = fetchFromGitHub { 17 17 fetchSubmodules = true; 18 - hash = "sha256-hIfeADP3tiooGZr/OMVFIkOAniMWXj9AsVzMPlVbucE="; 18 + hash = "sha256-G22d2Q6z7DmPHM/DEE7iyJ8SWRZdoVdSWw+gnPVHdEg="; 19 19 owner = "nomic-ai"; 20 20 repo = "gpt4all"; 21 21 rev = "v${finalAttrs.version}"; 22 22 }; 23 23 24 24 sourceRoot = "${finalAttrs.src.name}/gpt4all-chat"; 25 - 26 - postPatch = '' 27 - substituteInPlace CMakeLists.txt \ 28 - --replace-fail 'set(CMAKE_INSTALL_PREFIX ''${CMAKE_BINARY_DIR}/install)' "" 29 - ''; 30 25 31 26 nativeBuildInputs = [ 32 27 cmake
+4 -4
pkgs/by-name/ho/hoppscotch/package.nix
··· 7 7 8 8 let 9 9 pname = "hoppscotch"; 10 - version = "24.3.1-2"; 10 + version = "24.3.2-1"; 11 11 12 12 src = fetchurl { 13 13 aarch64-darwin = { 14 14 url = "https://github.com/hoppscotch/releases/releases/download/v${version}/Hoppscotch_mac_aarch64.dmg"; 15 - hash = "sha256-F4vQwdNObIE8Fx75TfwI0QxbY5n2syT4sEIhgAu2Z5c="; 15 + hash = "sha256-/Sa51x/Hy4mOxNL+6r+5sk/cF4iBbup9UBaWqzsnrBM="; 16 16 }; 17 17 x86_64-darwin = { 18 18 url = "https://github.com/hoppscotch/releases/releases/download/v${version}/Hoppscotch_mac_x64.dmg"; 19 - hash = "sha256-itC6PdNdzcw5Lv/hQkT0AsTGQ8kmTwT6cipyaAynph8="; 19 + hash = "sha256-6vm3pQPg5OKRtP6W1CNQxy4fi9niw4Y4nXjargwHxuA="; 20 20 }; 21 21 x86_64-linux = { 22 22 url = "https://github.com/hoppscotch/releases/releases/download/v${version}/Hoppscotch_linux_x64.AppImage"; 23 - hash = "sha256-vj9UYizRmyIK9mLNSW/qFc/QmnWNhniqJf3gG66WPb0="; 23 + hash = "sha256-iGD/9alVwSsIhbSl9HZXdB5MQNSjn18YdgebyoizriE="; 24 24 }; 25 25 }.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}"); 26 26
+8 -8
pkgs/by-name/ke/keydb/package.nix
··· 18 18 nixosTests, 19 19 }: 20 20 21 - stdenv.mkDerivation rec { 21 + stdenv.mkDerivation (finalAttrs: { 22 22 pname = "keydb"; 23 23 version = "6.3.4"; 24 24 25 25 src = fetchFromGitHub { 26 26 owner = "snapchat"; 27 27 repo = "keydb"; 28 - rev = "v${version}"; 28 + rev = "v${finalAttrs.version}"; 29 29 hash = "sha256-j6qgK6P3Fv+b6k9jwKQ5zW7XLkKbXXcmHKBCQYvwEIU="; 30 30 }; 31 31 ··· 94 94 passthru.tests.redis = nixosTests.redis; 95 95 passthru.serverBin = "keydb-server"; 96 96 97 - meta = with lib; { 97 + meta = { 98 98 homepage = "https://keydb.dev"; 99 99 description = "A Multithreaded Fork of Redis"; 100 - license = licenses.bsd3; 101 - platforms = platforms.all; 102 - changelog = "https://github.com/Snapchat/KeyDB/raw/v${version}/00-RELEASENOTES"; 103 - maintainers = teams.helsinki-systems.members; 100 + license = lib.licenses.bsd3; 101 + platforms = lib.platforms.all; 102 + changelog = "https://github.com/Snapchat/KeyDB/raw/v${finalAttrs.version}/00-RELEASENOTES"; 103 + maintainers = lib.teams.helsinki-systems.members; 104 104 mainProgram = "keydb-cli"; 105 105 }; 106 - } 106 + })
+3 -3
pkgs/by-name/ko/kor/package.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "kor"; 5 - version = "0.3.7"; 5 + version = "0.3.8"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "yonahd"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - hash = "sha256-wjq4IkF3agmculIH+WfBAGd0ciJBX9aj4EsmUvje9Aw="; 11 + hash = "sha256-4lXLmh8BP7h6k8Tt/oklvv7fmDvmdKQP0P7gaCM2TK0="; 12 12 }; 13 13 14 - vendorHash = "sha256-UN3Zf8eo6kMNNzkGsnqyDVMgE2QXRn4wg+XULu/uBGE="; 14 + vendorHash = "sha256-ScV12Xb+tVluXC2Jat44atkKXZIzIcUdZ+lyD1Y3dIM="; 15 15 16 16 preCheck = '' 17 17 HOME=$(mktemp -d)
+10 -7
pkgs/by-name/la/lager/package.nix
··· 8 8 , zug 9 9 }: 10 10 11 - stdenv.mkDerivation rec { 11 + stdenv.mkDerivation (finalAttrs: { 12 12 pname = "lager"; 13 13 version = "0.1.0"; 14 + 14 15 src = fetchFromGitHub { 15 16 owner = "arximboldi"; 16 17 repo = "lager"; 17 - rev = "v${version}"; 18 + rev = "v${finalAttrs.version}"; 18 19 hash = "sha256-KTHrVV/186l4klwlcfDwFsKVoOVqWCUPzHnIbWuatbg="; 19 20 }; 21 + 20 22 buildInputs = [ 21 23 boost 22 24 immer ··· 28 30 cmakeFlags = [ 29 31 "-Dlager_BUILD_EXAMPLES=OFF" 30 32 ]; 31 - meta = with lib; { 32 - homepage = "https://github.com/arximboldi/lager"; 33 + 34 + meta = { 35 + homepage = "https://github.com/arximboldi/lager"; 33 36 description = "C++ library for value-oriented design using the unidirectional data-flow architecture — Redux for C++"; 34 - license = licenses.mit; 35 - maintainers = with maintainers; [ nek0 ]; 37 + license = lib.licenses.mit; 38 + maintainers = with lib.maintainers; [ nek0 ]; 36 39 }; 37 - } 40 + })
+3 -4
pkgs/by-name/li/live555/package.nix
··· 10 10 11 11 stdenv.mkDerivation (finalAttrs: { 12 12 pname = "live555"; 13 - version = "2024.04.14"; 13 + version = "2024.04.19"; 14 14 15 15 src = fetchurl { 16 16 urls = [ ··· 19 19 "https://download.videolan.org/contrib/live555/live.${finalAttrs.version}.tar.gz" 20 20 "mirror://sourceforge/slackbuildsdirectlinks/live.${finalAttrs.version}.tar.gz" 21 21 ]; 22 - hash = "sha256-mR5rKGKtTwMq3p+xAAGdo0DNNnIe4KHladLPlnhVhNY="; 22 + hash = "sha256-5sLr/sZ3LB83CEJx5OUjarx/Dh/ESJ+YaXY0QCAN3MI="; 23 23 }; 24 24 25 25 patches = [ ··· 54 54 config.linux 55 55 '' 56 56 # condition from icu/base.nix 57 - + lib.optionalString (stdenv.hostPlatform.libc == "glibc" 58 - || stdenv.hostPlatform.libc == "musl") '' 57 + + lib.optionalString (lib.elem stdenv.hostPlatform.libc [ "glibc" "musl" ]) '' 59 58 substituteInPlace liveMedia/include/Locale.hh \ 60 59 --replace '<xlocale.h>' '<locale.h>' 61 60 '';
+2 -2
pkgs/by-name/lu/lunar-client/package.nix
··· 6 6 7 7 appimageTools.wrapType2 rec { 8 8 pname = "lunar-client"; 9 - version = "3.2.5"; 9 + version = "3.2.6"; 10 10 11 11 src = fetchurl { 12 12 url = "https://launcherupdates.lunarclientcdn.com/Lunar%20Client-${version}.AppImage"; 13 - hash = "sha512-flve07l13w4aRPPMhbf1Nbaxy6i1ljxx2J/9vg4WLQK4k09PVJKGn6b8nxe5d90LCYMhwEHfEvrHFB/tNFKJ9w=="; 13 + hash = "sha512-JZ6fXUDurLxe6acRRXTHot2GTUqMaSwy7N5K4cmFmOn4s8W2aXek+o8med3ytaxoTd6FmibXmCxrjnOVMHBRGA=="; 14 14 }; 15 15 16 16 extraInstallCommands =
+3 -3
pkgs/by-name/pi/pinact/package.nix
··· 7 7 8 8 let 9 9 pname = "pinact"; 10 - version = "0.1.2"; 10 + version = "0.1.3"; 11 11 src = fetchFromGitHub { 12 12 owner = "suzuki-shunsuke"; 13 13 repo = "pinact"; 14 14 rev = "v${version}"; 15 - hash = "sha256-OQo21RHk0c+eARKrA2qB4NAWWanb94DOZm4b9lqDz8o="; 15 + hash = "sha256-ifUnF7u4/vMy89xb7sk4tPKQYdFBYAIHc0GYVBMWvWM="; 16 16 }; 17 17 in 18 18 buildGoModule { 19 19 inherit pname version src; 20 20 21 - vendorHash = "sha256-g7rdIE+w/pn70i8fOmAo/QGjpla3AUWm7a9MOhNmrgE="; 21 + vendorHash = "sha256-ht4eV62w9AWKYahrd83LmBI+Tu2Q64YA3t90N4BR1e4="; 22 22 23 23 doCheck = true; 24 24
+4 -2
pkgs/by-name/pu/puppet-bolt/package.nix
··· 7 7 testers, 8 8 }: 9 9 10 - bundlerApp { 10 + (bundlerApp { 11 11 pname = "bolt"; 12 12 13 13 gemdir = ./.; ··· 42 42 maintainers = with lib.maintainers; [ uvnikita anthonyroussel ]; 43 43 platforms = lib.platforms.unix; 44 44 }; 45 - } 45 + }).overrideAttrs (old: { 46 + name = "puppet-bolt-${(import ./gemset.nix).bolt.version}"; 47 + })
+51
pkgs/by-name/sh/shell-gpt/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + python3, 5 + }: 6 + 7 + python3.pkgs.buildPythonApplication rec { 8 + pname = "shell-gpt"; 9 + version = "1.4.3"; 10 + pyproject = true; 11 + 12 + src = fetchFromGitHub { 13 + owner = "TheR1D"; 14 + repo = "shell_gpt"; 15 + rev = "refs/tags/${version}"; 16 + hash = "sha256-T37L4U1kOrrIQJ2znq2UupD3pyit9xd8rAsEwUvGiQ8="; 17 + }; 18 + 19 + pythonRelaxDeps = [ 20 + "requests" 21 + "rich" 22 + "distro" 23 + "typer" 24 + "instructor" 25 + ]; 26 + 27 + build-system = with python3.pkgs; [ hatchling ]; 28 + 29 + nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ]; 30 + 31 + propagatedBuildInputs = with python3.pkgs; [ 32 + click 33 + distro 34 + instructor 35 + openai 36 + rich 37 + typer 38 + ]; 39 + 40 + # Tests want to read the OpenAI API key from stdin 41 + doCheck = false; 42 + 43 + meta = with lib; { 44 + description = "Access ChatGPT from your terminal"; 45 + homepage = "https://github.com/TheR1D/shell_gpt"; 46 + changelog = "https://github.com/TheR1D/shell_gpt/releases/tag/${version}"; 47 + license = licenses.mit; 48 + maintainers = with maintainers; [ mglolenstine ]; 49 + mainProgram = "sgpt"; 50 + }; 51 + }
+2 -2
pkgs/by-name/si/silverbullet/package.nix
··· 6 6 }: 7 7 stdenv.mkDerivation (finalAttrs: { 8 8 pname = "silverbullet"; 9 - version = "0.7.6"; 9 + version = "0.7.7"; 10 10 11 11 src = fetchurl { 12 12 url = "https://github.com/silverbulletmd/silverbullet/releases/download/${finalAttrs.version}/silverbullet.js"; 13 - hash = "sha256-bnD9iZVRIg6otgDi4yNWySqmJsJJIVnjFGsTrGCMw/o="; 13 + hash = "sha256-EhHPysliRi1bv/skS4+ljQW6qFsijmSup1+7/fVfFdg="; 14 14 }; 15 15 16 16 dontUnpack = true;
+7 -7
pkgs/by-name/sy/syslogng/package.nix
··· 59 59 ]; 60 60 py = python3.withPackages python-deps; 61 61 in 62 - stdenv.mkDerivation rec { 62 + stdenv.mkDerivation (finalAttrs: { 63 63 pname = "syslog-ng"; 64 64 version = "4.7.1"; 65 65 66 66 src = fetchFromGitHub { 67 67 owner = "syslog-ng"; 68 68 repo = "syslog-ng"; 69 - rev = "syslog-ng-${version}"; 69 + rev = "syslog-ng-${finalAttrs.version}"; 70 70 hash = "sha256-runFMUxQv7B023I38QfGqn89ZbzA5vMXHOOkYwMxArI="; 71 71 fetchSubmodules = true; 72 72 }; ··· 117 117 118 118 enableParallelBuilding = true; 119 119 120 - meta = with lib; { 120 + meta = { 121 121 homepage = "https://www.syslog-ng.com"; 122 122 description = "Next-generation syslogd with advanced networking and filtering capabilities"; 123 - license = with licenses; [ gpl2Plus lgpl21Plus ]; 124 - maintainers = with maintainers; [ vifino ]; 125 - platforms = platforms.linux; 123 + license = with lib.licenses; [ gpl2Plus lgpl21Plus ]; 124 + maintainers = with lib.maintainers; [ vifino ]; 125 + platforms = lib.platforms.linux; 126 126 }; 127 - } 127 + })
+2 -2
pkgs/by-name/un/unciv/package.nix
··· 27 27 in 28 28 stdenv.mkDerivation rec { 29 29 pname = "unciv"; 30 - version = "4.11.8"; 30 + version = "4.11.9"; 31 31 32 32 src = fetchurl { 33 33 url = "https://github.com/yairm210/Unciv/releases/download/${version}/Unciv.jar"; 34 - hash = "sha256-iNcz6kfzlr1f1kC6xo1htyT46JjgEMeo21JIfOBxeQw="; 34 + hash = "sha256-fAosJmEAQGA1QAyabcmqwuDeqUM+t3mNIfSOrAwc5hg="; 35 35 }; 36 36 37 37 dontUnpack = true;
+3 -3
pkgs/data/fonts/cascadia-code/default.nix
··· 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "cascadia-code"; 5 - version = "2111.01"; 5 + version = "2404.23"; 6 6 7 7 src = fetchzip { 8 8 url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip"; 9 9 stripRoot = false; 10 - hash = "sha256-v9Vm5X80wEvorMhIlRw3MnyuSOdBpTl9ibBPpmm1vig="; 10 + hash = "sha256-Z2AzBeNiM6mc1OHCJRv0rUvH8WRygyQGSOvwbAISYHE="; 11 11 }; 12 12 13 13 installPhase = '' ··· 24 24 homepage = "https://github.com/microsoft/cascadia-code"; 25 25 changelog = "https://github.com/microsoft/cascadia-code/raw/v${version}/FONTLOG.txt"; 26 26 license = licenses.ofl; 27 - maintainers = [ ]; 27 + maintainers = with maintainers; [ ryanccn ]; 28 28 platforms = platforms.all; 29 29 }; 30 30 }
+1 -1
pkgs/development/compilers/rust/rustc.nix
··· 274 274 # Platforms with host tools from 275 275 # https://doc.rust-lang.org/nightly/rustc/platform-support.html 276 276 "x86_64-darwin" "i686-darwin" "aarch64-darwin" 277 - "i686-freebsd13" "x86_64-freebsd13" 277 + "i686-freebsd" "x86_64-freebsd" 278 278 "x86_64-solaris" 279 279 "aarch64-linux" "armv6l-linux" "armv7l-linux" "i686-linux" 280 280 "loongarch64-linux" "powerpc64-linux" "powerpc64le-linux"
+3 -3
pkgs/development/compilers/sbcl/default.nix
··· 19 19 20 20 let 21 21 versionMap = { 22 - "2.4.2" = { 23 - sha256 = "sha256-/APLUtEqr+h1nmMoRQogG73fibFwcaToPznoC0Pd7w8="; 24 - }; 25 22 "2.4.3" = { 26 23 sha256 = "sha256-icmq35K4KtPHSj1PFYoDiJPeoOTzlNyvyWNYPDC3w/I="; 24 + }; 25 + "2.4.4" = { 26 + sha256 = "sha256-ipMmJ7Px2OlhjxzcIl7csAJFaARpfiyH0UBoN2ShBtU="; 27 27 }; 28 28 }; 29 29 # Collection of pre-built SBCL binaries for platforms that need them for
+1 -1
pkgs/development/interpreters/ngn-k/default.nix
··· 65 65 homepage = "https://codeberg.org/ngn/k"; 66 66 license = lib.licenses.agpl3Only; 67 67 maintainers = [ lib.maintainers.sternenseemann ]; 68 - platforms = [ "x86_64-linux" "x86_64-freebsd13" ]; 68 + platforms = [ "x86_64-linux" "x86_64-freebsd" ]; 69 69 }; 70 70 }
+1
pkgs/development/libraries/duckdb/default.nix
··· 98 98 # fails with Out of Memory Error 99 99 "test/sql/copy/parquet/batched_write/batch_memory_usage.test" 100 100 # wants http connection 101 + "test/sql/copy/csv/recursive_query_csv.test" 101 102 "test/sql/copy/csv/test_mixed_lines.test" 102 103 ] ++ lib.optionals stdenv.isAarch64 [ 103 104 "test/sql/aggregate/aggregates/test_kurtosis.test"
+3 -3
pkgs/development/libraries/duckdb/versions.json
··· 1 1 { 2 - "version": "0.10.1", 3 - "rev": "4a89d97db8a5a23a15f3025c8d2d2885337c2637", 4 - "hash": "sha256-/j/DaUzsfACI5Izr4lblkYmIEmKsOXr760UTwC0l/qg=" 2 + "version": "0.10.2", 3 + "rev": "1601d94f94a7e0d2eb805a94803eb1e3afbbe4ed", 4 + "hash": "sha256-CTZ90KJvLPQqu1FYciEWsxJbvybCjeBsi/12bkfVd9Q=" 5 5 }
+3 -8
pkgs/development/libraries/libbluray/default.nix
··· 1 1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, fontconfig, autoreconfHook, DiskArbitration 2 - , withJava ? false, jdk, ant 2 + , withJava ? false, jdk17, ant, stripJavaArchivesHook 3 3 , withAACS ? false, libaacs 4 4 , withBDplus ? false, libbdplus 5 5 , withMetadata ? true, libxml2 ··· 19 19 }; 20 20 21 21 nativeBuildInputs = [ pkg-config autoreconfHook ] 22 - ++ lib.optionals withJava [ ant ]; 22 + ++ lib.optionals withJava [ jdk17 ant stripJavaArchivesHook ]; 23 23 24 24 buildInputs = [ fontconfig ] 25 - ++ lib.optional withJava jdk 26 25 ++ lib.optional withMetadata libxml2 27 26 ++ lib.optional withFonts freetype 28 27 ++ lib.optional stdenv.isDarwin DiskArbitration; 29 28 30 29 propagatedBuildInputs = lib.optional withAACS libaacs; 31 30 32 - NIX_LDFLAGS = lib.optionalString withAACS "-L${libaacs}/lib -laacs" 31 + env.NIX_LDFLAGS = lib.optionalString withAACS "-L${libaacs}/lib -laacs" 33 32 + lib.optionalString withBDplus " -L${libbdplus}/lib -lbdplus"; 34 - 35 - preConfigure = lib.optionalString withJava '' 36 - export JDK_HOME="${jdk.home}" 37 - ''; 38 33 39 34 configureFlags = lib.optional (!withJava) "--disable-bdjava-jar" 40 35 ++ lib.optional (!withMetadata) "--without-libxml2"
+1 -1
pkgs/development/libraries/libunwind/default.nix
··· 50 50 description = "A portable and efficient API to determine the call-chain of a program"; 51 51 maintainers = with maintainers; [ orivej ]; 52 52 # https://github.com/libunwind/libunwind#libunwind 53 - platforms = [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-freebsd13" "i686-linux" "loongarch64-linux" "mips64el-linux" "mipsel-linux" "powerpc64-linux" "powerpc64le-linux" "riscv64-linux" "s390x-linux" "x86_64-freebsd13" "x86_64-linux" "x86_64-solaris" ]; 53 + platforms = [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-freebsd" "i686-linux" "loongarch64-linux" "mips64el-linux" "mipsel-linux" "powerpc64-linux" "powerpc64le-linux" "riscv64-linux" "s390x-linux" "x86_64-freebsd" "x86_64-linux" "x86_64-solaris" ]; 54 54 license = licenses.mit; 55 55 }; 56 56 }
+2 -2
pkgs/development/libraries/python-qt/default.nix
··· 12 12 13 13 stdenv.mkDerivation (finalAttrs: { 14 14 pname = "python-qt"; 15 - version = "3.5.1"; 15 + version = "3.5.2"; 16 16 17 17 src = fetchFromGitHub { 18 18 owner = "MeVisLab"; 19 19 repo = "pythonqt"; 20 20 rev = "v${finalAttrs.version}"; 21 - hash = "sha256-IED6UFk8UTle7g/yPC0nXOEgJwrs6sB/Dk3OTyVgHPo="; 21 + hash = "sha256-Mpi1pAPS/UuzaBK7I1kI0HlS3dphcKiVXIPuJwdEDXM="; 22 22 }; 23 23 24 24 nativeBuildInputs = [
+2
pkgs/development/libraries/wxwidgets/wxGTK32.nix
··· 109 109 "--disable-monolithic" 110 110 "--enable-mediactrl" 111 111 "--with-nanosvg" 112 + "--disable-rpath" 113 + "--enable-repro-build" 112 114 (if compat28 then "--enable-compat28" else "--disable-compat28") 113 115 (if compat30 then "--enable-compat30" else "--disable-compat30") 114 116 ] ++ lib.optional unicode "--enable-unicode"
+2 -2
pkgs/development/python-modules/aiortm/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "aiortm"; 19 - version = "0.8.12"; 19 + version = "0.8.13"; 20 20 pyproject = true; 21 21 22 22 disabled = pythonOlder "3.9"; ··· 25 25 owner = "MartinHjelmare"; 26 26 repo = "aiortm"; 27 27 rev = "refs/tags/v${version}"; 28 - hash = "sha256-X7MqBDmVfLy5ajqhFcvA8oCaoxy3zLusXkB659qWR5E="; 28 + hash = "sha256-JoolmxZFN0UG8wAMxMAYL8APFjpEcMECirCKUA/UBlY="; 29 29 }; 30 30 31 31 postPatch = ''
+35 -24
pkgs/development/python-modules/anthropic/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , hatchling 5 - , anyio 6 - , distro 7 - , dirty-equals 8 - , httpx 9 - , google-auth 10 - , sniffio 11 - , pydantic 12 - , pytest-asyncio 13 - , respx 14 - , tokenizers 15 - , typing-extensions 16 - , pytestCheckHook 17 - , pythonOlder 1 + { 2 + lib, 3 + anyio, 4 + buildPythonPackage, 5 + dirty-equals, 6 + distro, 7 + fetchFromGitHub, 8 + google-auth, 9 + hatch-fancy-pypi-readme, 10 + hatchling, 11 + httpx, 12 + pydantic, 13 + pytest-asyncio, 14 + pytestCheckHook, 15 + pythonOlder, 16 + respx, 17 + sniffio, 18 + tokenizers, 19 + typing-extensions, 18 20 }: 19 21 20 22 buildPythonPackage rec { 21 23 pname = "anthropic"; 22 - version = "0.19.1"; 24 + version = "0.25.6"; 23 25 pyproject = true; 24 26 25 27 disabled = pythonOlder "3.8"; ··· 28 30 owner = "anthropics"; 29 31 repo = "anthropic-sdk-python"; 30 32 rev = "refs/tags/v${version}"; 31 - hash = "sha256-D9asbwZ9puOuIK6w7cWJ2HmC3JYjamUZPOxVKWq+Va4="; 33 + hash = "sha256-83TufOgu6W9UvoCEUgDiw6gXDAdwyIKEALVF0hjj6wk="; 32 34 }; 33 35 34 - nativeBuildInputs = [ 36 + build-system = [ 35 37 hatchling 38 + hatch-fancy-pypi-readme 36 39 ]; 37 40 38 - propagatedBuildInputs = [ 41 + dependencies = [ 39 42 anyio 40 43 distro 41 44 httpx ··· 56 59 respx 57 60 ]; 58 61 62 + pythonImportsCheck = [ "anthropic" ]; 63 + 64 + disabledTests = [ 65 + # Test require network access 66 + "test_copy_build_request" 67 + ]; 68 + 59 69 disabledTestPaths = [ 60 - # require network access 70 + # Test require network access 61 71 "tests/api_resources" 62 72 ]; 63 73 64 - pythonImportsCheck = [ 65 - "anthropic" 74 + pytestFlagsArray = [ 75 + "-W" 76 + "ignore::DeprecationWarning" 66 77 ]; 67 78 68 79 meta = with lib; {
+2 -2
pkgs/development/python-modules/boto3-stubs/default.nix
··· 366 366 367 367 buildPythonPackage rec { 368 368 pname = "boto3-stubs"; 369 - version = "1.34.94"; 369 + version = "1.34.95"; 370 370 pyproject = true; 371 371 372 372 disabled = pythonOlder "3.7"; ··· 374 374 src = fetchPypi { 375 375 pname = "boto3_stubs"; 376 376 inherit version; 377 - hash = "sha256-ZyKwsCQpPrN3E7jsNdAuLELEi0NhWoVExAKXLbBTQS0="; 377 + hash = "sha256-QSAGsn7nB+m1GghLAqySsUOvijtWcnWCr+wqds6Tw7Y="; 378 378 }; 379 379 380 380 build-system = [ setuptools ];
+3 -1
pkgs/development/python-modules/desktop-notifier/default.nix
··· 6 6 , packaging 7 7 , setuptools 8 8 , dbus-next 9 + , rubicon-objc 9 10 }: 10 11 11 12 buildPythonPackage rec { ··· 30 31 packaging 31 32 ] ++ lib.optionals stdenv.isLinux [ 32 33 dbus-next 34 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 35 + rubicon-objc 33 36 ]; 34 37 35 38 # no tests available, do the imports check instead ··· 45 48 changelog = "https://github.com/samschott/desktop-notifier/releases/tag/v${version}"; 46 49 license = licenses.mit; 47 50 maintainers = with maintainers; [ sfrijters ]; 48 - platforms = platforms.linux; 49 51 }; 50 52 }
+14 -11
pkgs/development/python-modules/duckdb-engine/default.nix
··· 6 6 , duckdb 7 7 , hypothesis 8 8 , ipython-sql 9 + , pandas 9 10 , poetry-core 11 + , pytest-remotedata 10 12 , snapshottest 11 13 , sqlalchemy 12 14 , typing-extensions ··· 14 16 15 17 buildPythonPackage rec { 16 18 pname = "duckdb-engine"; 17 - version = "0.11.2"; 19 + version = "0.12.0"; 18 20 pyproject = true; 19 21 20 - disabled = pythonOlder "3.7"; 22 + disabled = pythonOlder "3.8"; 21 23 22 24 src = fetchFromGitHub { 23 25 repo = "duckdb_engine"; 24 26 owner = "Mause"; 25 27 rev = "refs/tags/v${version}"; 26 - hash = "sha256-yW1gaZ0B6JNX98KzAxf146goniNmWnkMUmJRrScot1w="; 28 + hash = "sha256-cm0vbz0VZ2Ws6FDWJO16q4KZW2obs0CBNrfY9jmR+6A="; 27 29 }; 28 - 29 - patches = [ ./remote_data.patch ]; 30 30 31 31 nativeBuildInputs = [ 32 32 poetry-core ··· 42 42 ''; 43 43 44 44 disabledTests = [ 45 - # this test tries to download the httpfs extension 46 - "test_preload_extension" 47 - "test_motherduck" 48 45 # test should be skipped based on sqlalchemy version but isn't and fails 49 46 "test_commit" 50 - # rowcount no longer generates an attribute error. 51 - "test_rowcount" 52 47 ]; 53 48 54 49 nativeCheckInputs = [ 55 50 pytestCheckHook 51 + ]; 52 + 53 + checkInputs = [ 56 54 hypothesis 57 55 ipython-sql 58 - # TODO(cpcloud): include pandas here when it supports sqlalchemy 2.0 56 + pandas 57 + pytest-remotedata 59 58 snapshottest 60 59 typing-extensions 60 + ]; 61 + 62 + pytestFlagsArray = [ 63 + "-m" "'not remote_data'" 61 64 ]; 62 65 63 66 pythonImportsCheck = [
-24
pkgs/development/python-modules/duckdb-engine/remote_data.patch
··· 1 - diff --git a/duckdb_engine/tests/test_basic.py b/duckdb_engine/tests/test_basic.py 2 - index 302636f..ed20f12 100644 3 - --- a/duckdb_engine/tests/test_basic.py 4 - +++ b/duckdb_engine/tests/test_basic.py 5 - @@ -183,7 +183,6 @@ def test_get_views(engine: Engine) -> None: 6 - 7 - 8 - @mark.skipif(os.uname().machine == "aarch64", reason="not supported on aarch64") 9 - -@mark.remote_data 10 - def test_preload_extension() -> None: 11 - duckdb.default_connection.execute("INSTALL httpfs") 12 - engine = create_engine( 13 - diff --git a/duckdb_engine/tests/test_integration.py b/duckdb_engine/tests/test_integration.py 14 - index 349c976..bf3dbaa 100644 15 - --- a/duckdb_engine/tests/test_integration.py 16 - +++ b/duckdb_engine/tests/test_integration.py 17 - @@ -24,7 +24,6 @@ def test_integration(engine: Engine) -> None: 18 - conn.execute(text("select * from test_df")) 19 - 20 - 21 - -@mark.remote_data 22 - @mark.skipif( 23 - "dev" in duckdb.__version__, reason="md extension not available for dev builds" # type: ignore[attr-defined] 24 - )
+1 -3
pkgs/development/python-modules/duckdb/default.nix
··· 25 25 # 2. default to extension autoload & autoinstall disabled 26 26 substituteInPlace setup.py \ 27 27 --replace-fail "ParallelCompile()" 'ParallelCompile("NIX_BUILD_CORES")' \ 28 - --replace-fail "define_macros.extend([('DUCKDB_EXTENSION_AUTOLOAD_DEFAULT', '1'), ('DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT', '1')])" "" 28 + --replace-fail "define_macros.extend([('DUCKDB_EXTENSION_AUTOLOAD_DEFAULT', '1'), ('DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT', '1')])" "pass" 29 29 ''; 30 30 31 31 env = { ··· 33 33 DUCKDB_BUILD_UNITY = 1; 34 34 OVERRIDE_GIT_DESCRIBE="v${version}-0-g${rev}"; 35 35 }; 36 - 37 - dontPretendSetuptoolsSCMVersion = true; 38 36 39 37 nativeBuildInputs = [ 40 38 pybind11
+2 -2
pkgs/development/python-modules/flake8-bugbear/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "flake8-bugbear"; 14 - version = "24.4.21"; 14 + version = "24.4.26"; 15 15 format = "setuptools"; 16 16 17 17 disabled = pythonOlder "3.7"; ··· 20 20 owner = "PyCQA"; 21 21 repo = pname; 22 22 rev = "refs/tags/${version}"; 23 - hash = "sha256-6jKVKVJuNpdKLzl2dTkr1cvArGWCWvuhyjww05r9W/c="; 23 + hash = "sha256-jJ4/l2nzjqJDCe1pFrdkMvB5WJ+GJarOHgGZSzCS6nc="; 24 24 }; 25 25 26 26 propagatedBuildInputs = [
+1 -1
pkgs/development/python-modules/gekko/default.nix
··· 33 33 homepage = "https://github.com/BYU-PRISM/GEKKO"; 34 34 changelog = "https://github.com/BYU-PRISM/GEKKO/releases/tag/v${version}"; 35 35 license = licenses.mit; 36 - maintainers = with maintainers; [ ayes-web ]; 36 + maintainers = with maintainers; [ BatteredBunny ]; 37 37 }; 38 38 }
+11 -5
pkgs/development/python-modules/geopandas/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 + , pytestCheckHook 6 + , pythonOlder 7 + , setuptools 8 + 5 9 , fiona 6 10 , packaging 7 11 , pandas 8 12 , pyproj 9 - , pytestCheckHook 10 - , pythonOlder 11 13 , rtree 12 14 , shapely 13 15 }: 14 16 15 17 buildPythonPackage rec { 16 18 pname = "geopandas"; 17 - version = "0.14.3"; 18 - format = "setuptools"; 19 + version = "0.14.4"; 20 + pyproject = true; 19 21 20 22 disabled = pythonOlder "3.9"; 21 23 ··· 23 25 owner = "geopandas"; 24 26 repo = "geopandas"; 25 27 rev = "refs/tags/v${version}"; 26 - hash = "sha256-qAINoqnCVfpg2mQhnu0qT/5EjUB+9a3//H8vJJnyj6A="; 28 + hash = "sha256-FBhPcae8bnNnsfr14I1p22VhoOf9USF9DAcrAqx+zso="; 27 29 }; 30 + 31 + build-system = [ 32 + setuptools 33 + ]; 28 34 29 35 propagatedBuildInputs = [ 30 36 fiona
+60 -11
pkgs/development/python-modules/instructor/default.nix
··· 1 - { lib 2 - , python3 3 - , fetchPypi 4 - , buildPythonPackage 1 + { 2 + lib, 3 + aiohttp, 4 + anthropic, 5 + buildPythonPackage, 6 + docstring-parser, 7 + fetchFromGitHub, 8 + openai, 9 + poetry-core, 10 + pydantic, 11 + pytest-examples, 12 + pytest-asyncio, 13 + pytestCheckHook, 14 + fastapi, 15 + diskcache, 16 + redis, 17 + pythonOlder, 18 + pythonRelaxDepsHook, 19 + rich, 20 + tenacity, 21 + typer, 5 22 }: 6 23 7 24 buildPythonPackage rec { 8 25 pname = "instructor"; 9 - version = "0.6.8"; 26 + version = "1.2.3"; 10 27 pyproject = true; 11 28 12 - src = fetchPypi { 13 - inherit pname version; 14 - hash = "sha256-4mHXPes1NdYu53XEN7gq626cKy9ju1M7U6n6akfbuVo="; 29 + disabled = pythonOlder "3.9"; 30 + 31 + src = fetchFromGitHub { 32 + owner = "jxnl"; 33 + repo = "instructor"; 34 + rev = "refs/tags/${version}"; 35 + hash = "sha256-LmorlFKIG7iPAK4pDbQqjxjiwB1md3u52B4u5WlqqTk="; 15 36 }; 16 37 17 - nativeBuildInputs = [ 18 - python3.pkgs.poetry-core 38 + pythonRelaxDeps = [ 39 + "docstring-parser" 40 + "pydantic" 19 41 ]; 20 42 21 - propagatedBuildInputs = with python3.pkgs; [ 43 + build-system = [ poetry-core ]; 44 + 45 + nativeBuildInputs = [ pythonRelaxDepsHook ]; 46 + 47 + dependencies = [ 22 48 aiohttp 23 49 docstring-parser 24 50 openai ··· 28 54 typer 29 55 ]; 30 56 57 + nativeCheckInputs = [ 58 + anthropic 59 + fastapi 60 + redis 61 + diskcache 62 + pytest-asyncio 63 + pytest-examples 64 + pytestCheckHook 65 + ]; 66 + 31 67 pythonImportsCheck = [ "instructor" ]; 68 + 69 + disabledTests = [ 70 + # Tests require OpenAI API key 71 + "test_partial" 72 + "successfully" 73 + ]; 74 + 75 + disabledTestPaths = [ 76 + # Tests require OpenAI API key 77 + "tests/test_distil.py" 78 + "tests/test_new_client.py" 79 + "tests/llm/" 80 + ]; 32 81 33 82 meta = with lib; { 34 83 description = "Structured outputs for llm";
+2 -2
pkgs/development/python-modules/langchain-community/default.nix
··· 18 18 19 19 buildPythonPackage rec { 20 20 pname = "langchain-community"; 21 - version = "0.0.33"; 21 + version = "0.0.34"; 22 22 pyproject = true; 23 23 24 24 disabled = pythonOlder "3.8"; ··· 26 26 src = fetchPypi { 27 27 pname = "langchain_community"; 28 28 inherit version; 29 - hash = "sha256-u1bbwe8RygnyWEaOETaHga3akhnhRAc+MM2mlJbTQrI="; 29 + hash = "sha256-lumoB9m0d3gg31qXCZb2vzrVYyE3vw9NhjvYMr3rKw8="; 30 30 }; 31 31 32 32 build-system = [ poetry-core ];
+2
pkgs/development/python-modules/langchain/default.nix
··· 158 158 # AssertionErrors 159 159 "test_callback_handlers" 160 160 "test_generic_fake_chat_model" 161 + # Test is outdated 162 + "test_serializable_mapping" 161 163 ]; 162 164 163 165 pythonImportsCheck = [ "langchain" ];
+7 -2
pkgs/development/python-modules/langsmith/default.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 + anthropic, 4 5 attr, 5 6 buildPythonPackage, 6 7 fastapi, 7 8 fetchFromGitHub, 8 9 freezegun, 9 10 httpx, 11 + instructor, 10 12 orjson, 11 13 poetry-core, 12 14 pydantic, ··· 20 22 21 23 buildPythonPackage rec { 22 24 pname = "langsmith"; 23 - version = "0.1.48"; 25 + version = "0.1.51"; 24 26 pyproject = true; 25 27 26 28 disabled = pythonOlder "3.8"; ··· 29 31 owner = "langchain-ai"; 30 32 repo = "langsmith-sdk"; 31 33 rev = "refs/tags/v${version}"; 32 - hash = "sha256-n24rlulncJHNyHFqszEbALGfnT7+tTGjLjwR7Fw1smI="; 34 + hash = "sha256-31DC5SqI2V7d3iC5LlZgU5xB0Lh6GrBFFF3A+HEbUKg="; 33 35 }; 34 36 35 37 sourceRoot = "${src.name}/python"; ··· 48 50 ]; 49 51 50 52 nativeCheckInputs = [ 53 + anthropic 51 54 fastapi 52 55 freezegun 53 56 httpx 57 + instructor 54 58 pytest-asyncio 55 59 pytestCheckHook 56 60 uvicorn ··· 81 85 "tests/unit_tests/test_client.py" 82 86 # Tests require a Langsmith API key 83 87 "tests/evaluation/test_evaluation.py" 88 + "tests/external/test_instructor_evals.py" 84 89 ]; 85 90 86 91 pythonImportsCheck = [ "langsmith" ];
+21 -2
pkgs/development/python-modules/maestral/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , buildPythonPackage 3 4 , fetchFromGitHub 4 5 , makePythonPath ··· 17 18 , pyro5 18 19 , requests 19 20 , rich 21 + , rubicon-objc 20 22 , setuptools 21 23 , survey 22 24 , typing-extensions ··· 59 61 typing-extensions 60 62 watchdog 61 63 xattr 64 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 65 + rubicon-objc 62 66 ]; 63 67 64 68 makeWrapperArgs = [ ··· 71 75 pytestCheckHook 72 76 ]; 73 77 78 + # ModuleNotFoundError: No module named '_watchdog_fsevents' 79 + doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); 80 + 74 81 preCheck = '' 75 82 export HOME=$(mktemp -d) 76 83 ''; ··· 90 97 "test_locking_multiprocess" 91 98 # OSError: [Errno 95] Operation not supported 92 99 "test_move_preserves_xattrs" 100 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 101 + # maetral daemon does not start but worked in real environment 102 + "test_catching_non_ignored_events" 103 + "test_connection" 104 + "test_event_handler" 105 + "test_fs_ignore_tree_creation" 106 + "test_lifecycle" 107 + "test_notify_level" 108 + "test_notify_snooze" 109 + "test_receiving_events" 110 + "test_remote_exceptions" 111 + "test_start_already_running" 112 + "test_stop" 93 113 ]; 94 114 95 115 pythonImportsCheck = [ ··· 104 124 homepage = "https://maestral.app"; 105 125 changelog = "https://github.com/samschott/maestral/releases/tag/v${version}"; 106 126 license = licenses.mit; 107 - maintainers = with maintainers; [ peterhoeg sfrijters ]; 108 - platforms = platforms.unix; 127 + maintainers = with maintainers; [ natsukium peterhoeg sfrijters ]; 109 128 }; 110 129 }
+2 -2
pkgs/development/python-modules/mashumaro/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "mashumaro"; 20 - version = "3.12"; 20 + version = "3.13"; 21 21 pyproject = true; 22 22 23 23 disabled = pythonOlder "3.8"; ··· 26 26 owner = "Fatal1ty"; 27 27 repo = "mashumaro"; 28 28 rev = "refs/tags/v${version}"; 29 - hash = "sha256-sSwj/8j+vPX7M8l2h4bPs8WnjzIN2WIpyd7/NcGaExg="; 29 + hash = "sha256-ETK1rHKlByQkqibejiZmXF6c4eIiMazLa8XY2OH30q4="; 30 30 }; 31 31 32 32 nativeBuildInputs = [
+2 -2
pkgs/development/python-modules/mkdocstrings/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "mkdocstrings"; 20 - version = "0.24.3"; 20 + version = "0.25.0"; 21 21 pyproject = true; 22 22 23 23 disabled = pythonOlder "3.8"; ··· 26 26 owner = "mkdocstrings"; 27 27 repo = "mkdocstrings"; 28 28 rev = "refs/tags/${version}"; 29 - hash = "sha256-L3QQ2ll2sDbQwrmw88iwTW6WS2SNsiMR2TvuV4P1uj4="; 29 + hash = "sha256-VKjK58KK9x5RCc7VVy46zax42ySCv2NzqAat+XF+3a8="; 30 30 }; 31 31 32 32 postPatch = ''
+19 -24
pkgs/development/python-modules/pipdeptree/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , pythonOlder 5 - , diff-cover 6 - , graphviz 7 - , hatchling 8 - , hatch-vcs 9 - , pytest-mock 10 - , pytestCheckHook 11 - , pip 12 - , virtualenv 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + pythonOlder, 6 + diff-cover, 7 + graphviz, 8 + hatchling, 9 + hatch-vcs, 10 + pytest-mock, 11 + pytestCheckHook, 12 + pip, 13 + virtualenv, 13 14 }: 14 15 15 16 buildPythonPackage rec { 16 17 pname = "pipdeptree"; 17 - version = "2.18.1"; 18 + version = "2.19.1"; 18 19 pyproject = true; 19 20 20 21 disabled = pythonOlder "3.8"; ··· 23 24 owner = "tox-dev"; 24 25 repo = "pipdeptree"; 25 26 rev = "refs/tags/${version}"; 26 - hash = "sha256-fzxshqh2QurpbilG0gC3NWnUntTRoxOHPpfpg6bPI98="; 27 + hash = "sha256-kXRz78UHQtVyHFFnURSjOOXX8Me2I5tG2bX+u2yGyzY="; 27 28 }; 28 29 29 30 build-system = [ ··· 31 32 hatch-vcs 32 33 ]; 33 34 34 - dependencies = [ 35 - pip 36 - ]; 35 + dependencies = [ pip ]; 37 36 38 37 passthru.optional-dependencies = { 39 - graphviz = [ 40 - graphviz 41 - ]; 38 + graphviz = [ graphviz ]; 42 39 }; 43 40 44 41 nativeCheckInputs = [ ··· 48 45 virtualenv 49 46 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 50 47 51 - pythonImportsCheck = [ 52 - "pipdeptree" 53 - ]; 48 + pythonImportsCheck = [ "pipdeptree" ]; 54 49 55 50 disabledTests = [ 56 51 # Don't run console tests ··· 59 54 60 55 meta = with lib; { 61 56 description = "Command line utility to show dependency tree of packages"; 62 - mainProgram = "pipdeptree"; 63 57 homepage = "https://github.com/tox-dev/pipdeptree"; 64 58 changelog = "https://github.com/tox-dev/pipdeptree/releases/tag/${version}"; 65 59 license = licenses.mit; 66 60 maintainers = with maintainers; [ charlesbaynham ]; 61 + mainProgram = "pipdeptree"; 67 62 }; 68 63 }
+2 -2
pkgs/development/python-modules/pydrawise/default.nix
··· 18 18 19 19 buildPythonPackage rec { 20 20 pname = "pydrawise"; 21 - version = "2024.4.0"; 21 + version = "2024.4.1"; 22 22 pyproject = true; 23 23 24 24 disabled = pythonOlder "3.10"; ··· 27 27 owner = "dknowles2"; 28 28 repo = "pydrawise"; 29 29 rev = "refs/tags/${version}"; 30 - hash = "sha256-krePSrMMrMgKDHQSjzH7hSNnRmwyRe0qTDXc0r0+CPU="; 30 + hash = "sha256-rJul7UAhgB0a6+3buPlfjnhhy2QOo82gvmRtZB+vrko="; 31 31 }; 32 32 33 33 build-system = [
+2 -2
pkgs/development/python-modules/pymc/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "pymc"; 19 - version = "5.13.1"; 19 + version = "5.14.0"; 20 20 pyproject = true; 21 21 22 22 disabled = pythonOlder "3.10"; ··· 25 25 owner = "pymc-devs"; 26 26 repo = "pymc"; 27 27 rev = "refs/tags/v${version}"; 28 - hash = "sha256-SSAn7nbKhXGeEvASKQITUs3+ix3j37u9JTkNiG+1tZ0="; 28 + hash = "sha256-ZVGMzkStKSPLgBoyzA8SOvsof7QRR7TLmLhh5NmD/F8="; 29 29 }; 30 30 31 31 postPatch = ''
-1
pkgs/development/python-modules/pytensor/default.nix
··· 60 60 jax 61 61 jaxlib 62 62 numba 63 - numba-scipy 64 63 pytest-mock 65 64 pytestCheckHook 66 65 tensorflow-probability
+62
pkgs/development/python-modules/rubicon-objc/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , darwin 4 + , fetchFromGitHub 5 + , pythonOlder 6 + , setuptools 7 + , setuptools-scm 8 + , unittestCheckHook 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "rubicon-objc"; 13 + version = "0.4.8"; 14 + pyproject = true; 15 + 16 + disabled = pythonOlder "3.8"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "beeware"; 20 + repo = "rubicon-objc"; 21 + rev = "refs/tags/v${version}"; 22 + hash = "sha256-aFKzLeVYn5u8hTEgXCum3XpZxI7C/Wql41jkWkCF0HQ="; 23 + }; 24 + 25 + postPatch = '' 26 + substituteInPlace pyproject.toml \ 27 + --replace-fail "setuptools==69.2.0" "setuptools" \ 28 + --replace-fail "setuptools_scm==8.0.4" "setuptools_scm" 29 + ''; 30 + 31 + build-system = [ 32 + setuptools 33 + setuptools-scm 34 + ]; 35 + 36 + preCheck = '' 37 + make -C tests/objc 38 + ''; 39 + 40 + nativeCheckInputs = [ 41 + unittestCheckHook 42 + ]; 43 + 44 + checkInputs = [ 45 + darwin.apple_sdk.frameworks.Foundation 46 + ]; 47 + 48 + pythonImportsCheck = [ 49 + "rubicon.objc" 50 + ]; 51 + 52 + __darwinAllowLocalNetworking = true; 53 + 54 + meta = { 55 + description = "A bridge interface between Python and Objective-C"; 56 + homepage = "https://github.com/beeware/rubicon-objc/"; 57 + changelog = "https://github.com/beeware/rubicon-objc/releases/tag/v${version}"; 58 + license = lib.licenses.bsd3; 59 + maintainers = with lib.maintainers; [ natsukium ]; 60 + platforms = lib.platforms.darwin; 61 + }; 62 + }
+2 -2
pkgs/development/python-modules/sqlglot/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "sqlglot"; 14 - version = "21.1.1"; 14 + version = "23.12.1"; 15 15 pyproject = true; 16 16 17 17 disabled = pythonOlder "3.8"; ··· 20 20 repo = "sqlglot"; 21 21 owner = "tobymao"; 22 22 rev = "refs/tags/v${version}"; 23 - hash = "sha256-xMKDkhotVBkLzn+f9RMGCPfWTF4Rz9a193nSJv5z+iA="; 23 + hash = "sha256-VUG/l1iZ/8vAJwhktN/tx8U8KVLgaghUPArtxEyIA54="; 24 24 }; 25 25 26 26 nativeBuildInputs = [
+5 -5
pkgs/development/python-modules/total-connect-client/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "total-connect-client"; 12 - version = "2023.12.1"; 13 - format = "pyproject"; 12 + version = "2024.4"; 13 + pyproject = true; 14 14 15 15 disabled = pythonOlder "3.7"; 16 16 ··· 18 18 owner = "craigjmidwinter"; 19 19 repo = "total-connect-client"; 20 20 rev = "refs/tags/${version}"; 21 - hash = "sha256-iEQC02KuBWtk8yQwM/fU28ilbmCWeAjilvR6fHVexuI="; 21 + hash = "sha256-LuPyhidbAzt/AU5WuXyxggGxjm9yArHsbn6iAaccMEc="; 22 22 }; 23 23 24 - nativeBuildInputs = [ 24 + build-system = [ 25 25 setuptools 26 26 ]; 27 27 28 - propagatedBuildInputs = [ 28 + dependencies = [ 29 29 zeep 30 30 ]; 31 31
+2 -2
pkgs/development/python-modules/whenever/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "whenever"; 16 - version = "0.5.1"; 16 + version = "0.5.2"; 17 17 pyproject = true; 18 18 19 19 disabled = pythonOlder "3.8"; ··· 22 22 owner = "ariebovenberg"; 23 23 repo = "whenever"; 24 24 rev = "refs/tags/${version}"; 25 - hash = "sha256-RH2614M91zYULNTQsr6JoKfxlnGyAJsCkB7oeiz7urs="; 25 + hash = "sha256-bG8LV+r5MjA1JwBHWy9/Io4daldAlyEGYNLW+5ITuOw="; 26 26 }; 27 27 28 28 postPatch = ''
+2 -2
pkgs/development/tools/misc/astyle/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "astyle"; 5 - version = "3.4.13"; 5 + version = "3.4.14"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; 9 - hash = "sha256-eKYQq9OelOD5E+nuXNoehbtizWM1U97LngDT2SAQGc4="; 9 + hash = "sha256-YGqD85FGczGF9nYwWdKSQzxA85Prb1IELhY/jfThaj4="; 10 10 }; 11 11 12 12 nativeBuildInputs = [ cmake ];
+23 -23
pkgs/development/tools/pip-audit/default.nix
··· 1 - { lib 2 - , fetchFromGitHub 3 - , python3 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + python3, 4 5 }: 5 6 6 7 python3.pkgs.buildPythonApplication rec { 7 8 pname = "pip-audit"; 8 - version = "2.7.2"; 9 + version = "2.7.3"; 9 10 format = "pyproject"; 10 11 11 12 src = fetchFromGitHub { 12 13 owner = "trailofbits"; 13 - repo = pname; 14 + repo = "pip-audit"; 14 15 rev = "refs/tags/v${version}"; 15 - hash = "sha256-IlIPLuHGmnmt6FgX+Psw+f6XpkuhP+BZ+e4k4DV8e/U="; 16 + hash = "sha256-MRFfF5OygUCIdUnPvxhYk4IcLSWGgmlw2qgzPoZDniw="; 16 17 }; 17 18 18 - nativeBuildInputs = with python3.pkgs; [ 19 - flit-core 20 - ]; 19 + build-system = with python3.pkgs; [ flit-core ]; 21 20 22 - propagatedBuildInputs = with python3.pkgs; [ 23 - cachecontrol 24 - cyclonedx-python-lib 25 - html5lib 26 - packaging 27 - pip-api 28 - pip-requirements-parser 29 - rich 30 - toml 31 - ] ++ cachecontrol.optional-dependencies.filecache; 21 + dependencies = 22 + with python3.pkgs; 23 + [ 24 + cachecontrol 25 + cyclonedx-python-lib 26 + html5lib 27 + packaging 28 + pip-api 29 + pip-requirements-parser 30 + rich 31 + toml 32 + ] 33 + ++ cachecontrol.optional-dependencies.filecache; 32 34 33 35 nativeCheckInputs = with python3.pkgs; [ 34 36 pretend 35 37 pytestCheckHook 36 38 ]; 37 39 38 - pythonImportsCheck = [ 39 - "pip_audit" 40 - ]; 40 + pythonImportsCheck = [ "pip_audit" ]; 41 41 42 42 preCheck = '' 43 43 export HOME=$(mktemp -d); ··· 60 60 61 61 meta = with lib; { 62 62 description = "Tool for scanning Python environments for known vulnerabilities"; 63 - mainProgram = "pip-audit"; 64 63 homepage = "https://github.com/trailofbits/pip-audit"; 65 64 changelog = "https://github.com/pypa/pip-audit/releases/tag/v${version}"; 66 65 license = with licenses; [ asl20 ]; 67 66 maintainers = with maintainers; [ fab ]; 67 + mainProgram = "pip-audit"; 68 68 }; 69 69 }
+3 -3
pkgs/development/tools/rust/cargo-nextest/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "cargo-nextest"; 5 - version = "0.9.68"; 5 + version = "0.9.70"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "nextest-rs"; 9 9 repo = "nextest"; 10 10 rev = "cargo-nextest-${version}"; 11 - hash = "sha256-LC+0s38ufmMrhNaKSn13jka/M7PG1+gJnqZCXJ7ef6I="; 11 + hash = "sha256-YTeKcdUszI/0RCAq6Gcakl3hfUSUo3CfVCMod/IPYhw="; 12 12 }; 13 13 14 - cargoHash = "sha256-E/bsVbSdFr1LMrIewsh15Vuk4Dt5UwETLCIhE7TT3kA="; 14 + cargoHash = "sha256-FH9ODkK84bPPYyHP4kKcHKWpJ3FV1NC8S/NQFvV63Gw="; 15 15 16 16 buildInputs = lib.optionals stdenv.isDarwin [ 17 17 darwin.apple_sdk.frameworks.SystemConfiguration
+10 -10
pkgs/games/abuse/default.nix
··· 4 4 , SDL2, SDL2_mixer, freepats 5 5 }: 6 6 7 - stdenv.mkDerivation rec { 7 + stdenv.mkDerivation (finalAttrs: { 8 8 pname = "abuse"; 9 9 version = "0.9.1"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "Xenoveritas"; 13 - repo = pname; 14 - rev = "v${version}"; 13 + repo = "abuse"; 14 + rev = "v${finalAttrs.version}"; 15 15 hash = "sha256-eneu0HxEoM//Ju2XMHnDMZ/igeVMPSLg7IaxR2cnJrk="; 16 16 }; 17 17 ··· 21 21 }; 22 22 23 23 preConfigure = '' 24 - cp --reflink=auto -r ${data}/data/sfx ${data}/data/music data/ 24 + cp --reflink=auto -r ${finalAttrs.data}/data/sfx ${finalAttrs.data}/data/music data/ 25 25 ''; 26 26 27 27 desktopItems = [ (makeDesktopItem { ··· 41 41 substituteAll "${./abuse.sh}" $out/bin/abuse 42 42 chmod +x $out/bin/abuse 43 43 44 - install -Dm644 ${data}/doc/abuse.png $out/share/pixmaps/abuse.png 44 + install -Dm644 ${finalAttrs.data}/doc/abuse.png $out/share/pixmaps/abuse.png 45 45 ''; 46 46 47 47 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2}/include/SDL2"; ··· 49 49 nativeBuildInputs = [ copyDesktopItems cmake ]; 50 50 buildInputs = [ SDL2 SDL2_mixer freepats ]; 51 51 52 - meta = with lib; { 52 + meta = { 53 53 description = "Side-scroller action game that pits you against ruthless alien killers"; 54 54 homepage = "http://abuse.zoy.org/"; 55 - license = with licenses; [ unfree ]; 55 + license = lib.licenses.unfree; 56 56 # Most of abuse is free (public domain, GPL2+, WTFPL), however the creator 57 57 # of its sfx and music only gave Debian permission to redistribute the 58 58 # files. Our friends from Debian thought about it some more: 59 59 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648272 60 - maintainers = with maintainers; [ iblech ]; 61 - platforms = platforms.unix; 60 + maintainers = with lib.maintainers; [ iblech ]; 61 + platforms = lib.platforms.unix; 62 62 broken = stdenv.isDarwin; 63 63 }; 64 - } 64 + })
+8 -8
pkgs/games/steam/runtime.nix
··· 4 4 , writeShellScript, curl, nix-update 5 5 }: 6 6 7 - stdenv.mkDerivation rec { 7 + stdenv.mkDerivation (finalAttrs: { 8 8 9 9 pname = "steam-runtime"; 10 10 # from https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/VERSION.txt 11 11 version = "0.20231127.68515"; 12 12 13 13 src = fetchurl { 14 - url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${version}/steam-runtime.tar.xz"; 15 - sha256 = "sha256-invUOdJGNhrswsj9Vj/bSAkEigWtBQ554sBAyvPf0mk="; 16 - name = "scout-runtime-${version}.tar.gz"; 14 + url = "https://repo.steampowered.com/steamrt-images-scout/snapshots/${finalAttrs.version}/steam-runtime.tar.xz"; 15 + hash = "sha256-invUOdJGNhrswsj9Vj/bSAkEigWtBQ554sBAyvPf0mk="; 16 + name = "scout-runtime-${finalAttrs.version}.tar.gz"; 17 17 }; 18 18 19 19 buildCommand = '' ··· 28 28 ''; 29 29 }; 30 30 31 - meta = with lib; { 31 + meta = { 32 32 description = "The official runtime used by Steam"; 33 33 homepage = "https://github.com/ValveSoftware/steam-runtime"; 34 - license = licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit 35 - maintainers = with maintainers; [ hrdinka abbradar ]; 34 + license = lib.licenses.unfreeRedistributable; # Includes NVIDIA CG toolkit 35 + maintainers = with lib.maintainers; [ hrdinka abbradar ]; 36 36 }; 37 - } 37 + })
+2 -2
pkgs/kde/misc/ktextaddons/default.nix
··· 8 8 }: 9 9 mkKdeDerivation rec { 10 10 pname = "ktextaddons"; 11 - version = "1.5.3"; 11 + version = "1.5.4"; 12 12 13 13 src = fetchurl { 14 14 url = "mirror://kde/stable/ktextaddons/ktextaddons-${version}.tar.xz"; 15 - hash = "sha256-ilLbir+oqdaNLSkfsPi+IGWf14mZh7Tcr98kaNsJF9w="; 15 + hash = "sha256-ZLgGAuhLJekWRiCvP2NB+oZbhegmq49eAgYa4koneyA="; 16 16 }; 17 17 18 18 extraBuildInputs = [qtspeech qttools kxmlgui];
+8 -8
pkgs/misc/sndio/default.nix
··· 1 1 { lib, stdenv, fetchurl, alsa-lib, fixDarwinDylibNames }: 2 2 3 - stdenv.mkDerivation rec { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "sndio"; 5 5 version = "1.9.0"; 6 6 7 7 src = fetchurl { 8 - url = "https://www.sndio.org/sndio-${version}.tar.gz"; 9 - sha256 = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo="; 8 + url = "https://www.sndio.org/sndio-${finalAttrs.version}.tar.gz"; 9 + hash = "sha256-8wgm/JwH42nTkk1fzt9qClPA30rh9atQ/pzygFQPaZo="; 10 10 }; 11 11 12 12 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; ··· 19 19 20 20 enableParallelBuilding = true; 21 21 22 - meta = with lib; { 22 + meta = { 23 23 homepage = "https://www.sndio.org"; 24 24 description = "Small audio and MIDI framework part of the OpenBSD project"; 25 - license = licenses.isc; 26 - maintainers = with maintainers; [ Madouura ]; 27 - platforms = platforms.all; 25 + license = lib.licenses.isc; 26 + maintainers = with lib.maintainers; [ Madouura ]; 27 + platforms = lib.platforms.all; 28 28 }; 29 - } 29 + })
+7 -2
pkgs/os-specific/linux/kernel/xanmod-kernels.nix
··· 7 7 # kernel config in the xanmod version commit 8 8 ltsVariant = { 9 9 version = "6.6.28"; 10 - hash = "sha256-0ld4pZIddfkGytxzqgC7AGD3gc2H9mhZbhpbFLD3G+s="; 10 + suffix = "xanmod2"; 11 + hash = "sha256-U5L7i/g808GuUZhLjHE+v0VOQVdTPe+Tnx/rLQoGxx4="; 11 12 variant = "lts"; 12 13 }; 13 14 14 15 mainVariant = { 15 16 version = "6.8.7"; 16 - hash = "sha256-S9UooZhMtvfyL2BVUfMBxvPLkZvXm37duWSjcpk5dvY="; 17 + suffix = "xanmod2"; 18 + hash = "sha256-/RhtRASEedYI4Zf9pUiiyDD3SgOL46cutTXo68gjBg8="; 17 19 variant = "main"; 18 20 }; 19 21 ··· 45 47 HZ = freeform "250"; 46 48 HZ_250 = yes; 47 49 HZ_1000 = no; 50 + 51 + # Disable writeback throttling by default 52 + BLK_WBT_MQ = lib.mkOverride 60 no; 48 53 }; 49 54 50 55 extraMeta = {
-1
pkgs/servers/gonic/default.nix
··· 55 55 description = "Music streaming server / subsonic server API implementation"; 56 56 license = lib.licenses.gpl3Plus; 57 57 maintainers = with lib.maintainers; [ autrimpo ]; 58 - platforms = lib.platforms.linux; 59 58 mainProgram = "gonic"; 60 59 }; 61 60 }
+3 -3
pkgs/servers/misc/gobgpd/default.nix
··· 5 5 6 6 buildGoModule rec { 7 7 pname = "gobgpd"; 8 - version = "3.25.0"; 8 + version = "3.26.0"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "osrg"; 12 12 repo = "gobgp"; 13 13 rev = "refs/tags/v${version}"; 14 - hash = "sha256-cb4FYsYMkrna/1IjPlEglAmeQ/vfbUiaTb5OjrWiYR4="; 14 + hash = "sha256-bFxKFAw02M8RmMCFFT3nu3urmvh7Wzi0rryuTi8Hw9k="; 15 15 }; 16 16 17 - vendorHash = "sha256-fB/PjOO3+/RVQ5DGAHx4O8wAb9p+RdDC9+xkTCefP8A="; 17 + vendorHash = "sha256-wrgRQwisOHAhvRbvGXMW5VWkQuEifCwCo3usuxLie4A="; 18 18 19 19 postConfigure = '' 20 20 export CGO_ENABLED=0
+3 -3
pkgs/servers/vouch-proxy/default.nix
··· 5 5 6 6 buildGoModule rec { 7 7 pname = "vouch-proxy"; 8 - version = "0.39.0"; 8 + version = "0.40.0"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "vouch"; 12 12 repo = "vouch-proxy"; 13 13 rev = "refs/tags/v${version}"; 14 - hash = "sha256-q4tylXW219jzWrdzOQxewRh1advYEouEKiNJvvnIp9U="; 14 + hash = "sha256-/B7MMRkI5DhDBWa53mgFUME1CR3FSxxQ8UWjlN19EmQ="; 15 15 }; 16 16 17 - vendorHash = "sha256-IUjIGht/oQiWKHfbW7nJaybKpKs179mOkpLIwAb8/hk="; 17 + vendorHash = "sha256-1k9YFdackF10iJWJ22XlaENlOfRkZMs+IedDWnd/h8E="; 18 18 19 19 ldflags = [ 20 20 "-s"
+2 -2
pkgs/tools/audio/abcmidi/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "abcMIDI"; 5 - version = "2024.03.21"; 5 + version = "2024.04.30"; 6 6 7 7 src = fetchzip { 8 8 url = "https://ifdo.ca/~seymour/runabc/${pname}-${version}.zip"; 9 - hash = "sha256-tK7+09vCZXj79jEY3Zxz1cdt5UdfOVy4gjqewdAMiP4="; 9 + hash = "sha256-Yw/EQZlGTYxouRL1Tf4TDSNWMleB7vKzWg4n6sw5d4Q="; 10 10 }; 11 11 12 12 meta = with lib; {
+11 -3
pkgs/tools/graphics/icoutils/default.nix
··· 1 - { lib, stdenv, fetchurl, libpng, perl, perlPackages, makeWrapper }: 1 + { lib, stdenv, fetchurl, fetchpatch, autoreconfHook, libpng, perl, perlPackages, makeWrapper }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "icoutils"; ··· 9 9 sha256 = "1q66cksms4l62y0wizb8vfavhmf7kyfgcfkynil3n99s0hny1aqp"; 10 10 }; 11 11 12 - nativeBuildInputs = [ makeWrapper ]; 12 + patches = [ 13 + # Fixes a linker failure with newer versions of ld64 due to not supporting nested archives. 14 + (fetchpatch { 15 + url = "https://git.savannah.nongnu.org/cgit/icoutils.git/patch/?id=aa3572119bfe34484025f37dbbc4d5070f735908"; 16 + hash = "sha256-4YCI+SYT2bCBNegkpN5jcfi6gOeec65TmCABr98HHB4="; 17 + }) 18 + ]; 19 + 20 + nativeBuildInputs = [ autoreconfHook makeWrapper ]; 13 21 buildInputs = [ libpng perl ]; 14 22 propagatedBuildInputs = [ perlPackages.LWP ]; 15 23 ··· 17 25 # upgrades to a newer SDK. 18 26 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; 19 27 20 - patchPhase = '' 28 + postPatch = '' 21 29 patchShebangs extresso/extresso 22 30 patchShebangs extresso/extresso.in 23 31 patchShebangs extresso/genresscript
-48
pkgs/tools/llm/shell_gpt/default.nix
··· 1 - { lib 2 - , python3 3 - , fetchPypi 4 - , nix-update-script 5 - }: 6 - 7 - python3.pkgs.buildPythonApplication rec { 8 - pname = "shell_gpt"; 9 - version = "1.4.3"; 10 - pyproject = true; 11 - 12 - src = fetchPypi { 13 - inherit pname version; 14 - sha256 = "sha256-zSgWSC60ypOQ1IENcxObBezAfHosQWBD9ft06yh5iV4="; 15 - }; 16 - 17 - nativeBuildInputs = with python3.pkgs; [ 18 - python3.pkgs.pythonRelaxDepsHook 19 - python3 20 - pip 21 - ]; 22 - 23 - propagatedBuildInputs = with python3.pkgs; [ 24 - markdown-it-py 25 - rich 26 - distro 27 - typer 28 - requests 29 - hatchling 30 - openai 31 - instructor 32 - ]; 33 - 34 - pythonRelaxDeps = [ "requests" "rich" "distro" "typer" ]; 35 - 36 - passthru.updateScript = nix-update-script { }; 37 - 38 - doCheck = false; 39 - 40 - meta = with lib; { 41 - mainProgram = "sgpt"; 42 - homepage = "https://github.com/TheR1D/shell_gpt"; 43 - description = "Access ChatGPT from your terminal"; 44 - platforms = platforms.unix; 45 - license = licenses.mit; 46 - maintainers = with maintainers; [ mglolenstine ]; 47 - }; 48 - }
+3 -3
pkgs/tools/misc/mutagen-compose/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "mutagen-compose"; 5 - version = "0.17.5"; 5 + version = "0.17.6"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "mutagen-io"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - hash = "sha256-EkUaxk+zCm1ta1/vjClZHki/MghLvUkCeiW7hST7WEc="; 11 + hash = "sha256-ZcfwpEfdoSMCGtw5Icj1hXbk5CRYS4LBtdaiX62E4I0="; 12 12 }; 13 13 14 - vendorHash = "sha256-siLS53YVQfCwqyuvXXvHFtlpr3RQy2GP2/ZV+Tv/Lqc="; 14 + vendorHash = "sha256-XyWi06siSHOKZca0w4WLIFGM63wnF//2rRP4aH5rFAo="; 15 15 16 16 doCheck = false; 17 17
+2 -2
pkgs/tools/misc/scdl/default.nix
··· 2 2 3 3 python3Packages.buildPythonApplication rec { 4 4 pname = "scdl"; 5 - version = "2.7.5"; 5 + version = "2.7.7"; 6 6 format = "setuptools"; 7 7 8 8 src = fetchPypi { 9 9 inherit pname version; 10 - sha256 = "sha256-YoQaIbOfwLtkSZJGZd9CL7TZGgqjfohJfrnQ3t5uLU0="; 10 + sha256 = "sha256-/QQb8xbi0rv5dU3WFr/hm2BuM/iDZ2OhrGjuqsQMqdk="; 11 11 }; 12 12 13 13 propagatedBuildInputs = with python3Packages; [
+9 -6
pkgs/tools/misc/wv/default.nix
··· 1 - { lib, stdenv, fetchurl, zlib, imagemagick, libpng, glib, pkg-config, libgsf 1 + { lib, stdenv, fetchFromGitHub, zlib, imagemagick, libpng, glib, pkg-config, libgsf 2 2 , libxml2, bzip2 3 3 , autoreconfHook 4 4 , buildPackages 5 5 }: 6 6 7 - stdenv.mkDerivation rec { 7 + stdenv.mkDerivation (finalAttrs: { 8 8 pname = "wv"; 9 9 version = "1.2.9"; 10 10 11 - src = fetchurl { 12 - url = "http://www.abisource.com/downloads/${pname}/${version}/${pname}-${version}.tar.gz"; 13 - sha256 = "17f16lkdv1c3amaz2hagiicih59ynpp4786k1m2qa1sw68xhswsc"; 11 + src = fetchFromGitHub { 12 + owner = "AbiWord"; 13 + repo = "wv"; 14 + rev = "wv-${builtins.replaceStrings ["."] ["-"] finalAttrs.version}"; 15 + hash = "sha256-xcC+/M1EzFqQFeF5Dw9qd8VIy7r8JdKMp2X/GHkFiPA="; 14 16 }; 15 17 16 18 nativeBuildInputs = [ pkg-config autoreconfHook ]; ··· 30 32 ''; 31 33 32 34 meta = { 35 + homepage = "https://github.com/AbiWord/wv"; 33 36 description = "Converter from Microsoft Word formats to human-editable ones"; 34 37 platforms = lib.platforms.unix; 35 38 license = lib.licenses.gpl2; 36 39 }; 37 - } 40 + })
+3 -3
pkgs/tools/networking/gobgp/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "gobgp"; 5 - version = "3.25.0"; 5 + version = "3.26.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "osrg"; 9 9 repo = "gobgp"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-cb4FYsYMkrna/1IjPlEglAmeQ/vfbUiaTb5OjrWiYR4="; 11 + sha256 = "sha256-bFxKFAw02M8RmMCFFT3nu3urmvh7Wzi0rryuTi8Hw9k="; 12 12 }; 13 13 14 - vendorHash = "sha256-fB/PjOO3+/RVQ5DGAHx4O8wAb9p+RdDC9+xkTCefP8A="; 14 + vendorHash = "sha256-wrgRQwisOHAhvRbvGXMW5VWkQuEifCwCo3usuxLie4A="; 15 15 16 16 postConfigure = '' 17 17 export CGO_ENABLED=0
+2 -2
pkgs/tools/security/yubihsm-shell/default.nix
··· 16 16 17 17 stdenv.mkDerivation rec { 18 18 pname = "yubihsm-shell"; 19 - version = "2.4.2"; 19 + version = "2.5.0"; 20 20 21 21 src = fetchFromGitHub { 22 22 owner = "Yubico"; 23 23 repo = "yubihsm-shell"; 24 24 rev = version; 25 - hash = "sha256-Un3DNmrD9aC9+A3+NNM21yrH1g14THXPHkJ0SUYrL/M="; 25 + hash = "sha256-QTDFL/UTnnG0TuojJ0eVKw8fNEqZz86CXWb6uHvzUbs="; 26 26 }; 27 27 28 28 postPatch = ''
+3 -3
pkgs/tools/system/automatic-timezoned/default.nix
··· 5 5 6 6 rustPlatform.buildRustPackage rec { 7 7 pname = "automatic-timezoned"; 8 - version = "2.0.11"; 8 + version = "2.0.12"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "maxbrunet"; 12 12 repo = pname; 13 13 rev = "v${version}"; 14 - sha256 = "sha256-3F9VgLrk+P/KWYI8uY12XrXxHWCXoBR6zhP6xDp0EO0="; 14 + sha256 = "sha256-QOhGjLwVeht5S0jG5Fs/2e0RKExAcDJIMSGqdgARewM="; 15 15 }; 16 16 17 - cargoHash = "sha256-YjGuGvwDTGrPObxttgBOga3pYLVbNh2lBauOyIdHiLw="; 17 + cargoHash = "sha256-TE8W2wYmqC4f9dNwM3UB8444e8eE1sYX/T6hfuCeDOo="; 18 18 19 19 meta = with lib; { 20 20 description = "Automatically update system timezone based on location";
+3 -3
pkgs/tools/text/markdownlint-cli/default.nix
··· 5 5 6 6 buildNpmPackage rec { 7 7 pname = "markdownlint-cli"; 8 - version = "0.39.0"; 8 + version = "0.40.0"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "igorshubovych"; 12 12 repo = "markdownlint-cli"; 13 13 rev = "v${version}"; 14 - hash = "sha256-kNnTSSu55zqOwKCPxXhCmGOseDzAWaB6oToyWDSe0Cc="; 14 + hash = "sha256-h9h1qJ6xKQRRNSr3PsMeuMMyzfJbq49BluKvhJK86v4="; 15 15 }; 16 16 17 - npmDepsHash = "sha256-mpqLI9wYxp9g6uO/Peau51KS4KdNmVulb6sVO1uDC6c="; 17 + npmDepsHash = "sha256-Ez83Q/zXF61L0hoEb+i4h8oyelrHfgHueAW2mqhCjMQ="; 18 18 19 19 dontNpmBuild = true; 20 20
+3 -3
pkgs/tools/text/mdbook-pagetoc/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-pagetoc"; 5 - version = "0.1.9"; 5 + version = "0.2.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "slowsage"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - hash = "sha256-g7UaQZzIdpv4hZgEtoJ6fyPgA9yQPw3LiATwngjHnWE="; 11 + hash = "sha256-A8J3cKSA//NGIVK3uE43YH3ph9DHGFlg7uOo10j2Kh8="; 12 12 }; 13 13 14 - cargoHash = "sha256-qSsZaXneGW6zspgy8wHFZvRyTexy6VdySleZv0ieBsI="; 14 + cargoHash = "sha256-FvDvPXA4/dxVOIt1LwesBrWEsjdYcrhHescQVAiggBA="; 15 15 16 16 meta = with lib; { 17 17 description = "Table of contents for mdbook (in sidebar)";
+4 -4
pkgs/tools/text/recode/default.nix
··· 8 8 , libintl 9 9 }: 10 10 11 - stdenv.mkDerivation rec { 11 + stdenv.mkDerivation (finalAttrs: { 12 12 pname = "recode"; 13 13 version = "3.7.14"; 14 14 15 15 # Use official tarball, avoid need to bootstrap/generate build system 16 16 src = fetchurl { 17 - url = "https://github.com/rrthomas/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; 17 + url = "https://github.com/rrthomas/recode/releases/download/v${finalAttrs.version}/recode-${finalAttrs.version}.tar.gz"; 18 18 hash = "sha256-eGqv1USFGisTsKN36sFQD4IM5iYVzMLmMLUB53Q7nzM="; 19 19 }; 20 20 ··· 35 35 homepage = "https://github.com/rrthomas/recode"; 36 36 description = "Converts files between various character sets and usages"; 37 37 mainProgram = "recode"; 38 - changelog = "https://github.com/rrthomas/recode/raw/v${version}/NEWS"; 38 + changelog = "https://github.com/rrthomas/recode/raw/v${finalAttrs.version}/NEWS"; 39 39 platforms = lib.platforms.unix; 40 40 license = with lib.licenses; [ lgpl3Plus gpl3Plus ]; 41 41 maintainers = with lib.maintainers; [ jcumming ]; 42 42 }; 43 - } 43 + })
+6 -10
pkgs/top-level/all-packages.nix
··· 25427 25427 }; 25428 25428 25429 25429 # Steel Bank Common Lisp 25430 - sbcl_2_4_2 = wrapLisp { 25431 - pkg = callPackage ../development/compilers/sbcl { version = "2.4.2"; }; 25430 + sbcl_2_4_3 = wrapLisp { 25431 + pkg = callPackage ../development/compilers/sbcl { version = "2.4.3"; }; 25432 25432 faslExt = "fasl"; 25433 25433 flags = [ "--dynamic-space-size" "3000" ]; 25434 25434 }; 25435 - sbcl_2_4_3 = wrapLisp { 25436 - pkg = callPackage ../development/compilers/sbcl { version = "2.4.3"; }; 25435 + sbcl_2_4_4 = wrapLisp { 25436 + pkg = callPackage ../development/compilers/sbcl { version = "2.4.4"; }; 25437 25437 faslExt = "fasl"; 25438 25438 flags = [ "--dynamic-space-size" "3000" ]; 25439 25439 }; 25440 - sbcl = sbcl_2_4_3; 25440 + sbcl = sbcl_2_4_4; 25441 25441 25442 25442 sbclPackages = recurseIntoAttrs sbcl.pkgs; 25443 25443 ··· 31428 31428 31429 31429 m32edit = callPackage ../applications/audio/midas/m32edit.nix { }; 31430 31430 31431 - manim = callPackage ../applications/video/manim { }; 31431 + manim = python3Packages.toPythonApplication python3Packages.manim; 31432 31432 31433 31433 manim-slides = python3Packages.toPythonApplication ( 31434 31434 python3Packages.manim-slides.override { ··· 34413 34413 34414 34414 shavee = callPackage ../applications/misc/shavee { }; 34415 34415 34416 - shell_gpt = callPackage ../tools/llm/shell_gpt { }; 34417 - 34418 34416 shfmt = callPackage ../tools/text/shfmt { }; 34419 34417 34420 34418 shipments = callPackage ../applications/misc/shipments { }; ··· 39042 39040 scilab-bin = callPackage ../applications/science/math/scilab-bin { }; 39043 39041 39044 39042 scilla = callPackage ../tools/security/scilla { }; 39045 - 39046 - scotch = callPackage ../applications/science/math/scotch { }; 39047 39043 39048 39044 mininet = callPackage ../tools/virtualization/mininet { }; 39049 39045
+4
pkgs/top-level/python-packages.nix
··· 7114 7114 7115 7115 manhole = callPackage ../development/python-modules/manhole { }; 7116 7116 7117 + manim = callPackage ../development/python-modules/manim { }; 7118 + 7117 7119 manimpango = callPackage ../development/python-modules/manimpango { 7118 7120 inherit (pkgs.darwin.apple_sdk.frameworks) AppKit; 7119 7121 }; ··· 13404 13406 ruamel-yaml = callPackage ../development/python-modules/ruamel-yaml { }; 13405 13407 13406 13408 ruamel-yaml-clib = callPackage ../development/python-modules/ruamel-yaml-clib { }; 13409 + 13410 + rubicon-objc = callPackage ../development/python-modules/rubicon-objc { }; 13407 13411 13408 13412 rubymarshal = callPackage ../development/python-modules/rubymarshal { }; 13409 13413