Commit Graph

43 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
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
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
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 a08b3a4d19.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
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
Jade Lovelace
a88d4f7dc7 fpc: fix on llvm-strip on macOS 2024-01-17 12:03:36 -08:00
Matthias Bartelmeß
0aaca0a620 fpc: support darwin 2022-08-31 20:47:54 +02: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
Felix Buehler
82cb33a0ae treewide: remove meta.version 2021-07-18 00:07:38 +02:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07: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
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
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Markus Kowalewski
49ee72b744 fpc: add license + homepage 2018-08-20 00:20:07 +02:00
Michael Raskin
a102de361b fpc: 2.6.4 -> 3.0.0 2016-01-01 12:30:17 +03:00
Michael Raskin
2406a89219 Update FPC to 2.6.4 2014-08-31 22:47:55 +04:00
Evgeny Egorochkin
d0b4c8bfaa gktspell: version bump to 2.0.16 because the old one has disappeared 2013-07-14 03:09:34 +03:00
Michael Raskin
f5cc572d8b Updating FPC and Lazarus - works OK with new glib
svn path=/nixpkgs/branches/glib-2.30-take2/; revision=33367
2012-03-23 05:55:13 +00:00
Michael Raskin
21e9c28ce5 Update FPC
svn path=/nixpkgs/trunk/; revision=27301
2011-05-25 08:45:08 +00:00
Michael Raskin
84de039c9e Update FPC
svn path=/nixpkgs/trunk/; revision=24699
2010-11-15 20:26:06 +00:00
Michael Raskin
7da1dc10d9 fpc should not use lib64-located ld-linux.so..
svn path=/nixpkgs/trunk/; revision=24645
2010-11-10 16:38:22 +00:00
Eelco Dolstra
6609710409 * Get rid of many instances of "args: with args;", and other coding
guidelines violations.
* Updated libsamplerate to 0.1.7.

svn path=/nixpkgs/trunk/; revision=22782
2010-07-28 11:55:54 +00:00
Michael Raskin
36f6b1873d Also fix ppc* copying in source fpc builder
svn path=/nixpkgs/trunk/; revision=19462
2010-01-15 10:43:21 +00:00
Michael Raskin
164bb7e1d7 Copy ppc* independently of architecture
svn path=/nixpkgs/trunk/; revision=19461
2010-01-15 10:05:29 +00:00
Michael Raskin
25a0d5e5a0 FPC on x86-64 seems to need fpcmake invocation
svn path=/nixpkgs/trunk/; revision=19459
2010-01-15 09:37:03 +00:00
Michael Raskin
8706bd4591 Update FPC
svn path=/nixpkgs/trunk/; revision=19420
2010-01-14 08:00:50 +00:00
Michael Raskin
9e58814536 Changing CLisp, FPC to new style of adding to hydra
svn path=/nixpkgs/trunk/; revision=16855
2009-08-25 09:00:19 +00:00
Michael Raskin
cf03c27fb7 Update FPC and Lazarus
svn path=/nixpkgs/trunk/; revision=16343
2009-07-14 09:08:05 +00:00
Eelco Dolstra
fcad0b0a5a * Cleaned up a lot of description fields that contained newlines.
Some of these should be longDescriptions, but most others just
  shouldn't contain newlines.  E.g. write

    description = "Bla";

  and not

    description = ''
      Bla
    '';

  This pollutes "nix-env -qa --description" output.

svn path=/nixpkgs/trunk/; revision=14310
2009-03-03 13:27:40 +00:00
Michael Raskin
d6682c9514 Updated FPC. Patch partially by Felix Breuer
svn path=/nixpkgs/trunk/; revision=14261
2009-02-26 15:14:17 +00:00
Michael Raskin
14eeb7fb50 Added Lazarus IDE for Free Pascal Compiler
svn path=/nixpkgs/trunk/; revision=11491
2008-04-08 15:10:09 +00:00
Yury G. Kudryashov
5bca69ac34 Nix-expr style review
Unneded args.something replaced with
args: with args;
line. After this line args is the only place where we can recieve variables from.

Also removed several
buildInputs = [];
lines.

svn path=/nixpkgs/trunk/; revision=10415
2008-01-30 17:20:48 +00:00
Michael Raskin
2a59b66914 Corrected fpc configuration generation after update.
svn path=/nixpkgs/trunk/; revision=9474
2007-10-19 07:59:48 +00:00
Michael Raskin
187c737e3c FPC version bump
svn path=/nixpkgs/trunk/; revision=9405
2007-10-04 19:18:31 +00:00
Michael Raskin
aae4a8db7a Added Free Pascal Compiler.
svn path=/nixpkgs/trunk/; revision=9102
2007-08-11 20:55:40 +00:00