Commit Graph

25 Commits

Author SHA1 Message Date
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Guy Chronister
475a0e3a44 various: remove superflous usages of pname 2025-09-25 20:45:06 -05:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Masum Reza
e13831335f treewide: stdenv.is -> stdenv.hostPlatform.is (#356363)
* treewide: stdenv.is -> stdenv.hostPlatform.is

* treewide: nixfmt due to ci error
2024-11-17 16:11:54 +05:30
Stanisław Pitucha
b1f1ea0ed4 gaucheBootstrap: fix darwin build
Add the required framework.
2024-10-18 10:15:39 +11: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
rczb
5039637648 gauche: 0.9.13 -> 0.9.15 2024-08-10 15:57:11 +08:00
rczb
e2e7fa3f95 gaucheBootstrap: 0.9.12 -> 0.9.15 2024-08-10 15:37:54 +08:00
stuebinm
fe06c43d70 gauche: remove dependency onto gaucheBootstrap
This reduces closure size of the built package by about a third.

The only reference to gaucheBootstrap in the built package was in
$out/share/gauche-0.98/0.9.13/package-templates/configure, where it is
incorrect: anyone using the template shipped with the gauche package
would have unintentially used the bootstrap version of gauche instead.
2024-05-07 11:36:55 +02:00
stuebinm
2233ed700b gauche: set meta.mainProgram to gosh
This package provides multiple binaries, but `gosh' is the
interpreter which is actually used to run scheme scripts,
and so probably the one people think of when they say
"running Gauche Scheme".
2024-03-11 22:53:08 +01:00
Mario Rodas
1e125813bf gauche: 0.9.10 -> 0.9.13 2023-11-30 04:20:00 +00:00
Mario Rodas
0a91ab37e7 gaucheBootstrap: 0.9.9 -> 0.9.12 2023-11-30 04:20:00 +00:00
Stanisław Pitucha
bc7aed2b1a gauche: mark not broken on darwin
Update to use the new sdk.
2023-03-24 23:04:55 +11:00
Artturin
05a2dfd674 lib.replaceChars: warn about being a deprecated alias
replaceStrings has been in nix since 2015(nix 1.10)

so it is safe to remove the fallback

d6d5885c15
2022-12-15 22:25:51 +02:00
Sandro Jäckel
c1e35a4b63 gauche: mark broken on darwin 2021-02-02 14:46:05 +01:00
Ben Siraphob
47de48f600 gauche: 0.9.9 -> 0.9.10 2021-01-10 21:23:52 +07:00
Mitsuhiro Nakamura
a7d1e40044 gauche: fix path to cert file (#90708) 2020-06-19 11:33:06 -04:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Mario Rodas
56a206efe9 gauche: 0.9.8 -> 0.9.9
Release notes: https://practical-scheme.net/gauche/gmemo/?Release%200.9.9
2019-12-16 20:20:20 -05:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Mitsuhiro Nakamura
ab5f07960a gauche: 0.9.7 -> 0.9.8 2019-06-17 09:02:26 +09:00
Vladimír Čunát
79bd4ad579 stdenv, cacert: consider $NIX_SSL_CERT_FILE in hooks
Some SSL libs don't react to $SSL_CERT_FILE.
That actually makes sense to me, as we add this behavior
as nixpkgs-specific, so it seems "safer" to use $NIX_*.
2019-05-09 08:46:22 +02:00
R. RyanTM
fc27f4b297 gauche: 0.9.6 -> 0.9.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/gauche/versions
2018-12-26 10:36:30 +01:00
Mitsuhiro Nakamura
5b2091a482 gauche: 0.9.5 -> 0.9.6
- Support mbedtls
- UTF-8 encoding is default
2018-07-04 00:28:50 +09:00
Mitsuhiro Nakamura
ae89ef24aa gauche: init at 0.9.5 2018-05-19 22:29:29 +09:00