Commit Graph

83 Commits

Author SHA1 Message Date
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
worldofpeace
b1bc0645ea gdk-pixbuf: rename from gdk_pixbuf 2019-07-22 18:50:57 -04:00
Benjamin Hipple
444b26e3b5 lazarus: format expression with more modern style
This package was written more than a decade ago; this commit updates the layout
to be more conventional without making any meaningful changes. Note that because
it now has a version attribute in the derivation this does change the hash.
2019-02-13 23:39:19 -05:00
Lengyel Balazs
f4a53ff3bc treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
c0bw3b
0f868d8116 Treewide: use HTTPS on SourceForge 2018-12-02 15:33:08 +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
R. RyanTM
9275896d7d lazarus: 1.8.2 -> 1.8.4
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/lazarus/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4/bin/lazarus-ide had a zero exit code or showed the expected version
- /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4/bin/lazbuild passed the binary check.
- /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4/bin/lazres passed the binary check.
- Warning: no invocation of /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4/bin/lrstolfm had a zero exit code or showed the expected version
- /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4/bin/updatepofiles passed the binary check.
- Warning: no invocation of /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4/bin/.startlazarus-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4/bin/startlazarus had a zero exit code or showed the expected version
- 3 of 7 passed binary check by having a zero exit code.
- 1 of 7 passed binary check by having the new version present in output.
- found 1.8.4 with grep in /nix/store/4z8g46k0hjnys0cpbx5r41z55fb77495-lazarus-1.8.4
- directory tree listing: https://gist.github.com/5e07a7e98c27e3576c3b8ca055b8df48
- du listing: https://gist.github.com/001bda09b55e3f3c8178f9ffd4b3ee95
2018-05-26 14:06:59 -07:00
Ryan Mulligan
8742011824 lazarus: 1.8.0 -> 1.8.2
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 1.8.2 with grep in /nix/store/z3r30kr064x672zqnrs1pwzshlvgnv9n-lazarus-1.8.2
- found 1.8.2 in filename of file in /nix/store/z3r30kr064x672zqnrs1pwzshlvgnv9n-lazarus-1.8.2
- directory tree listing: https://gist.github.com/895d2d01174298ff36a30bc7387286a2
2018-03-20 09:49:12 -07:00
zimbatm
6371439e0b lazarus: 1.6.0-0 -> 1.8.0 2017-12-11 10:33:39 +00:00
Kirill Boltaev
bccd75094f treewide: explicitly specify gtk and related package versions 2016-09-12 18:26:06 +03:00
J Phani Mahesh
cb4a888206 fpc: switch sf downloads to mirror://
This allows fallback to all configured mirrors for sourceforge
to download, instead of relying on just downloads.sourceforge.net
2016-08-20 19:14:30 +05:30
Joachim Fasting
ba0f9cfa49
Revert "Merge pull request #16980 from phanimahesh/sf-use-mirrors"
This reverts commit 217594fd1d, reversing
changes made to 8e8a89d8a8.

Turns out it wasn't ready afterall ...
2016-08-20 15:14:23 +02:00
J Phani Mahesh
879a94436f fpc: switch sf downloads to mirror:// 2016-08-20 17:27:57 +05:30
Nikolay Amiantov
87ebab128a replace ${stdenv.cc.cc}/lib occurences 2016-05-01 00:13:23 +03:00
Michael Raskin
a0912fd3b4 lazarus: 1.4.4 -> 1.6 2016-02-20 11:36:37 +01:00
Michael Raskin
5446554002 lazarus: 1.2.6 -> 1.4.4 2016-01-01 12:30:17 +03:00
Michael Raskin
a102de361b fpc: 2.6.4 -> 3.0.0 2016-01-01 12:30:17 +03:00
Michael Raskin
236029ef83 Fix Lazarus build (somewhat) by referring to gcc libgcc_s.so by currently-woring attribute path 2015-02-08 01:09:09 +03:00
John Wiegley
28b6fb61e6 Change occurrences of gcc to the more general cc
This is done for the sake of Yosemite, which does not have gcc, and yet
this change is also compatible with Linux.
2014-12-26 11:06:21 -06:00
Michael Raskin
689f1af563 Refactor Lazarus build a bit and build it with all the components by default 2014-11-07 11:41:12 +03:00
Michael Raskin
e4c64a6805 Update Lazarus 2014-11-04 00:37:42 +03:00
Michael Raskin
24b4105ed7 Remove fpc 2.4.0: lazarus doesn't need it and it doesn't like .2.6.0 as bootstrap compiler 2014-09-01 08:56:37 +04:00
Michael Raskin
2406a89219 Update FPC to 2.6.4 2014-08-31 22:47:55 +04:00