Commit Graph

22 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
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
qzylinra
5b6735adf9 flutter: remove unused code 2025-11-05 05:58:57 +00:00
qzylinra
e61e676f4b flutter338: init at 3.38.0-0.2.pre 2025-11-03 07:14:56 +00:00
emaryn
3781a682a9 flutter332: init at 3.32.0-0.3.pre 2025-05-05 15:27:40 +00: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
Tristan Ross
30bb2e0a76 flutterPackages-source.v3_27: fix building 2024-10-25 10:51:22 -07:00
Tristan Ross
9d5adb9e45 flutter326: init at 3.26.0-0.1pre 2024-10-07 11:04:31 -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
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
sternenseemann
8cf33c2dd1 flutter: remove path interpolation
Path interpolation is not supported in Nix 2.3 which nixpkgs maintains
support for.
2024-01-31 20:30:33 +01:00
FlafyDev
5e99fd3304 flutter: Move to a structure more fitting for multiple versions 2024-01-15 01:35:45 +02:00
FlafyDev
b73ceb1ca7 flutter: Make it possible to override operatingSystem internally
Makes it possible to get artifact hashes for other system platforms.

Useful for an update script.
2024-01-15 01:35:45 +02: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
FlafyDev
579e01329e flutter: Rename platform to flutterPlatform
This helps avoid the ambiguity between Flutter platforms like Linux, IOS, and Android and platforms like linux-x64
2024-01-11 01:37:55 +02:00
Maciej Krüger
9e046794a8 flutter: dont fail on missing lockfile 2023-12-21 11:57:23 +01:00
hacker1024
d8b20d93ad flutter: Remove FLUTTER_CACHE_DIR 2023-12-21 11:46:16 +01:00
hacker1024
981831870d flutter: Remove runHooks in fetch-artifacts.nix runCommand 2023-12-21 11:46:16 +01:00
hacker1024
456779edc2 flutter: Move artifact override logic to fetch-artifacts.nix 2023-12-21 11:46:15 +01:00
hacker1024
c969311bc5 flutter: Add artifact hashes for all platforms 2023-12-21 11:46:15 +01:00
hacker1024
44030b7f7d flutter: Fetch artifacts with flutter prefetch 2023-12-21 11:44:14 +01:00