Commit Graph

9 Commits

Author SHA1 Message Date
Adam Joseph
c7e0f6b905 treewide: s_targetPlatform_hostPlatform_ in non-compiler packages
stdenv.targetPlatform really shouldn't be used by software that
doesn't generate or manipulate binaries.  I reviewed all uses of
targetPlatform outside of pkgs/development/compilers and pkgs/stdenv
and replaced those which weren't involved in something which fits
these criteria.
2023-11-17 08:07:34 +00:00
Alyssa Ross
e3e57b8f18 lib.systems: elaborate Rust metadata
We need this stuff to be available in lib so make-derivation.nix can
access it to construct the Meson cross file.

This has a couple of other advantages:

 - It makes Rust less special.  Now figuring out what Rust calls a
   platform is the same as figuring out what Linux or QEMU call it.

 - We can unify the schema used to define Rust targets, and the schema
   used to access those values later.  Just like you can set "config"
   or "system" in a platform definition, and then access those same
   keys on the elaborated platform, you can now set "rustcTarget" in
   your crossSystem, and then access "stdenv.hostPlatform.rustcTarget"
   in your code.

"rustcTarget", "rustcTargetSpec", "cargoShortTarget", and
"cargoEnvVarTarget" have the "rustc" and "cargo" prefixes because
these are not exposed to code by the compiler, and are not
standardized.  The arch/os/etc. variables are all named to match the
forms in the Rust target spec JSON.

The new rust.target-family only takes a list, since we don't need to
worry about backwards compatibility when that name is used.

The old APIs are all still functional with no warning for now, so that
it's possible for external code to use a single API on both 23.05 and
23.11.  We can introduce the warnings once 23.05 is EOL, and make them
hard errors when 23.11 is EOL.
2023-11-09 10:02:24 +01:00
Theodore Ni
68d6f72e59
matrix-hookshot: adapt update script to new nix-prefetch-github 2023-07-18 18:16:16 -07:00
Charlotte Van Petegem
65e5b33667
matrix-hookshot: 4.3.0 -> 4.4.0
https://github.com/matrix-org/matrix-hookshot/releases/tag/4.4.0
2023-06-29 09:32:50 +02:00
Charlotte Van Petegem
bfe156cc0b
matrix-hookshot: 4.0.0 -> 4.1.0
https://github.com/matrix-org/matrix-hookshot/releases/tag/4.1.0
2023-06-02 10:44:41 +02:00
Alyssa Ross
5e06b3cb19 treewide: don't use rustPlatform.rust
This will be deprecated in the next commit.
2023-05-12 15:31:21 +00:00
Charlotte Van Petegem
49c4f0707b
matrix-hookshot: 3.0.0 -> 3.0.1
https://github.com/matrix-org/matrix-hookshot/releases/tag/3.0.1
2023-03-21 16:06:00 +01:00
Charlotte Van Petegem
5bb0c0c812
matrix-hookshot: 2.7.0 -> 3.0.0 2023-03-18 10:29:38 +01:00
Charlotte Van Petegem
582795ab5a
matrix-hookshot: init at 2.7.0 2023-02-19 12:58:52 +01:00