1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
Commit graph

120 commits

Author SHA1 Message Date
piegames 68927918d0 treewide: Fix indentation in strings
The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
2024-10-22 21:36:42 +02: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
Randy Eckenrode d5f637590e
tree-wide: enable LTO on Darwin 2024-07-20 03:19:54 -04:00
Randy Eckenrode f9b7f4ec09
tree-wide: use top-level cctools 2024-07-17 22:36:19 -04:00
Weijia Wang 532f5babb8 pony-corral: 0.7.0 -> 0.8.0 2023-09-20 00:37:44 +02:00
Weijia Wang 2ea050d378 ponyc: fix build on darwin 2023-09-18 14:38:25 +02:00
happysalada bcacb9f404 ponyc: update google benchmark dep 2023-05-22 11:22:59 -04:00
happysalada 9589368900 pony-corral: unstable -> 0.7.0 2023-05-22 11:22:59 -04:00
superherointj 1f087c364a ponyc: remove superherointj as maintainer 2023-03-30 11:00:52 -03:00
superherointj 1dd6798097 pony-corral: remove superherointj as maintainer 2023-03-30 11:00:40 -03:00
superherointj 5e0eeea839 pony-corral: 0.6.1 -> unstable-2023-02-11 2023-03-07 20:02:30 -03:00
superherointj 47276cf43b ponyc: 0.50.0 -> 0.54.0
Release: https://github.com/ponylang/ponyc/releases/tag/0.54.0
2023-03-07 20:02:30 -03:00
Weijia Wang 97a2554073 ponyc: fix build 2023-03-06 16:59:58 +02:00
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin 6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
Fabian Affolter 1eb4e74732
pony-corral: add changelog to meta 2022-12-04 23:12:16 +01:00
R. Ryantm 46034e8f35 pony-corral: 0.6.0 -> 0.6.1 2022-12-03 12:30:38 +00:00
R. Ryantm 8d048edb7c pony-corral: 0.5.7 -> 0.6.0 2022-06-25 14:53:56 +00:00
Redvers Davies 3815ca841b ponyc: 0.49.0 -> 0.50.0
Changelog:

0.49.1:

* Ban Unstable Variables

0.50.0:

* Fix crash with exhaustive match on Generics.
* Fix parameter names not being checked in all circumstances.
* Fix compiler crash to HeapToStack compiler pass.
* Strengthen the ordering for some atomic operations.
* Allow override of return types for FFI functions.
* Don't allow FFI calls in default methods or behaviours.
2022-04-30 22:35:03 -04:00
Andreas Stührk 659ce471ae pony-corral: 0.5.4 -> 0.5.7 2022-04-15 15:22:38 -07:00
Andreas Stührk 6f3df13a9b ponyc: 0.44.0 -> 0.49.0 2022-04-15 15:22:38 -07:00
Redvers Davies 7df27785bd pony-corral: 0.5.3 -> 0.5.4
* Update to compile with Pony 0.44.0
2021-10-08 17:11:29 -04:00
Redvers Davies 5f66167ed7 pony-stable: removal
pony-stable was deprecated upstream on May 12 2020
and we replaced by pony-corral.
2021-10-08 17:05:58 -04:00
Redvers Davies 38aaa7d05c ponyc: 0.42.0 -> 0.44.0
* Fix MacOS version mismatch warnings when linking pony programs.
* Fix calculation of "is prime" for numbers > 1321.
* Prevent non-opaque structs from being used as behaviour parameters.
* Update to LLVM 12.0.1.
* Added FileMode.u32.
* Changes to Promises Library.
* Remove zlib from libponyc as a dependency.
* Fix compile-time crash related to Pony-specific Optimizations.
* Update FilePath constructors to allow a non-partial way to create a FilePath.

Updated googlebenchmark dependency to 1.5.4
Updated googletest to 1.10.0

