Commit Graph

47 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Peder Bergebakken Sundt
95865f4ea7
kitex: 0.11.0 -> 0.11.3 (#341938) 2024-09-18 02:16:46 +02:00
Anderson Torres
f0e64ce16f treewide: migrate packages maintained by AndersonTorres to by-name
Manual migration for the sake of by-name migration is no longer discouraged
since #340235.
2024-09-16 14:26:47 -03:00
nicoo
2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00
Aaron Jheng
259f670ec5
kitex: 0.11.0 -> 0.11.3 2024-09-15 01:00:23 +00:00
R. Ryantm
888540f588 kitex: 0.10.3 -> 0.11.0 2024-09-09 17:25:58 +00:00
Emily
0c7aafc7f5
musly: add patches for FFmpeg 7, C++17, and external deps; kissfft: build with CMake; libresample: 0.1.3 -> 0.1.4-unstable-2024-08-23 (#332035) 2024-08-27 01:12:57 +01:00
Emily
1f81efc8a0 kissfft: build with CMake
Fix the library install names on macOS and replace a patch with a
smaller one.
2024-08-26 22:37:33 +01:00
Emily
990e96533e kissfft: format with nixfmt-rfc-style 2024-08-26 22:37:33 +01:00
Emily
1d22e2ecd9 kissfft: move to pkgs/by-name 2024-08-26 22:37:33 +01:00
OTABI Tomoya
e8c29c7885
Merge pull request #336124 from jfly/kikit-on-python312
kicad: use python 3.12, kikit: use python 3.12
2024-08-23 09:40:34 +09:00
Sebastián Mancilla
44d6eaa009
Merge pull request #331996 from aaronjheng/kitex
kitex: 0.10.2 -> 0.10.3
2024-08-22 18:51:20 -04:00
Jeremy Fleischman
3fc660733b
kikit: 1.5.0 -> 1.6.0
kikit 1.5.0 bundles an old version of versioneer that doesn't work with
Python 3.12. See this usptream issue for details:
https://github.com/yaqwsx/KiKit/issues/680

This was fixed in
e0c312ae10,
which first landed in kikit 1.6.0. So, let's upgrade and finally get this
building on Python 3.12!

This fixes https://github.com/NixOS/nixpkgs/issues/325220
2024-08-21 07:25:54 -07:00
Jeremy Fleischman
5c493ae9ed
python3Packages.shapely_1_8: remove
Shapely 1.8 is old unmaintained. We originally had to introduce it to nixpkgs in
order to package kikit, but recently kikit upstream dropped the
requirement to use an old version of shapely
(https://github.com/yaqwsx/KiKit/issues/574#issuecomment-1879721181).

Upstream relaxed the version constraint in
3427a8d6ce,
which first landed in kikit 1.5.0, which we're already packaging, so
we're free to drop shapely 1.8!
2024-08-21 07:25:54 -07:00
Honnip
94d2af6419
kiwitalk: fix builds with Rust 1.80
This commit fixes the build failure with Rust 1.80 by updating `time` crate.

See https://github.com/NixOS/nixpkgs/issues/332957, https://github.com/rust-lang/rust/issues/127343
2024-08-19 22:38:21 +09:00
Aaron Jheng
ecf45c7639
kitex: 0.10.2 -> 0.10.3 2024-08-05 01:43:35 +00:00
R. Ryantm
8383d1dddd kitex: 0.10.1 -> 0.10.2 2024-07-25 12:42:29 +00:00
Martin Weinelt
de245ec4a5
Merge remote-tracking branch 'origin/master' into staging-next 2024-06-25 13:00:25 +02:00
R. Ryantm
56f4ea65f8 kitex: 0.10.0 -> 0.10.1 2024-06-24 13:27:45 +00:00
github-actions[bot]
098fe8ee26
Merge staging-next into staging 2024-06-14 18:01:39 +00:00
Martin Weinelt
abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00
Aaron Jheng
97c6f1c5e8
kitex: init at 0.10.0 2024-06-12 15:20:19 +08:00
R. Ryantm
a1545af007 kittysay: 0.6.0 -> 0.8.0 2024-06-11 04:18:48 +00:00
Sandro
685664ff79
Merge pull request #316205 from eljamm/ki-dev
ki: fix beartype error and format with nixfmt
2024-06-10 17:26:07 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Sefa Eyeoglu
18b124840f
kiwitalk: use pnpm.fetchDeps
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-06-02 19:56:11 +02:00
eljamm
95016007bf
ki: fix beartype error and format with nixfmt
The `copy_note_media` function wrongly returns a `Frozenset` instead of
a `Set`, which raises an error for the newest beartype version (v0.18.5)
2024-05-31 17:08:00 +01:00
Sigmanificient
cc8120d3ff pkgs/by-name: remove unuseed fetchpatch arguments 2024-05-24 02:49:58 +02:00
Fabian Affolter
bf6276ffa8 killerbee: limit platform support 2024-05-22 10:19:19 +02:00
Fabian Affolter
3afead06bd killerbee: format with nixfmt 2024-05-22 10:18:37 +02:00
Fabian Affolter
e0a07d84b8 killerbee: refactor 2024-05-22 10:17:40 +02:00
R. Ryantm
e09c9900d9 kittysay: 0.5.0 -> 0.6.0 2024-05-08 01:42:49 +00:00
eljamm
ff79bb31cf
ki: init at 0-unstable-2023-11-08
Signed-off-by: eljamm <fedi.jamoussi@protonmail.ch>
2024-04-26 00:50:16 +01:00
isabel
05ee93256b
kittysay: init at 0.5.0 2024-04-14 17:38:53 +01:00
Felix Buehler
4a6031fb7c python312Packages.pcbnewtransition: rename from pcbnew-transition 2024-03-21 22:08:35 +01:00
Jeremy Fleischman
9f7c981bec
kikit: 1.4.0 -> 1.5.0
This includes support for KiCad 8 (see complete changelog
[here](https://github.com/yaqwsx/KiKit/releases/tag/v1.5.0)), which should unblock
https://github.com/NixOS/nixpkgs/pull/291134.

With this upgrade, a test started failing:

    $ nix build .#kikit
    ...
    kikit> not ok 40 Steel stencils
    kikit> # (in test file /build/source/test/system/stencil.bats, line 6)
    kikit> #   `kikit stencil create  --jigsize 60 60 $RES/conn.kicad_pcb steelStencil' failed
    kikit> # 04:32:16: Error: Directory '/homeless-shelter' couldn't be created (error 13: Permission denied)
    kikit> # An error occurred: OpenSCAD is not available.
    kikit> # Did you install it? Program `openscad` has to be in PATH
    kikit> # No output files produced
    kikit> not ok 41 Steel stencils with cutout
    kikit> # (in test file /build/source/test/system/stencil.bats, line 10)
    kikit> #   `kikit stencil create  --jigsize 60 60 --cutout J4 $RES/conn.kicad_pcb steelStencil' failed
    kikit> # 04:32:17: Error: Directory '/homeless-shelter' couldn't be created (error 13: Permission denied)
    kikit> # An error occurred: OpenSCAD is not available.
    kikit> # Did you install it? Program `openscad` has to be in PATH
    kikit> # No output files produced
    kikit> not ok 42 Printed stencils
    kikit> # (in test file /build/source/test/system/stencil.bats, line 14)
    kikit> #   `kikit stencil createprinted \' failed
    kikit> # 04:32:17: Error: Directory '/homeless-shelter' couldn't be created (error 13: Permission denied)
    kikit> # An error occurred: OpenSCAD is not available.
    kikit> # Did you install it? Program `openscad` has to be in PATH
    kikit> # No output files produced
    kikit> make: *** [Makefile:40: test-system] Error 1
    kikit> /nix/store/3qnm3nwjajgqa771dmi2dnwxrw0kzq5m-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
    error: builder for '/nix/store/f3klmz0qvi6yr3qfy7cww434f2z4kjx5-kikit-1.5.0.drv' failed with exit code 2;

This is failing in some pretty old kikit code, so I think this is just
failing due to kikit now having more complete code coverage. While
researching this, I discovered kikit's documentation about [optional
dependencies], which I suppose we don't have good support for right now.
Rather than invent a new option for that, I've opted to preserve the
existing behavior and just do the bare minimum to keep the build
passing.

[optional dependencies]: https://github.com/yaqwsx/KiKit/blob/v1.5.0/docs/installation/intro.md#optional-dependencies
2024-03-09 20:12:45 -08:00
Fabian Affolter
13d86d1c06
Merge pull request #282429 from fabaff/killerbee
killerbee: init at 3.0.0-beta.2
2024-02-19 23:55:37 +01:00
Peder Bergebakken Sundt
68dd75315c treewide: add system to "Unsupported system" throws 2024-02-11 00:03:49 +01:00
R. Ryantm
5fd1717391 kikit: 1.3.0 -> 1.4.0 2024-01-21 05:17:06 +00:00
Fabian Affolter
a8f65a171d killerbee: init at 3.0.0-beta.2
IEEE 802.15.4/ZigBee Security Research Toolkit

https://github.com/riverloopsec/killerbee
2024-01-20 23:37:43 +01:00
h7x4
f5a9b6bb5f
Merge pull request #248160 from gaelreyrol/kickstart-init-0.4.0
kickstart: init at 0.4.0
2024-01-17 23:45:48 +01:00
Felix Buehler
2adcc8846a python311Packages.wxpython: rename from wxPython_4_2 2024-01-07 21:16:47 +01:00
honnip
937e233218
kiwitalk: init at 0.5.1
https://github.com/KiwiTalk/KiwiTalk
2024-01-02 13:05:48 +09:00
Gaël Reyrol
136ad2c98f
kickstart: init at 0.4.0 2023-12-09 11:41:06 +01:00
Ivan Mincik
8b5d46f1ce python3Packages.shapely: rename shapely18 to shapely_1_8 2023-12-07 09:45:59 +01:00
Ivan Mincik
9a07607d71 kikit: use shapely 1.8
Use maintained version of shapely 1.8 instead of locally packaged
version.
2023-12-06 19:59:07 +01:00
Jeremy Fleischman
0650d380c7 kikit: init at 1.3.0
Co-authored-by: Rohit <rohitsutradhar311@gmail.com>
Co-authored-by: Jeremy Fleischman <jeremyfleischman@gmail.com>
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
Co-authored-by: Matúš Ferech <matus.ferech@gmail.com>
2023-11-16 21:24:04 +07:00