Commit Graph

280 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
Weijia Wang
7fcffb1bc5
elvis-erlang: 3.1.0 -> 3.2.5 (#326803) 2024-09-12 22:25:52 +02:00
R. Ryantm
d106812bbf erlfmt: 1.3.0 -> 1.5.0 2024-09-04 00:28:11 +00:00
Sav Tripodi
407c485571
elixir: 1.16 -> 1.17 update default 2024-08-31 17:17:13 +09:30
arathunku
6729e0336d
elixir-ls: 0.21.3 -> 0.23.0
- [v0.23.0 release](https://github.com/elixir-lsp/elixir-ls/releases/tag/v0.23.0)
- [v0.22.0 release](https://github.com/elixir-lsp/elixir-ls/releases/tag/v0.22.0)
2024-08-04 07:48:35 +02:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Mathew Polzin
b29993a04a beamPackages.mixRelease: format with nixfmt-rfc-style 2024-07-24 23:17:52 -05:00
Mathew Polzin
427bcae622 beamPackages.mixRelease: support named releases 2024-07-24 23:11:45 -05:00
R. Ryantm
efc044691c elvis-erlang: 3.1.0 -> 3.2.5 2024-07-13 12:16:58 +00:00
chiroptical
d993580d1c ex_doc: 0.32.1 -> 0.34.1 2024-06-20 19:23:13 -04:00
Adam Stephens
ceecacc612
beamPackages.hex: 2.0.6 -> 2.1.1
https://github.com/hexpm/hex/releases/tag/v2.1.0
https://github.com/hexpm/hex/releases/tag/v2.1.1
2024-06-17 13:57:10 -04:00
Wout De Puysseleir
88abc8f5a7
elixir_1_17: init at 1.17.0 2024-06-13 12:24:42 +03:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Weijia Wang
bcac1decd0
Merge pull request #315566 from r-ryantm/auto-update/elvis-erlang
elvis-erlang: 3.0.1 -> 3.1.0
2024-06-04 22:16:53 +02:00
isabel
63aceac766 treewide: remove unused occurence of fetchFromGitHub argument 2024-05-30 05:56:07 +00:00
R. Ryantm
30ebc6ab7c elvis-erlang: 3.0.1 -> 3.1.0 2024-05-29 09:04:22 +00:00
Elliott Clark
4da6c3521a elixir-ls: 0.21.1 -> 0.21.3
Summary:
0.21.3 contains a potential fix for memory leaks. This is the update.

Test Plan:
`nix-build . -A elixir-ls`
`nixpkgs-review wip`
2024-05-22 12:15:10 -05:00
arathunku
f1d350753e
elixir-ls: 0.20.0 -> 0.21.1 2024-05-17 07:04:24 +02:00
Yt
30f208309c
Merge pull request #306772 from code-supply/fetch-hex-pname-id
fetchHex: remove pname prefix
2024-05-03 11:17:37 +00:00
Andrew Bruce
4531cf76e4 fetchHex: remove pname prefix
Projects like mix2nix and my own project, deps_nix, are collecting a
growing number of workarounds for packages that depend on the working
directory of a build to have the same name as the package.

See for example: da2ebc2c63

This change makes the pname of Hex packages equal the package name, so
that such workarounds aren't necessary.
2024-04-25 13:44:35 +01:00
R. Ryantm
14d0b8e5eb erlang-ls: 0.51.0 -> 0.52.0 2024-04-25 11:52:55 +00:00
chiroptical
6e6181d1d8 erlang_27: rc2 -> rc3 2024-04-18 13:06:29 -04:00
R. Ryantm
2413c03a89 ex_doc: 0.32.0 -> 0.32.1 2024-04-16 01:32:59 +00:00
R. Ryantm
05f88d6332 ex_doc: 0.31.2 -> 0.32.0 2024-04-11 05:14:48 +00:00
Weijia Wang
8aedeffd13
Merge pull request #279591 from MarkoMin/update/erlang-ls
erlang-ls: 0.48.0 -> 0.51.0
2024-04-06 14:01:46 +02:00
Barry Moore
41e52bde8b ex_doc: init at 0.31.2 2024-04-02 13:48:05 -04:00
Marko Mindek
a44fef7dee erlang-ls: 0.48.0 -> 0.51.0 2024-04-02 17:09:32 +02:00
happysalada
04359d4f30 elixir: 1.15 -> 1.16 2024-03-27 17:31:28 -04:00
Adam Stephens
3cc34c0d9c
elixir-ls: fix building with elixir_1_16 2024-03-27 10:51:08 -04:00
Joshua Trees
cebca8587a elixir-ls: 0.19.0 -> 0.20.0 2024-03-26 11:23:12 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Philip Munksgaard
bea4776f99
elixir-ls: 0.18.1 -> 0.19.0 2024-01-22 10:19:19 +01:00
Weijia Wang
3ede90c4bd
Merge pull request #274278 from r-ryantm/auto-update/erlfmt
erlfmt: 1.2.0 -> 1.3.0
2024-01-03 16:36:32 +01:00
Philip Munksgaard
c6edf4fe49
elixir-ls: 1.17.10 -> 1.18.1
elixir-ls 1.18.0 changed the name of the `debugger.sh` (which we call
`elixir-debugger`) script to `debug_adapter.sh`, so the new name in this package
is `elixir-debug-adapter`.
2023-12-28 15:29:21 +01:00
Shane Sveller
45f7246016
elixir_1_16: init at 1.16.0
https://elixir-lang.org/blog/2023/12/22/elixir-v1-16-0-released/
https://github.com/elixir-lang/elixir/blob/v1.16.0/CHANGELOG.md#changelog-for-elixir-v116
2023-12-22 11:07:43 -06:00
R. Ryantm
217b470a60 erlfmt: 1.2.0 -> 1.3.0 2023-12-14 19:03:01 +00:00
Mathew Polzin
2d5053fca3 beamPackages.mixRelease: Make determinism toggleable 2023-12-08 07:23:35 +00:00
c4710n
c865c66216 beamPackages.buildMix: remove erlang references from output 2023-12-08 07:23:35 +00:00
c4710n
e924d0f542 beamPackages.mixRelease: remove erlang references from output 2023-12-08 07:23:35 +00:00
Matt Polzin
4600a9d607 beamPackages.mixRelease: deterministic erlang builds 2023-12-08 07:23:35 +00:00
Joshua Trees
d5eddab5b5 elixir-ls: 0.17.3 -> 0.17.10 2023-11-20 13:54:13 +00:00
Zeke Dou
993c8f162d
mixRelease: improve the implementation (#266397)
* mixRelease: format code by nixpkgs-format

* mixRelease: investigate why erlang is referenced in resulting derivation

* mixRelease: organize nativeBuildInputs and buildInputs

It:
+ organizes `nativeBuildInputs` in a structured way.
+ moves `builtins.attrValues mixNixDeps` to `nativeBuildInputs`, because it's only used in compile-time

* mixRelease: remove current attempt for removing erlang references in resulting derivation

As said in the comment about "remove erlang references in resulting
derivation", for now, we don't have a robust method to do that.

Although these removed code did some work, they did not achieve the
final goal - remove erlang references in resulting derivation.
Therefore, it is better to remove them and provide future implementation
with a clean foundation.

> If you want to find these old codes, you can also retrieve them from
> the git history.

* mixRelease: remove all files for Microsoft Windows

* mixRelease: add new option - `removeCookie`

* mixRelease: polish comments

+ Capitalize the sentences.
+ Add punctuation marks.
+ Format a little code.

* mixRelease: wrap programs in $out/bin with their runtime deps

* mixRelease: commit what happysalada suggests

---------

Co-authored-by: c4710n <c4710n@users.noreply.github.com>
2023-11-11 12:15:07 +00:00
outfoxxed
9b1c922663
fix: only substitute ERTS for escript builds in rebar3Relx (#266215)
* fix: only substitute ERTS for escript builds in rebar3Relx

Previously beamPackages.rebar3Relx substituted references to erlang
for all builds, which only works for escript builds.

Fixes #261354

* doc: add comment mentioning fixed issue
2023-11-09 16:39:30 +00:00
Alexandru Scvortov
cbbe57bc52 elixir: make 1.15 default and pin existing pkgs to 1.14 2023-11-02 20:16:00 +00:00
Joshua Trees
ab7b4c43eb elixir-ls: 0.17.2 -> 0.17.3 2023-10-25 10:00:07 +00:00
Joshua Trees
cf5a26fb2a elixir-ls: 0.17.1 -> 0.17.2 2023-10-24 10:08:07 +00:00
Joshua Trees
7384a06fc9 elixir-ls: 0.16.0 -> 0.17.1 2023-10-18 09:48:26 +00:00
Justin Wood
d5df7fc87f elixir-ls: Include the debugger 2023-10-03 11:52:41 +00:00
Adam Stephens
fcbfef1e43 buildMix: copy package.json to support phoenix builds 2023-09-14 08:24:16 +00:00