Commit Graph

113 Commits

Author SHA1 Message Date
Stefan Frijters
bef5e44caf automake116x: use sri hash 2026-08-11 23:36:27 +02:00
Stefan Frijters
0043d4fbc7 automake: enable structuredAttrs, use finalAttrs 2026-08-02 23:00:16 +02:00
Stefan Frijters
733fcf93e5 automake116x: enable structuredAttrs, use finalAttrs 2026-08-02 23:00:13 +02:00
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
Weijia Wang
0500687912 automake111x: drop 2025-07-21 17:52:48 +02:00
Philip Taron
4800788f8d automake118x: init at 1.18.1 (#426010) 2025-07-17 13:16:55 -07:00
Sergei Trofimovich
f21c5793e2 automake117x: remove unused
Nothing uses 117x in `nixpkgs` yet and we are
about to add 118x.
2025-07-17 13:28:25 +01:00
Sergei Trofimovich
726cbad57f automake115x: remove unused versioned package
It's not the most recent `nixpkgs` version of automake.
As it's ont used as a dependency anywhere let's drop it.
2025-07-17 13:24:52 +01:00
Sergei Trofimovich
b9dcc6da81 automake118x: init at 1.18.1
Changes:
- https://lists.gnu.org/archive/html/automake/2025-06/msg00029.html
- https://lists.gnu.org/archive/html/automake/2025-05/msg00012.html
2025-07-17 07:14:12 +01:00
Wolfgang Walther
cf127c9dc3 treewide: load structured attributes in all bash builders consistently
It's hard to put the sourcing of ./.attrs.sh into all builder
consistently - mistakes will happen. Thus, load structured attrs once in
make-derivation and then source the remaining builder on top.

This should fix quite a few builders with structured attributes in
principle. Most importantly it helps substitute / substituteAll, which
are required for bootstrap on some platforms.
2024-12-29 18:36:47 +01:00
Silvan Mosberger
667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Sergei Trofimovich
253cee1452 automake117x: init 1.17
Switch to it by default will happen separately.

Changes: https://lists.gnu.org/archive/html/info-gnu/2024-07/msg00006.html
2024-07-22 22:13:37 +01:00
Audrey Dutcher
846de80d1c various: Enable updateAutotoolsGnuConfigScriptsHook
Prior to August 2023, any config.guess generated by autoconf will
include a hardcoded /usr/bin/uname invocation for FreeBSD on any
architecture other than arm. This clearly doesn't work under nix.
We must then update or otherwise patch each old config.guess.
2024-05-27 11:09:28 -04:00
Maximilian Bosch
8bc5104a6e treewide: refactor .attrs.sh detection
When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into

    builtins.derivation {
      builder = stdenv.shell;
      args = [ "-e" builder ];
    }

This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].

Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:

* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
  Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
  (see previous commit for more context), so prefer the environment
  variable if possible.

* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
  can happen.

* If neither applies, it can be assumed that `__structuredAttrs` is
  turned off and thus nothing needs to be done.

