Commit Graph

14 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
K900
11ce9983ff nix-init: 0.3.1 -> 0.3.2 2024-08-16 09:18:01 +03:00
R. Ryantm
e1822b634c nix-init: 0.3.0 -> 0.3.1 2024-08-14 05:16:12 +00: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
Sandro Jäckel
2429bde882 nix-init: unpin libgit2 2024-02-29 18:54:37 +01:00
figsoda
05a7bfedfd nix-init: 0.2.4 -> 0.3.0
Diff: https://github.com/nix-community/nix-init/compare/v0.2.4...v0.3.0

Changelog: https://github.com/nix-community/nix-init/blob/v0.3.0/CHANGELOG.md
2023-09-16 17:28:04 -04:00
figsoda
add32c92e7 nix-init: use libgit2_1_6 2023-08-07 10:20:31 -04:00
figsoda
151b1854f6 nix-init: 0.2.3 -> 0.2.4
Diff: https://github.com/nix-community/nix-init/compare/v0.2.3...v0.2.4

Changelog: https://github.com/nix-community/nix-init/blob/v0.2.4/CHANGELOG.md
2023-07-06 18:34:04 -04:00
figsoda
87b94e2e4f nix-init: 0.2.2 -> 0.2.3
Diff: https://github.com/nix-community/nix-init/compare/v0.2.2...v0.2.3

Changelog: https://github.com/nix-community/nix-init/blob/v0.2.3/CHANGELOG.md
2023-04-29 19:27:22 -04:00
figsoda
c58c844b36 nix-init: 0.2.1 -> 0.2.2
Diff: https://github.com/nix-community/nix-init/compare/v0.2.1...v0.2.2

Changelog: https://github.com/nix-community/nix-init/blob/v0.2.2/CHANGELOG.md
2023-04-23 10:49:07 -04:00
figsoda
80a7ce3920 nix-init: 0.2.0 -> 0.2.1
Diff: https://github.com/nix-community/nix-init/compare/v0.2.0...v0.2.1

Changelog: https://github.com/nix-community/nix-init/blob/v0.2.1/CHANGELOG.md
2023-03-21 21:04:45 -04:00
figsoda
f129d39c77 nix-init: 0.1.1 -> 0.2.0
Diff: https://github.com/nix-community/nix-init/compare/v0.1.1...v0.2.0

Changelog: https://github.com/nix-community/nix-init/blob/v0.2.0/CHANGELOG.md
2023-03-20 09:41:23 -04:00
figsoda
acf0a7d9fd nix-init: 0.1.0 -> 0.1.1
Diff: https://github.com/nix-community/nix-init/compare/v0.1.0...v0.1.1

Changelog: https://github.com/nix-community/nix-init/blob/v0.1.1/CHANGELOG.md
2023-02-06 15:51:57 -05:00
figsoda
44187e2a04 nix-init: init at 0.1.0 2023-01-28 15:22:29 -05:00