Commit Graph

9 Commits

Author SHA1 Message Date
Francesco Gazzetta
68576df997 treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
Alexis Hildebrandt
6854606856 remind: 05.00.06 -> 05.00.07 2024-10-18 12:39:34 +02:00
Alexis Hildebrandt
1c9518ac1f remind: 05.00.02 -> 05.00.06 2024-10-02 01:01:52 +02:00
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
sinofp
a326e13ecd remind: Fix $out expansion for tkremind
In the last commit to remind, double quotes were replaced by single quotes.
This change disabled the parameter expansion for remind,
causing an error when starting tkremind:

Error in startup script: can't read "out": no such variable
    while executing
"set Remind "$out/bin/remind""
    (file "/nix/store/p2ha6a4ybw7m6cy8mindb15ay9129kfa-remind-05.00.02/bin/.tkremind-wrapped" line 216)

Reverting to double quotes allows Bash to correctly expand the $out parameter.
2024-08-12 16:05:39 +01:00
K900
24076029d2 Merge remote-tracking branch 'origin/master' into staging-next 2024-07-28 01:04:35 +03:00
Alexis Hildebrandt
9470e164c9 remind: modernize 2024-07-27 19:22:59 +02:00
Alexis Hildebrandt
a6996cbbeb remind: format using nixfmt 2024-07-27 01:50:11 +02:00
Alexis Hildebrandt
12b1282cf0 remind: migrate to pkgs/by-name 2024-07-27 01:41:32 +02:00