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