Commit Graph

325 Commits

Author SHA1 Message Date
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
Stig
c9a667043f
Merge pull request #256402 from puckipedia/fix-frozen-bubble
perlPackages.SDL: fix on perl >= 5.38.0
2023-09-21 13:58:37 +02:00
Puck Meerburg
5742d5a8fd perlPackages.SDL: import patch 2023-09-21 09:14:44 +00:00
Randy Eckenrode
42f749145d
perlPackages.Tk: fix build with clang 16
The jpeg `configure` script fails to detect clang as a functioning C
compiler because it uses a test with a `main` that returns an implicit
`int`, which results in an error with clang 16.
2023-09-06 18:30:41 -04:00
Vladimír Čunát
c58c344fca
Merge #246585: Fix perlPackages breakage
...into staging-next
2023-08-02 10:09:38 +02:00
Stig Palmquist
42dde6e410
perlPackages.ExtUtilsConstant: add patch for failing test 2023-08-01 17:01:54 +02:00
Stig Palmquist
5a9c09f2f7
perlPackages.ExceptionBase: add patch for perl 5.38.0 2023-08-01 17:01:54 +02:00
Stig Palmquist
5be1087e8f
perlPackages.DataClone: add patch for perl 5.38.0 2023-08-01 17:01:47 +02:00
Stig Palmquist
a287870f99
perlPackages.DataUUID: Add patch for CVE-2013-4184 2023-07-24 17:11:59 +02:00
Theodore Ni
867f6fc82d
perlPackages.Po4a: disable tests on darwin 2023-06-22 13:07:51 -07:00
Artturin
449a46278e strip-nondeterminism: fix zip handler
https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/blob/master/lib/File/StripNondeterminism/handlers/zip.pm#L29

it was working on linux because the tests are run on linux
2023-06-03 23:43:41 +03:00
Nick Cao
d9bf21544e
perlPackages.TextBibTeX: always install libbtparse.so to /lib instead of /lib64 2023-06-01 16:32:17 +08:00
Artturi
e0ac8942bd
Merge pull request #224107 from Artturin/perl-use-mkscopewithsplicing 2023-04-19 01:53:05 +03:00
Artturin
af0fc32127 perlPackages: use makeScopeWithSplicing 2023-04-11 18:49:10 +03:00
github-actions[bot]
97b2abc678
Merge staging-next into staging 2023-03-26 12:02:02 +00:00
github-actions[bot]
72fc224baa
Merge staging-next into staging 2023-03-26 06:01:39 +00:00
apfelkuchen06
8e40747e62 perl536Packages.Po4a: remove texlive dependency
The motivation behind this is wanting to reduce the reverse closure size of
texlive.

When internationalizing tex files, Po4a attempts to follow included files. In
order to find the correct files, po4a uses texlive's file-finding utility
kpsewhich. This commit replaces texlive with a tiny shell script, which is
precisely good enough to run the tests.

This does not change the resulting package in any way, it only affects how the
test is run.
2023-03-26 01:11:05 -04:00
Stig Palmquist
33b7b0bf88
perlPackages.CatalystAuthenticationStoreHtpasswd: add patch to avoid DES encrypted passwords in tests 2023-03-26 04:14:40 +02:00
Stig Palmquist
301d70dae8
perlPackages.Plack: add patch to avoid DES encrypted passwords in tests 2023-03-25 23:20:55 +01:00
Artturi
44fd51cd47
Merge pull request #218503 from Artturin/strictdeps4 2023-03-02 18:45:34 +02:00
Artturin
07064726bf perlPackages.Po4a: enable strictDeps 2023-02-25 21:47:55 +02:00
Artturin
d707691b35 strip-nondeterminism: fix binary functioning on darwin
result/bin/strip-nondeterminism: bad interpreter: /nix/store/mym5b5zbzgny17ixqr8kgwmndc3k4y2r-perl-5.36.0/bin/perl -I/nix/store/mym5b5zbzgny17ixqr8kgwmndc3k4y2r-perl-5.36.0/lib: exec format error
2023-02-14 05:47:43 +02:00
Artturi
56c4f27b18
Merge pull request #215488 from alyssais/strip-nondeterminism-1.13.1
strip-nondeterminism: fix build
2023-02-09 17:21:53 +02:00
Alyssa Ross
92e6b205ed
strip-nondeterminism: 1.13.0 -> 1.13.1
Fixes build.
2023-02-09 10:35:27 +00:00
Andreas Wiese
fd3dc83046 ham: 2020-09-09 -> 2022-10-26 2023-02-06 16:18:49 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
github-actions[bot]
33aa224777
Merge master into staging-next 2023-01-09 18:01:24 +00:00
Artturin
d5febb8d7a strip-nondeterminism: 1.0.0 -> 1.13.0
https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/tags/1.13.0