Replaced a fetchurl call with a fetchFromGitHub call.
2021-10-08 17:03:44 -04:00
R. RyanTM d0556404f6 pony-corral: 0.5.1 -> 0.5.3 2021-07-31 18:08:28 +00:00
Red Davies c08ea1ff47 ponyc: 0.41.1 -> 0.42.0
* Don't allow PONYPATH to override standard library (PR #3780)
* Fix bug where Flags.remove could set flags in addition to unsetting them (PR #3777)
* Allow Flags instances to be created with a set bit encoding (PR #3778)
* Fix "iftype" expressions not being usable in lambdas or object literals (PR #3763)
* Fix code generation for variadic FFI functions on arm64 (PR #3768)
2021-07-07 14:42:40 -04:00
Redvers Davies bdb83d6589
pony-corral: 0.5.0 -> 0.5.1 (#127695)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-06-22 10:06:55 +02:00
Red Davies ed22a2a78d ponyc: 0.38.3 -> 0.41.1
* Fix NullablePointer type constraint check being omitted in FFI declarations
* Change to Steed's model of subtyping
* Fix memory corruption with Array.chop and String.chop
* Improve error message for match on structs
* RFC 68: Mandatory FFI declarations
* Change return type of String.add to String iso^
* Improve error message on destructuring of non-tuple types
* Use built-in offset argument to cpointer
* Add IsPrime checker to math package
* Fix compiler crash related to type parameter references
* Fix literal inference through partial function
* Fix partial FFI declarations ignoring partial annotation
* Fix symbol table patching for overriding default methods
* Fix tuple related compiler segfaults
* Create a standalone libponyc on Linux
2021-06-05 14:39:29 -04:00
R. RyanTM 5d9dc70c2f pony-corral: 0.4.1 -> 0.5.0 2021-05-08 17:45:16 -07:00
Sandro 53f66b0837
Merge pull request #111161 from r-ryantm/auto-update/corral
pony-corral: 0.4.0 -> 0.4.1
2021-03-21 21:18:17 +01:00
Andreas Stührk f5ccc3e5fe ponyc: Replace URI literals 2021-02-16 19:57:07 +01:00
Andreas Stührk 8f655e2d50 ponyc: 0.38.1 -> 0.38.3
New upstream release. Also switched from libressl to openssl because it
makes using the net_ssl package easier.
2021-02-16 19:56:21 +01:00
R. RyanTM e187ea5004 pony-corral: 0.4.0 -> 0.4.1 2021-01-29 12:29:17 +00:00
volth bc0d605cf1 treewide: fix double quoted strings in meta.description
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
2021-01-24 19:56:59 +07:00
Ben Siraphob acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Ben Siraphob 3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Ben Siraphob b04fc593e7 treewide: cmake buildInputs to nativeBuildInputs, minor cleanups 2021-01-01 11:52:33 +07:00
Chris Double 02004e4a1f ponyc: remove myself as maintainer 2020-11-09 11:44:51 +00:00
Ben Siraphob 683a87dbeb treewide: remove periods from end of package descriptions 2020-10-17 08:22:31 -07:00
Redvers Davies ef71bc461d pony-corral: init 0.4.0 2020-09-29 01:14:12 +00:00
Redvers Davies 046c6a7038
ponyc: update 0.38.1 (#98598)
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
2020-09-28 17:40:58 -04:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
R. RyanTM 0c6bbd8aa1 ponyc: 0.33.1 -> 0.33.2 2020-02-06 13:19:22 +00:00
Frederik Rietdijk 6d059becd3 Merge gcc-9 into staging (#68029) 2019-12-30 16:38:38 +01:00
R. RyanTM 62ef779f2a ponyc: 0.33.0 -> 0.33.1 (#76368) 2019-12-29 01:19:08 -05:00
Franz Pletz 77b6c3cd06
Merge remote-tracking branch 'origin/master' into gcc-9 2019-12-26 14:17:36 +01:00
Mario Rodas 41380c5042
Merge pull request #73594 from redvers/ponyc-0-33-0
ponyc: 0.32.0 -> 0.33.0
2019-11-29 20:34:54 -05:00
R. RyanTM 25e83902bb pony-stable: 0.2.1 -> 0.2.2 2019-11-28 16:00:20 -08:00
Red Davies 14c49e8a12 ponyc: 0.32.0 -> 0.33.0 2019-11-17 20:27:42 -05:00
Franz Pletz 9c3d1afc03
ponyc: fix build with gcc9 2019-11-03 14:43:39 +01:00