106 Commits

Author SHA1 Message Date
Stefan Frijters 89e5728092 lazarus: move NIX_LDFLAGS into env for structuredAttrs 2026-02-07 14:16:00 +01:00
quantenzitrone 77837f424c various: rename references from libXi to libxi
this shouldn't create any rebuilds
2026-02-06 00:25:56 +01:00
quantenzitrone f67b5966bb various: rename references from libXext to libxext
this shouldn't create any rebuilds
2026-02-06 00:25:36 +01:00
quantenzitrone 55280fa564 various: rename references from libX11 to libx11
this shouldn't create any rebuilds
2026-02-06 00:24:34 +01:00
bernborgess eeb1bdb73f lazarus: 4.0-0 -> 4.4-0 2026-01-30 15:52:00 -03: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
David McFarland d613d20a13 treewide: fix nix-env eval in cross 2025-12-04 19:44:19 -04:00
Luna Nova e7fbed853b treewide: remove usages of obsolete pie hardening flag 2025-10-09 10:13:03 -07:00
Emily e71ade9ba7 fpc: mark broken with Clang on x86‐64
This is only really relevant to `x86_64-darwin`, and it’s not worth
keeping an unmaintained LLVM around for given the limited remaining
lifespan of the platform.
2025-09-14 19:03:24 +01:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Nikolay Korotkiy 4706af6e47 lazarus: 3.6-0 -> 4.0-0 2025-05-17 20:14:29 +04:00
Ihar Hrachyshka 5ca364e30a fpc: add apple-sdk SDKROOT to default library paths
This fixes darwin build for xidel, among other things.

Note: there are some impurities in the package where xcode and other
paths may be injected into build environment. These are left out of
scope for this patch, to be dealt by other interested parties.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 23:51:45 -04:00
FliegendeWurst be528426dd fpc: disable PIE hardening
Fails with the usual error:

ld: fpmake.o: relocation R_X86_64_32S against `.bss.n_u_$p$fpmake_$$_p' can not be used when making a PIE object; recompile with -fPIE
ld: failed to set dynamic section sizes: bad value

The build system is hard to decipher, so just disable PIE for now.
2025-03-30 00:20:26 +01:00
Wolfgang Walther 0fb0aa526a various: remove useless "source stdenv/setup"
Those are run inside buildCommand, which is evaled inside stdenv/setup -
so no reason to source it again.
2024-12-29 18:36:48 +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
OPNA2608 c39894d822 lazarus-qt6: init at 3.6-0 2024-12-25 22:54:06 +01:00
OPNA2608 542c24caaf qt6Packages.libqtpas: init at 3.6-0 2024-12-25 22:49:33 +01:00
OPNA2608 d230e69db1 libsForQt5.libqtpas: Rename from libqt5pas
In preparation for a qt6Packages.libqtpas.
2024-12-25 22:45:30 +01:00
OPNA2608 62738972ed libqt5pas: Don't rely on mkDerivation from libsForQt5 anymore
Qt5 is not the only supported Qt version, and Qt6 dropped the scope-specific mkDerivation.
2024-12-25 21:52:01 +01:00
OPNA2608 b02b8abe02 libqt5pas,lazarus: 3.2-0 -> 3.6-0 2024-12-25 21:40:43 +01:00
Silvan Mosberger 4f0dadbf38 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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Reno Dakota ce40ce79f1 fpc: fix darwin build 2024-11-26 00:26:49 -08:00
Reno Dakota 52bf1163fa treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00: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
Michael 2f2851dcdd lazarus 2.2.2 -> 3.2 2024-03-07 13:17:18 -06:00
Jade Lovelace a88d4f7dc7 fpc: fix on llvm-strip on macOS 2024-01-17 12:03:36 -08: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 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
Matthias Bartelmeß 0aaca0a620 fpc: support darwin 2022-08-31 20:47:54 +02:00
7c6f434c 30eaeb044e Merge pull request #178134 from qsimpleq/lazarus_2.2.2-0
lazarus: 2.0.12 -> 2.2.2-0
2022-06-18 12:40:54 +00:00
Kirill qsimpleq Babikhin fd52adc9a2 lazarus: 2.0.12 -> 2.2.2-0 2022-06-18 15:58:03 +05:00
Kirill qsimpleq Babikhin d7a3b96440 fpc: 3.2.0 -> 3.2.2 2022-06-18 15:55:05 +05:00
Gaelan Steele da2f2d49a6 fpc: fix build on aarch64
glibc 2.34 broke it; apply an unreleased patch from upstream
2022-05-12 19:34:43 +00:00
FliegendeWurst 32e714161b lazarus-qt: disable parallel build 2022-01-29 11:40:04 +01:00
Felix Buehler ed7bf9452c treewide: remove *.upstream files from updateWalker 2022-01-26 21:46:07 +01:00
Felix Buehler 82cb33a0ae treewide: remove meta.version 2021-07-18 00:07:38 +02:00
R. RyanTM 7c2dcbc467 lazarus: 2.0.10-2 -> 2.0.12 2021-02-26 11:45:51 +00:00
Ben Siraphob acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Ben Siraphob db74029e3e treewide: remove package names from prefix of descriptions 2020-10-27 09:15:07 -07:00
Peter Hoeg c084efb36f lazarus-qt5: init at 2.0.10
Includes the following changes:

1. lazarus: 2.0.8 -> 2.0.10 (built with gtk2)
2. lots of cleanups
3. minor libqt5pas cleanups
2020-10-06 11:49:39 +08:00
Nikolay Korotkiy 21c1a3759b libqt5pas: init at 2.0.8 2020-09-08 10:53:26 +03:00
Timo Kaufmann 6ff5c406eb fpc: add support for aarch64-linux
Supported since fpc 3.2.0.
2020-09-03 14:52:26 +02:00
Timo Kaufmann f928b91f34 fpc: 3.0.4 -> 3.2.0
There was no 3.1 for some reason. The old sed-based path patching was
broken and resulted in syntax errors since it was a bit over-eager.
Instead of fixing it, I decided to replace it with a patch file which is
easier to inspect and will fail in a more obvious way next time.

The patch is now applied unconditionally, since it actually applies to
all linux platforms. The changes are localized to linux-specific code,
so it does not hurt to apply it on non-linux platforms as well.

Hedgewars needs a small fix to work with the new version. Done in the
same commit to avoid a broken commit.
2020-09-03 14:52:18 +02:00
Jan Tojnar ffe57c4e3e lazarus: Fix eval
Unclean merge between d201270d0f and 1ac5398589.
2020-05-27 18:35:04 +02:00
Michael Raskin d201270d0f lazarus: fix linking by the IDE; using the results of an investigation by @deliciouslytyped 2020-05-25 02:21:51 +02:00
R. RyanTM 3cb887902a lazarus: 2.0.6 -> 2.0.8 2020-05-05 19:15:24 +00:00
Michael Reilly 84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Nathan Hawkins af38a72dc4 fpc: 3.0.0 -> 3.0.4; lazarus: 1.8.4 -> 2.0.6 2020-04-01 20:39:28 +00:00
Merijn Broeren 133103d709 treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01: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