Commit Graph

20 Commits

Author SHA1 Message Date
hacker1024
4a7fb2c8ea Revert "flutterPackages: refactor"
This reverts commit fe90d5a666.
2026-04-12 20:41:26 +10:00
kyehn
fe90d5a666 flutterPackages: refactor 2026-04-03 08:09:50 +00:00
qzylinra
e61e676f4b flutter338: init at 3.38.0-0.2.pre 2025-11-03 07:14:56 +00:00
qzylinra
02a40a83de flutter: remove rec 2025-08-13 16:26:50 +08:00
qzylinra
1647956667 flutter335: init at 3.35.0-0.3.pre 2025-08-12 09:46:03 +08:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02: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
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
Tristan Ross
cdd31bb726 flutterPackages: support beta releases 2024-06-13 14:47:30 -07:00
Mads Marquart
04ef11c35a flutter: Allow impure reference to the arch binary on macOS
The `arch` binary is not available in `darwin.adv_cmds`, it is provided via. `darwin.system_cmds` instead, but support for this is still experimental.
2024-03-18 17:19:10 +01:00
Yueh-Shun Li
91b3db1309 treewide: fix sourceRoot for fetchgit-based src
According to Nixpkgs manual[1] and NixOS 23.11 Release Note[2], the
`sourceRoot` attribute passed to `stdenv.mkDerivation` should be
specified as `"${src.name}"` or `"${src.name}/subdir"` when `src` is
produced using `fetchgit`-based fetchers.

`sourceRoot = "source"` or `sourceRoot = "source/subdir"` is based on
the assumption that the `name` attribute of these pre-unpacked fetchers
are always `"source"`, which is not the case. Expecting constant `name`
also makes the source FODs prone to irrelevent hashes during version
bumps.

[1]: https://nixos.org/manual/nixpkgs/unstable/#var-stdenv-sourceRoot
[2]: https://nixos.org/manual/nixos/stable/release-notes#sec-release-23.11
2024-03-09 07:53:25 +08:00
Janne Heß
ab168d1f13 flutter: Apply multiple Darwin aarch64 fixes
Taken from: https://github.com/NixOS/nixpkgs/pull/286750#issuecomment-1935147584
2024-02-11 18:28:40 +01:00
FlafyDev
da6757fd9d flutter: Make fetch-artifects.nix independent from the host's platform
This is useful for an update script
2024-01-11 01:37:59 +02:00
hacker1024
23952fb641 buildDartApplication: Remove depsListFile
We get a dependency list with pub2nix now. We can no longer easily distinguish between development dependency dependencies and regular dependency dependencies, but we weren't doing this anyway.
2023-12-26 18:48:12 +02:00
hacker1024
3081228cc4 dart: Use Nix instead of Pub 2023-12-26 17:05:20 +02:00
hacker1024
c524427335 flutter: Set host platform at compilation
The Flutter CLI normally detects the host platform at runtime, but this results in incorrect behaviour in the Nix build environment.
2023-12-21 11:46:14 +01:00
hacker1024
c3237a8d38 flutter: Remove JIT explanation
Turns out it was a patch that was causing the strange behaviour.
2023-12-21 11:44:11 +01:00
hacker1024
5f6d29a70a flutter: Use JIT snapshot for flutter_tools 2023-12-21 11:44:11 +01:00
hacker1024
00a11274d4 flutter: Include patches in flutter_tools snapshot 2023-12-21 11:44:08 +01:00
hacker1024
ee289896a7 flutter: Build flutter_tools with buildDartApplication 2023-12-21 11:44:07 +01:00