Commit Graph

32 Commits

Author SHA1 Message Date
piegames
68927918d0 treewide: Fix indentation in strings
The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
2024-10-22 21:36:42 +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
Vincenzo Mantova
2fa4ebdbc1 mitscheme: replace texlive.combine with texliveSmall.withPackages 2023-11-05 13:43:29 +00:00
Kevin
8e95f0ac60 mitscheme:11.2 -> 12.1 https://www.gnu.org/software/mit-scheme/release.html 2023-03-03 15:46:36 -06:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
Fabián Heredia Montiel
0cf5d85f0c treewide: add gcc12 flags 2023-01-27 21:20:52 -06:00
Sergei Trofimovich
22bee934d0 mitschemeX11: use xorg.* packages directly instead of xlibsWrapper indirection
Validated as no materail change in `out` output with `diffoscope`.
2022-11-22 22:24:10 +00:00
Felix Buehler
783d2679e5 treewide: rename name to pname&version 2022-03-08 13:24:25 +01:00
Artturin
e9afd04202 mit-scheme: set MITSCHEME_LIBRARY_PATH properly
by changing its path and wrapping the correct binary
all the other binaries in bin/ are symlinks to bin/mit-scheme${arch}-${version}
therefore its easier to just wrap that one instead of all the others
2021-09-15 05:38:03 +03:00
Brian Leung
f047ae82cd mit-scheme: 10.1.10 -> 11.2
Add ncurses as a propagated build input.
Add ghostscript, autoconf, and libtool as native build inputs.
Add epsf and texinfo to the texLive closure.
Support aarch64 Linux, and remove support for i686 Linux.

Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
2021-08-07 18:27:21 -07:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Attila Gulyas
3ff8bb704d mit-scheme: 9.2 -> 10.1.10
The  last update  was  in 2014  (9.2),  but a  major
release came out since (10.x).

See discussion at https://discourse.nixos.org/t/6776
but to sum up:

The portable  C source and Windows  binaries are not
available in the latest MIT Scheme release
(see https://www.gnu.org/software/mit-scheme/release.html )
Warning: Locale seems not configured
hence  the  option  to  build from  source has  been
removed  from  `default.nix`.  Although there  is  a
source package  included in the release  (in lieu of
the portable C source), there is a caveat:

> Note that you cannot build a working system from the
> source  unless you  have  a  working MIT/GNU  Scheme
> compiler to do the  compilation. (This doesn't apply
> to the  portable C source,  which requires only  a C
> compiler.)  This means  that if  the above  binaries
> don't work  on your system,  it is pointless  to try
> building a  custom set  of binaries from  the source
> code.
2020-05-13 16:12:43 -07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
c0bw3b
0498ccd076 Treewide: use HTTPS on GNU domains
HTTP -> HTTPS for :
- http://gnu.org/
- http://www.gnu.org/
- http://elpa.gnu.org/
- http://lists.gnu.org/
- http://gcc.gnu.org/
- http://ftp.gnu.org/ (except in fetchurl mirrors)
- http://bugs.gnu.org/
2018-12-02 15:51:59 +01:00
Will Dietz
9bde5abedd more platforms.gnu -> gnu ++ linux changes, manually 2018-04-30 18:14:44 -05:00
Owen Lynch
afd198f0f4 mitschemeX11: init at 9.2 2017-12-26 22:32:23 -05:00
Ludovic Courtès
41b53577a8 unmaintain a bunch of packages 2015-01-13 22:33:49 +01:00
Pascal Wittmann
bc7fe78d19 mit-scheme: update from 9.1.1 to 9.2 and remove broken tag
closes #3705
2014-08-21 19:40:53 +02:00
Eelco Dolstra
8a7f3c3618 Mark a bunch of packages as broken or not supported on Darwin 2014-08-08 17:59:02 +02:00
Mateusz Kowalczyk
7a45996233 Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
Eelco Dolstra
0a47a28f1d Merge remote-tracking branch 'origin/master' into stdenv-updates 2013-01-22 23:23:53 +01:00
Alexander Foremny
0500d16899 Fix mit-scheme
These changes are necessary for me to use mit-scheme on i686 NixOS.
mit-scheme in the current state should be broken on x86_64 either and
these changes should fix, too. I however did not test this.
2013-01-12 13:11:55 +01:00
Eelco Dolstra
ab3eeabfed Rename buildNativeInputs -> nativeBuildInputs
Likewise for propagatedBuildNativeInputs, etc.  "buildNativeInputs"
sounds like an imperative rather than a noun phrase.
2012-12-28 19:20:09 +01:00
Ludovic Courtès
3f8320658a MIT/GNU Scheme: Fix hashes.
svn path=/nixpkgs/trunk/; revision=30769
2011-12-05 23:22:42 +00:00
Ludovic Courtès
3053de4776 MIT/GNU Scheme 9.1.1.
svn path=/nixpkgs/trunk/; revision=30677
2011-12-01 23:20:31 +00:00
Ludovic Courtès
67e7995cdc MIT/GNU Scheme 9.1.
svn path=/nixpkgs/trunk/; revision=30124
2011-10-30 11:51:55 +00:00
Ludovic Courtès
a89f709a91 GNU/MIT Scheme: Restrict to GNU/* and FreeBSD.
svn path=/nixpkgs/trunk/; revision=21302
2010-04-24 21:03:00 +00:00
Ludovic Courtès
805d99ffc7 Reverting "GNU/MIT Scheme: Attempt to fix Cygwin builds."
svn path=/nixpkgs/trunk/; revision=21301
2010-04-24 21:02:52 +00:00
Ludovic Courtès
4f9ffa5e59 GNU/MIT Scheme: Attempt to fix Cygwin builds.
svn path=/nixpkgs/trunk/; revision=21295
2010-04-24 16:02:08 +00:00
Ludovic Courtès
4fcbad8476 GNU/MIT Scheme: Build from the binary distributions when available.
svn path=/nixpkgs/trunk/; revision=21293
2010-04-24 11:09:53 +00:00
Ludovic Courtès
6574a35e56 Add MIT/GNU Scheme.
svn path=/nixpkgs/trunk/; revision=20719
2010-03-17 15:32:12 +00:00