mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Merge pull request #315991 from ExpidusOS/fix/flutter-moreutils
flutter: drop moreutils for more bash
This commit is contained in:
commit
88c0896b01
@ -10,7 +10,6 @@
|
|||||||
, pkg-config
|
, pkg-config
|
||||||
, jq
|
, jq
|
||||||
, yq
|
, yq
|
||||||
, moreutils
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# absolutely no mac support for now
|
# absolutely no mac support for now
|
||||||
@ -73,11 +72,15 @@ let
|
|||||||
extraPackageConfigSetup = ''
|
extraPackageConfigSetup = ''
|
||||||
# https://github.com/flutter/flutter/blob/3.13.8/packages/flutter_tools/lib/src/dart/pub.dart#L755
|
# https://github.com/flutter/flutter/blob/3.13.8/packages/flutter_tools/lib/src/dart/pub.dart#L755
|
||||||
if [ "$('${yq}/bin/yq' '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
|
if [ "$('${yq}/bin/yq' '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
|
||||||
|
export TEMP_PACKAGES=$(mktemp)
|
||||||
'${jq}/bin/jq' '.packages |= . + [{
|
'${jq}/bin/jq' '.packages |= . + [{
|
||||||
name: "flutter_gen",
|
name: "flutter_gen",
|
||||||
rootUri: "flutter_gen",
|
rootUri: "flutter_gen",
|
||||||
languageVersion: "2.12",
|
languageVersion: "2.12",
|
||||||
}]' "$out" | '${moreutils}/bin/sponge' "$out"
|
}]' "$out" > "$TEMP_PACKAGES"
|
||||||
|
cp "$TEMP_PACKAGES" "$out"
|
||||||
|
rm "$TEMP_PACKAGES"
|
||||||
|
unset TEMP_PACKAGES
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user