Commit Graph

169 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
Alyssa Ross
d4a72a3935 lib.platforms.mesaPlatforms: remove
Mesa is a package like any other.  There's no reason for it to be a
special case with its platforms listed in lib, because if other
packages want to refer to mesa's platforms, they can access the
platforms from the package meta like they would for any other package.
2024-08-31 10:28:31 +02:00
Dominique Martinet
25ab2f0fe7 anki: skip flaky tests 2024-08-13 15:07:09 +09:00
Dominique Martinet
b3fe728bdc anki: format with nixfmt-rfc-style 2024-08-10 13:44:59 +09:00
Dominique Martinet
f1389c6db1 anki: fix for rust 1.80
rust 1.80 requires updating the 'time' crate to at least 0.3.35.

That update is already in anki's master branch but it isn't anywhere
close to time for a new release, so just bump time and only time
manually for our tree.

(This also fixes anki-sync-server which usese the same sources/Cargo
deps, when removing the patch during the next update it will need to be
removed from both files as written in comment)

Link: https://github.com/NixOS/nixpkgs/issues/332957
2024-08-10 13:44:59 +09:00
Dominique Martinet
efcc0e27bb anki: 24.06.2 -> 24.06.3
This doesn't have anything too interesting that I can see but might as well
update to latest release if we're going to rebuild
2024-08-10 13:44:59 +09:00
tomberek
780740f2a1
Merge pull request #321290 from euank/anki-update2
anki: 24.04 -> 24.06.2
2024-08-02 02:53:21 -04:00
Peder Bergebakken Sundt
3ded327771 anki: disable test_create_open
Fails in nix-portable with bwrap, where it is able to attach `/attachroot.anki2` when it shouldn't
2024-07-10 17:50:01 +02:00
jacekpoz
1d9a056400 anki-bin: inherit mainProgram from anki 2024-07-05 13:28:31 +02:00
Mahmoud Ayman
618405e587
anki-bin: sha256 -> hash 2024-07-01 14:08:11 +03:00
Mahmoud Ayman
4665cb527f
anki-bin: 24.04.2 -> 24.06.3 2024-07-01 13:28:38 +03:00
Euan Kemp
e68ac7fa2a pkgs/anki: 24.04 -> 24.06.2
Rote update, manually verified the output anki binary works correctly
for my decks
2024-06-21 01:20:01 +09:00
Mahmoud Ayman
f58b656d4a
anki-bin: 24.06.1 -> 24.06.2 2024-06-15 02:02:20 +03:00
Mahmoud Ayman
2786edc0e0
anki-bin: 24.04.1 -> 24.06.1 2024-06-15 02:02:14 +03:00
Mahmoud Ayman
38babf4bdd
anki-bin: reformat 2024-06-15 02:00:54 +03:00
Nick Cao
d8882fc434
Merge pull request #307164 from mahmoudk1000/master
anki-bin: 24.04 -> 24.04.1
2024-04-27 10:34:28 -04:00
Mahmoud Ayman
6ed71c8d71
anki-bin: 24.04 -> 24.04.1 2024-04-27 11:25:13 +03:00
Atemu
2432c6b829
Merge pull request #271071 from pbsds/wrapAppImage-pname-redux
appimageTools.wrapAppImage: remove version from `pname`
2024-04-24 21:48:19 +02:00
Peder Bergebakken Sundt
7d5a185ec6 anki: don't set name to null 2024-04-24 15:26:52 +02:00
Thiago Kenji Okada
b58121a511
Merge pull request #302013 from slotThe/anki-24.04
anki: 23.12.1 -> 24.04
2024-04-23 10:28:51 +01:00
Aleksana
8e5f550aa5
Merge pull request #304330 from Cephian/anki-ssl-fix
anki-bin: add explicit SSL cert path
2024-04-18 13:21:40 +08:00
Sandro Jäckel
fb0d661081
treewide: replace prefetch-yarn-deps with fixup-yarn-lock where necessary 2024-04-17 13:34:05 -04:00
Jackson Abascal
adc7c54441 anki-bin: set SSL cert path environment variable 2024-04-15 15:15:02 -07:00
Tony Zorman
cd384ccef3 anki: 23.12.1 -> 24.04 2024-04-11 20:12:16 +02:00
Weijia Wang
81a8765ab5
Merge pull request #300726 from mahmoudk1000/master
anki-bin: 23.12.1 -> 24.04
2024-04-01 19:20:27 +02:00
Mahmoud Ayman
cf8ec33cde
anki-bin: add new dependencies 2024-04-01 17:53:44 +02:00
Mahmoud Ayman
a2eb367a1a
anki-bin: 23.12.1 -> 24.04 2024-04-01 17:51:13 +02:00
Adam C. Stephens
395a71d6cc
Merge pull request #298981 from mahmoudk1000/master
anki-bin: clear plugin path environment variable
2024-03-31 18:58:33 -04:00
Mahmoud Ayman
23251e3e0c
anki-bin: clear plugin path environment variable
Co-authored-by: SuperSandro2000 <sandro.jaeckel@gmail.com>
2024-03-25 23:30:36 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Pavel Sobolev
d255738da5
anki: remove paveloom from maintainers 2024-01-13 15:49:21 +00:00
K900
7b4e618602
Merge pull request #276671 from mahmoudk1000/master
anki-bin: 23.10.1 -> 23.12
2024-01-08 12:38:16 +03:00
Mahmoud Ayman
530943ad83
anki-bin: 23.12 -> 23.12.1 2023-12-28 18:15:45 +02:00
Pavel Sobolev
87ecf9d62f
anki: 23.12 -> 23.12.1 2023-12-28 17:24:22 +03:00
Pavel Sobolev
5c3cca0e26
anki: 23.10.1 -> 23.12 2023-12-25 18:57:20 +03:00
Mahmoud Ayman
aa87596cdc
anki-bin: 23.10.1 -> 23.12 2023-12-25 11:11:08 +02:00
Euan Kemp
a1c4054f73 pkgs/anki: add qtsvg to inputs to fix anki theme
This fixes #248357

