flake.nix: fix flutter :bruh:

This commit is contained in:
2026-04-25 06:15:24 +09:00
parent 9052a067c3
commit eec5c7c107
3 changed files with 15 additions and 6 deletions
Generated
+3 -3
View File
@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1776548001,
"narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=",
"lastModified": 1776877367,
"narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc",
"rev": "0726a0ecb6d4e08f6adced58726b95db924cef57",
"type": "github"
},
"original": {
+11 -2
View File
@@ -17,7 +17,7 @@
devShells = forAllSystems (_: pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
flutter338
flutter341
# https://github.com/NixOS/nixpkgs/issues/341147
pkg-config
@@ -41,7 +41,16 @@
(baseName == "flake.nix" && type == "regular")
(baseName == "module.nix" && type == "regular")
])) ./.;
flutter = pkgs.flutter338;
# Flutter is kinda brokey at the time of writing this, seemingly not all executables
# are marked as executable, and this only affects weird build artifacts like the web output
# which isn't really used within nixpkgs. ¯\_(ツ)_/¯
flutter = pkgs.flutter341.overrideAttrs (prev: {
postInstall = prev.postInstall or "" + ''
chmod +x "$out"/bin/cache/artifacts/engine/linux-x64/font-subset
'';
});
in {
default = self.packages.${system}.linux;
linux = pkgs.callPackage ./nix/package.nix {
+1 -1
View File
@@ -9,7 +9,7 @@
isDebug ? false,
}:
flutter.buildFlutterApplication {
(flutter.buildFlutterApplication.override { inherit flutter; }) {
pname = let
variant = if isWeb && isWasm then "wasm"
else if isWeb then "web"