[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
    it can point to a wrong location on older Nix versions with a bug in
    `__structuredAttrs`.
2023-10-04 18:36:57 +02:00
Artturin
856f3a46b2 stdenv: drop remove unnecessary env var
and the associated obsolete functions

support for log nesting was removed in 2017 6669a3b477
2023-01-15 23:56:23 +02:00
Artturin
c01f509e44 treewide: source .attrs in builders
if theres a source $stdenv then this is needed

for structuredAttrs
2022-12-08 21:09:02 +02:00
Sergei Trofimovich
3ca9a6d773 automake111x: fix depends for strictDeps = true
Without the change `config.strictDepsByDefault = true` fails build as:

    checking for perl... no
    configure: error: perl not found
2022-06-21 22:45:25 +01:00
Artturin
f002ffed9a treewide: enable strictDeps in bootstrap packages 2022-05-22 16:40:26 +03:00
Sandro
cb292462cf Merge pull request #139808 from trofi/update-automake 2021-11-26 22:56:44 +01:00
Sergei Trofimovich
4072681207 automake: 1.16.3 -> 1.16.5 2021-11-17 14:12:34 +00:00
Felix Buehler
345d71ffd0 pkgs/development: rename name to pname&version 2021-11-10 14:03:21 +01:00
Sandro Jäckel
25a3842f06 automake: switch to pname + version 2021-08-12 18:16:30 +02:00
Vladimír Čunát
d7b8d5e15a Revert "automake: 1.16.3 -> 1.16.4"
This reverts commit 46306d2971.
2021-08-11 23:15:49 +02:00
R. RyanTM
46306d2971 automake: 1.16.3 -> 1.16.4 2021-07-29 10:49:24 +02:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
R. RyanTM
db70ecb5f8 automake: 1.16.2 -> 1.16.3 2020-11-25 10:10:57 -08:00
Alyssa Ross
57f3c834bc automake115x: 1.15 -> 1.15.1 2020-07-03 03:36:42 +00:00
Jan Tojnar
a04625379a Merge branch 'master' into staging-next 2020-04-13 18:50:35 +02:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Lancelot SIX
a44ac81f46 automake: 1.16.1 -> 1.16.2 2020-04-03 22:12:02 +02:00
David Terry
cd87f1ba23 automake-1.15: deterministic documentation generation
automake 1.15 uses a bundled version of help2man from 2012 that
does not support the SOURCE_DATE_EPOCH environment variable.

This means that the build date is included in the generated
documentation, breaking reproducibility.

This changes adds the SOURCE_DATE_EPOCH support from the current
help2man to the version bundled in automake 1.15.
2019-11-03 10:55:45 +01:00
Vladimír Čunát
1279016787 Re-Revert "Merge #58997 gettext: apply patch for CVE 2018-1875"
This reverts commit 742416addb.
Moved to staging.
2019-04-05 21:03:59 +02: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
Jan Malakhovski
cf84bc0374 automake116x: disable tests, also cleanup 2018-08-11 09:35:18 +00:00
Jan Malakhovski
9bab07e541 automake111x: disable tests, also cleanup 2018-08-11 09:35:18 +00:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
volth
b43c7bd934 automake111x: fix for perl5.26 ("Unescaped left brace in regex is illegal here") (#42649) 2018-06-27 16:27:58 +02:00
Tuomas Tynkkynen
cd1cb10515 automake: 1.16 -> 1.16.1 2018-03-22 09:48:21 +02:00
Lancelot SIX
e0c155e26b automake: 1.15.1 -> 1.16
See http://lists.gnu.org/archive/html/info-gnu/2018-02/msg00008.html
for release announcement and changes.
2018-02-26 09:42:57 +01:00
Ben Gamari
2893657014 automake: Enable cross-compilation 2018-01-22 20:25:44 -05:00
John Ericson
046f091e0d treewide: Don't use envHook anymore
This commits needs a MAJOR audit as I oftentimes just guessed which of
`$hostOffset`, `$targetOffset`, or a fixed offset should be used.
2017-12-30 22:04:22 -05:00
Frederik Rietdijk
2a8cd14d5f Merge remote-tracking branch 'upstream/master' into HEAD 2017-08-13 09:50:47 +02:00
Robin Gloster
1e2529498d automake113x: remove 2017-08-12 21:49:11 +02:00
Robin Gloster
bfdd9d2e66 automake114x: remove 2017-08-12 20:21:39 +02:00
Robin Gloster
220c5377e8 automake112x: remove
unused
2017-08-12 19:12:09 +02:00
Robin Gloster
60730cb043 automake: 1.15 -> 1.15.1 2017-08-12 18:23:26 +02:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Robin Gloster
423e67b299 automake110x: remove unused package 2016-08-24 21:07:59 +00:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Peter Simons
8e462995ba Bring my stdenv.lib.maintainers user name in line with my github nick. 2016-05-16 22:49:55 +02:00