It turns out the checkmark and so on are svg images, and without qtsvg,
they don't render right, making the preferences panel appear broken.

This seems to fix it for me!

Shoutout to antecrescent for the fix! https://github.com/NixOS/nixpkgs/issues/248357#issuecomment-1850020525
2023-12-12 00:01:02 +09:00
Dominique Martinet
f0f6c77781 nixos/tests/anki-sync-server: add anki sync test
Start anki-sync-server service and drive anki manually through its
python lib to test sync.
The anki python part isn't a stable API and might require freqent
rework, let's see if it holds up...
2023-11-30 17:25:27 +01:00
Dominique Martinet
c305510073 anki-sync-server: init at 2.1.66
anki-sync-server will be used in new ankisyncd module.

anki itself was slightly modified to add its cargoLock as passthru so we
can use it for anki-sync-server as it's built from the same sources.

Link: https://github.com/NixOS/nixpkgs/pull/257692
Co-authored-by: Pavel Sobolev <paveloom@riseup.net>
Co-authored-by: h7x4 <h7x4@nani.wtf>
2023-11-30 05:06:49 +01:00
Weijia Wang
27ed44cff1
Merge pull request #264796 from paveloom/anki
anki: 2.1.66 -> 23.10.1
2023-11-30 03:25:16 +01:00
Pavel Sobolev
97933ba142
anki: 2.1.66 -> 23.10.1 2023-11-29 10:29:15 +03:00
Felix Buehler
9d1029f253 anki: migrate to prefetch-yarn-deps 2023-11-25 12:31:32 +01:00
Mahmoud Ayman
6465bb8af2
maintainers: remove atemu 2023-11-10 17:27:13 +02:00
Mahmoud Ayman
41589dfbac
anki-bin: 23.10 -> 23.10.1 2023-11-10 14:24:30 +02:00
Mahmoud Ayman
3c381e85c7
anki-bin: 2.1.66 -> 23.10 2023-11-01 15:37:29 +02:00
Pavel Sobolev
5ccdb37a8b
anki: 2.1.65 -> 2.1.66 2023-09-02 19:19:38 +03:00
Pavel Sobolev
aa2f2dd7df
anki: refactor 2023-09-02 19:19:02 +03:00
Atemu
c680330b76
Merge pull request #229480 from euank/anki-2.1.62
anki: 2.1.61 -> 2.1.65
2023-08-29 16:38:55 +02:00
Euan Kemp
f129e294b3 anki: mark as broken on darwin 2023-08-29 22:16:34 +09:00
Euan Kemp
9c577da750 anki: 2.1.61 -> 2.1.65 2023-08-29 22:15:47 +09:00