Commit Graph

29 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
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
TomaSajt
436fe7b59b
treewide: unify ant determinism methods 2024-03-17 13:35:55 +01:00
TomaSajt
8d4e651526
jameica: make deterministic and clean up 2024-03-10 02:15:25 +01:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
Florian Klink
ce50ab7ff4 jameica: 2.10.2 -> 2.10.4 2024-02-01 22:22:10 +02:00
Florian Klink
931ecfea08 jameica: add aarch64-linux support 2022-12-13 23:48:28 +00:00
Shawn8901
7d933d4c34 jameica: ensure gsetting schema is available 2022-08-03 20:23:17 +02:00
Robert Scott
3b6bc4b69c treewide: set sourceProvenance for packages containing downloaded jars
these are the easily identifiable cases and will not be comprehensive
2022-06-04 19:47:57 +01:00
Armin Rothfuss
d9c2f0036d jameica 2.10.1 -> 2.10.2 2022-05-16 22:07:11 +02:00
Naïm Favier
5f3016cde8
jameica: fix wrapper arguments escaping 2022-05-06 18:28:35 +02:00
github-actions[bot]
8357b101a5
Merge staging-next into staging 2022-03-25 12:02:05 +00:00
Felix Buehler
3bc5196252 treewide: rename name to pname&version 2022-03-23 22:55:50 +01:00
Naïm Favier
9160044f5f
treewide/makeWrapper: replace --run cd with --chdir
Lay the groundwork for switching to binary wrappers by reducing uses
of `--run` (which is not supported by `makeBinaryWrapper`).
2022-03-19 09:46:31 +01:00
Shawn8901
87b6c09b08 jameica: Added icon to desktop file 2022-03-02 19:49:31 +01:00
K900
cb2cfba6f7 treewide: switch all desktop file generators to new API
Notably:
- remove explicit arguments that match the defaults
- convert everything to the right Nix types
2022-02-25 13:40:38 -08:00
Armin Rothfuss
d1ec33e8a8 jameica 2.10.0 -> 2.10.1 2022-02-04 10:39:19 +01:00
Armin Rothfuss
b74259546d jameica: 2.8.6 -> 2.10.0 2021-10-22 01:00:02 +02:00
Ben Siraphob
108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Florian Klink
5ff089db9b jameica: 2.8.4 -> 2.8.6 2020-05-01 02:12:48 +02:00
Florian Klink
7b596ae198 jameica: fix .desktop file
/nix/store/5cqxx71wam21ayzpc32m8irvsdnxdwla-jameica.desktop/share/applications/jameica.desktop:
warning: value "Application;Office;" for key "Categories" in group
"Desktop Entry" contains a deprecated value "Application"
2020-05-01 02:12:48 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Florian Klink
1d6005e113 jameica: 2.8.2 -> 2.8.4 2019-08-27 13:45:44 +02:00
Stefan Wiehler
fc92b6167f jameica: 2.8.1 -> 2.8.2 2018-10-13 10:32:20 +02:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Florian Klink
30f0011bb2 jameica: get rid of launcher script, only use makeWrapper
This also switches using java paths suggested by docs instead of
$out/share/libexec
2018-08-17 16:24:20 +02:00
Florian Klink
cf5826f1a3 jameica: add darwin support (#44953) 2018-08-13 14:12:29 +02:00
Florian Klink
9cce1db89f jameica: init at 2.8.1 2018-08-12 22:52:10 +02:00