Commit Graph

90 Commits

Author SHA1 Message Date
Daylin Morgan
9338d9742e nim: preserve dist alongside compiler source 2024-01-10 07:58:43 +00:00
Sergey Yakovlev
c70be9c561 nim: update nim1 v1.6.14 -> v1.6.18 and nim2 v2.0.0 -> v2.0.2 2023-12-23 08:12:45 +00:00
Sophie Tauchert
3b40e1bd33 buildNimPackage: allow overriding nim package args
Without this, it's impossible to override the lockFile as the default
overrideAttrs is applied after the composition in buildNimPackage has
read the lock file and generated the nim flags from it.
2023-12-10 09:10:02 +00:00
Emery Hemingway
8672b5cabd Remove nimPackages and nim2Packages 2023-11-28 16:48:10 +02:00
Emery Hemingway
35f108c7d7 buildNimPackage: load lockfiles and overrides 2023-11-28 16:48:10 +02:00
Emery Hemingway
39d4eace91 nimPackages.buildNimPackage: move to top-level 2023-11-28 16:48:10 +02:00
Emery Hemingway
9e00db7b79 nim: invert nim1 to be a definition of nim2 2023-11-28 16:48:10 +02:00
Jade Lovelace
f902cb4989 nim: fix evaluation
nimble-unwrapped was breaking ofborg. :(

By the looks of it nimble-unwrapped was removed but the references in
all-packages.nix and in the callPackage invocation were not removed. So
remove them.

Proximal cause: https://github.com/NixOS/nixpkgs/pull/258093

https://gist.github.com/GrahamcOfBorg/7a33204709bf948180670867a9e22e02
2023-10-02 08:16:30 +00:00
Emery Hemingway
bb91de3827 nim: do not dlload openssl 2023-10-02 08:20:14 +01:00
Emery Hemingway
7901ce6aef Remove Nimble from Nim wrapper 2023-10-02 08:17:54 +01:00
Emery Hemingway
380a34d03c nim2: init 2.0.0 2023-08-21 07:32:46 +01:00
Emery Hemingway
a3cfb6589c compilers/nim: do not modify hardening flags
Hardening can set -O𝑛 flags that contradict $CC flags added by
the Nim compiler but this should be resolved later in the wrapper
script.

Fix #243759
2023-08-02 11:20:26 +01:00
Marcus Ramberg
755b664031 nim: 1.6.12 -> 1.6.14 2023-07-01 21:31:28 +02:00
Emery Hemingway
eafc69b131 nim: extra module mangling to prevent runtime dependence
Fix #207795
2023-06-28 09:45:16 +01:00
Emery Hemingway
d925734d3b Nim: add meta.mainProgram 2023-05-15 17:28:15 +01:00
Benjamin Lee
2ba48cc8de nim: propagate Security framework to all nim packages on darwin
Many nim packages regressed on darwin after 31254120db, which upgrade nim to 1.6.12. The cause of the breakage is that the nim standard library was changed to link against the Security framework when using the system rng on darwin. Notably not *all* nim packages were broken by this, since packages that don't use this part of the standard library don't need the framework to build.

This commit adds the Security framework to the depsTargetTargetPropagated for the compiler wrapper, since the standard library isn't fully functional without it.
2023-04-14 16:04:31 +00:00
Benjamin Lee
6cf5d549fe nimble-unwrapped: Add missing Security framework buildInput 2023-04-03 18:50:57 +00:00
toonn
855b6e2ad0
nim-unwrapped: Add missing Security framework buildInput 2023-03-27 13:28:46 +02:00
Emery Hemingway
31254120db nim: 1.6.10 -> 1.6.12 2023-03-19 18:35:05 -05:00
Domen Kožar
fa0775101f nim: make gdb optional to fix aarch64-darwin build 2023-01-30 11:39:00 +00:00
Weijia Wang
43cc2746c6 nim: fix build on aarch64-darwin 2022-12-02 22:23:01 -06:00
Emery Hemingway
88c9a92624 Nim: resurrect bootstrap compiler
Building the bootstrap and the unwrapped compiler in seperate
derivations is still worthwhile because if we patch the compiler
only need to rebuild the second of the two.
2022-11-28 12:28:25 -06:00
Stephen Hassard
6c492a6936 nim: 1.6.8 -> 1.6.10 2022-11-28 12:28:25 -06:00
Weijia Wang
afd4752a38 nim: fix build on aarch64-darwin 2022-10-23 20:43:41 -05:00
Emery Hemingway
1471e0c739 nim: unescape "\ " before splitting NIX_LDFLAGS
Ref #190126
2022-10-08 11:28:39 -05:00
Emery Hemingway
c1184a3f8c nim: 1.6.6 -> 1.6.8
Other changes:
- use bootstrap sources bundled with release
- copy tools to $out
- build dochack.js
2022-10-08 11:28:39 -05:00
bandthedoge
1c6676511e nim-unwrapped: fix library path 2022-09-01 14:01:57 -05:00
mat ess
4fc665856d nim: 1.6.4 -> 1.6.6 2022-05-09 13:34:07 -05:00
Malo Bourgon
d8da6a153b nimble-unwrapped: add meta 2022-05-05 17:27:29 -07:00
Felix Buehler
7c71e8438c nim: switch to fetchFromGitHub 2022-03-16 00:45:56 +01:00
Stephen Hassard
67574bd994 nim: 1.6.2 -> 1.6.4 2022-02-22 09:14:28 -06:00
Frederik Rietdijk
c8aed5f960 nim: 1.6.0 -> 1.6.2 2021-12-18 15:06:19 +00:00
Emery Hemingway
30be6c22c5 nim: 1.4.8 -> 1.6.0 2021-10-19 13:07:57 +02:00
Emery Hemingway
3cfbadec99 nim: patch compiler to emit native file/line info format 2021-10-19 12:50:30 +02:00
Andreas Rammhold
6d0a4f9b8f nim: use newer bootstrap repository for aarch64-darwin support
The old "csources" repo has been archived a while ago and a newer
csources_v1 repo has been published. The main advantage is that we now
have support for newer platorms (such as Apple M1's) and newer nim
versions in the bootstrap.

The new repository doesn't contain release tags thus I pinned it to the
latest revision that has been published.
2021-10-18 16:19:48 +02:00
Guillaume Girol
4bc83aaffa
Merge pull request #136489 from ehmry/nimPackages
nimpackages / buildNimPackage
2021-09-22 18:35:38 +00:00
Ryan Burns
b8779dbffe nim: fix power arch predicates
isPowerPC is only true on 32 bit machines;
to check the family we should use isPower here

Otherwise, e.g. `pkgsCross.powernv.buildPackages.nim` fails to eval with
`error: evaluation aborted with the following error message: 'no Nim CPU support known for powerpc64le-unknown-linux-gnu'`
2021-09-22 10:30:09 +02:00
Emery Hemingway
45398d7b54 Initial nimPackages utilities
Add a nimPackages attrset with "buildNimPackage" and "fetchNimble".
2021-09-05 11:20:00 +02:00
Emery Hemingway
84a4536e58 nim: 1.4.6 -> 1.4.8
https://nim-lang.org/blog/2021/05/25/version-148-released.html

Set a default $CC and $CXX in the Nim wrapper script, this makes
the wrapper usuable outside of build environments.
2021-06-15 10:55:34 +02:00
Emery Hemingway
c576998594 nim: 1.4.4 -> 1.4.6 2021-05-02 10:52:26 +02:00
Emery Hemingway
56592ea293 nim: cross-compilation fixes
* Import with callPackages
* Use buildPackages for building a cross-compiler
* Patch-out potential conflicts in nim.cfg
* Generate a configuration with toolchain detection
* Build with strictDeps enabled
2021-03-26 11:36:38 +01:00
Mario Rodas
6ca5b8005f nim: 1.4.2 -> 1.4.4 2021-02-27 11:27:24 +01:00
Kamil Chmielewski
bc9c9cd6da nim: expose testament test runner
https://nim-lang.org/docs/testament.html
2020-12-10 14:49:01 +01:00
Kamil Chmielewski
ba70e46edd nim: 1.4.0 -> 1.4.2 2020-12-08 00:45:34 +01:00
Emery Hemingway
bb7b1b59c8 nim: include nimble utility with wrapped compiler 2020-11-26 20:06:20 +01:00
Emery Hemingway
138a90ebc3 nim: 1.2.6 -> 1.4.0
Build Nim with a second fixed-input hash for 1.4.0.
The Nimble utility is no longer bundled with nim-unwrapped.
2020-11-26 20:06:20 +01:00
Emery Hemingway
bce139db2b Revert "nim: 1.2.6 -> 1.4.0"
Source tarball has changed.

This reverts commit bb99a0d9a8.
2020-10-17 14:58:58 +02:00
Emery Hemingway
bb99a0d9a8 nim: 1.2.6 -> 1.4.0 2020-10-16 16:07:50 +02:00
Emery Hemingway
5885021135 nim: remove stdlib indirection in wrapper
Fix #97601
2020-09-11 14:21:32 +02:00
Emery Hemingway
dc09e3edfc nim: wrap compiler for cross-compilation support 2020-09-07 16:16:55 +02:00