move shortenPerlShebang to postBuild to fix tests
2023-01-09 18:33:56 +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
Artturin
adc8900df1 treewide: fix some core package structuredAttrs 2022-12-08 21:05:28 +02:00
Sandro
05c703fde0
Merge pull request #186464 from apraga/bioextalign-1.5.1 2022-10-22 00:34:42 +02:00
Alexis Praga
02ff423121 bioextalign: init at 1.5.1
Part of BioPerl Extensions (BioPerl-Ext) distribution, a collection of Bioperl C-compiled extensions. These are no longer maintained but needed for Ensembl-VEP (annotation
for genomics).

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-10-20 23:18:32 +02:00
github-actions[bot]
0ae3aa5345
Merge master into staging-next 2022-10-02 17:45:43 +00:00
Thomas Gerbet
cbc685e754 apacheHttpdPackages.mod_perl: 2.0.11 -> 2.0.12
https://svn.apache.org/repos/asf/perl/modperl/tags/2_0_12/Changes
2022-10-02 12:06:39 +02:00
Arnout Engelen
f2772c7749
perlPackages.Po4a: make devdoc reproducible 2022-09-25 22:29:52 +02:00
Yureka
fec315a167 perlPackages.Po4a: disable tests on musl
Void linux package have investigated the failure and tracked it down to differences in gettext behavior. They decided to disable tests.
https://github.com/void-linux/void-packages/pull/34029#issuecomment-973267880
Alpine packagers have not worried about running the tests until now:
https://git.alpinelinux.org/aports/tree/main/po4a/APKBUILD#n11
2022-09-15 20:18:00 +02:00
Yureka
b8a992605d perlPackages.Po4a: disable TextWrapI18n dependency on musl
This dependency is only used for formatting error message and pulls in a
dependency on glibc because it needs the /usr/bin/locale binary.
2022-09-15 20:18:00 +02:00
Janne Heß
98716fb271
perlPackages: Regenerate metadata (phase 2)
This is the automated phase, fetching stuff from metacpan
2022-08-21 20:26:48 +02:00
Janne Heß
3d3188ba0b
perlPackages: Regenerate metadata (phase 1)
This is required because my parser/generator is very primitive :/
2022-08-21 16:37:15 +02:00
Sandro
fe72f925f5
Merge pull request #176792 from malob/fix-buildPerlPackages-pname 2022-06-23 13:26:03 +02:00
Malo Bourgon
ba40bab6e5 perlPackages: add meta.mainProgram to pacakges with single executable
where the executable's name differs from the packages `name` or `pname`
2022-06-07 14:53:09 -07:00
Malo Bourgon
399732b449 buildPerlPackage: don't mess with pname and phase out use of name
Currently `buildPerlPackage` prefixes the Perl version to the package's
`pname`, which results in `nix run` not being able to work for any
packages build with it out of the box. This commit corrects that and
phases out the ability to set `name` directly, as well as refactors the
code to not require `cleanedAttrs`.
2022-06-07 12:49:23 -07:00
Malo Bourgon
61beb33b83 Revert "perlPackages: add default meta.mainProgram (#176398)"
This reverts commit ff7b216dcf.
2022-06-07 12:20:33 -07:00
Jonas Chevalier
ff7b216dcf
perlPackages: add default meta.mainProgram (#176398)
Because perl packages are prefixed with the perl version, it means that
the `lib.getExe` heuristic will never point to the binary name. So we
provide the meta.mainProgram that overrides that, using the original
pname or parsed name. It's not perfect but should yield better results
already.
2022-06-06 14:35:07 +02:00
Artturin
1d44ac176c treewide: add enableParallelBuilding's to bootstrap packages so hashes stay the same
when enableParallelBuildingByDefault is enabled

verified with
`nix-diff $(nix eval ".#gcc-unwrapped.drvPath") $(nix eval --expr 'with import ./. { config = { enableParallelBuildingByDefault = true; }; }; gcc-unwrapped.drvPath' --impure)`
2022-05-25 16:03:14 +03:00
Jonathan Ringer
c36c0bdba3 perlPackages: restore meta.positoin 2022-02-10 10:50:25 -08:00
Felix Buehler
44c6f10cc6 findimagedupes: make as separate package 2022-02-06 00:11:00 +01:00
Felix Buehler
f328da45ae findimagedupes: init at 2.19.1 2022-01-29 10:52:23 +01:00
Victor Engmark
57b496ea98 misc: Replace tab indentation with spaces
I've tried to be consistent, using four or eight spaces to line up
with existing code.
2021-11-14 16:04:46 +13:00
Stig Palmquist
c4095d0e41 perlPackages.mod_perl2: fix build on perl-5.34.0 2021-08-13 15:16:35 +02:00