Commit Graph

9 Commits

Author SHA1 Message Date
Vladimír Čunát
8fb3314ff9
xdg-user-dirs: fix manpage rendering (#294585) 2024-10-15 07:42:43 +02:00
Felix Uhl
281573e95d xdg-user-dirs: add iFreilicht as maintainer for darwin 2024-10-11 00:15:15 +02:00
Felix Uhl
28a02c2950 xdg-user-dirs: fix manpage rendering
Previously, `man xdg-user-dirs-update` contained this:

```
--set NAME PATH
   Sets the XDG user dir with the given name.

   NAME should be one of the following:

       PATH must be an absolute path, e.g.  $HOME/Some/Directory.
```

Now, it's correctly rendered:

```
--set NAME PATH
   Sets the XDG user dir with the given name.

   NAME should be one of the following:
       DESKTOP
       DOWNLOAD
       TEMPLATES
       PUBLICSHARE
       DOCUMENTS
       MUSIC
       PICTURES
       VIDEOS

   PATH must be an absolute path, e.g.  $HOME/Some/Directory.
```
2024-10-11 00:05:36 +02:00
Randy Eckenrode
ff25858fa0
xdg-user-dirs: make sure libiconv is linked
Because the Darwin SDK automatically propagates libiconv, it is no
longer linked automatically (because that would link libiconv to
everything whether it wanted it or not).

xdg-user-dirs is failing to link not because it assumes libiconv comes
with libc but because of a bug in its build system. The `configure`
script detects how to link libiconv, but `Makefile.am` does not make use
of that to link libiconv when it is needed.
2024-10-10 01:07:11 -04: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
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
Donovan Glover
7da00fc793
xdg-user-dirs: set meta.mainProgram 2024-03-13 05:25:03 -04:00
Donovan Glover
3b44930cdd
xdg-user-dirs: cleanup 2024-03-13 05:22:38 -04:00
Donovan Glover
532ac4f6c6
xdg-user-dirs: migrate to by-name 2024-03-13 05:13:58 -04:00