Conversation
dec03b6 to
631bc0f
Compare
631bc0f to
2ac62ea
Compare
pkgs/applications/networking/instant-messengers/fluffychat/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/fluffychat/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/fluffychat/default.nix
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
What is this? Why not just use buildPhase with preHooks? Looks to me a lot easier overhaul.
There was a problem hiding this comment.
How do you mean with prehooks? The idea is the user is able to overwrite buildPhase but can optionally call the original one somewhere in the middle of it. What would be the best way to accomplish this?
There was a problem hiding this comment.
If you want to run something before you would put it into preBuild and for after into postBuild. Basically this would already achieve this:
| preConfigurePhases = [ "flutterConfigurePhase" ]; | |
| # avoid cmake phase | |
| configurePhase = "true"; | |
| flutterBuildPhase = '' | |
| # for some reason fluffychat build breaks without this - seems file gets overriden by some tool | |
| mv pubspec-backup pubspec.yaml | |
| mkdir -p build/flutter_assets/fonts | |
| flutter packages get --offline -v | |
| flutter build linux --release -v | |
| ''; | |
| buildPhase = '' | |
| runHook preBuild | |
| runHook flutterBuildPhase | |
| runHook postBuild | |
| ''; | |
| preConfigurePhases = [ "flutterConfigurePhase" ]; | |
| # avoid cmake phase | |
| configurePhase = "true"; | |
| buildPhase = '' | |
| runHook preBuild | |
| # for some reason fluffychat build breaks without this - seems file gets overriden by some tool | |
| mv pubspec-backup pubspec.yaml | |
| mkdir -p build/flutter_assets/fonts | |
| flutter packages get --offline -v | |
| flutter build linux --release -v | |
| runHook postBuild | |
| ''; |
There was a problem hiding this comment.
Hrm I'll leave the phases as-is for now. It was initially added to package appflowy, but that is already packaged as bin derivation.
There was a problem hiding this comment.
| configurePhase = "true"; | |
| dontConfigure = true; |
There was a problem hiding this comment.
The user might want to overwrite configurePhase and then it would be skipped. Also using preConfigurePhases not sure if this will work.
There was a problem hiding this comment.
What happens if we just leave configurePhase and don't do anything to it? Maybe we just want to disable cmake and ninja?
f469250 to
c3fce32
Compare
Otherwise it tries to run some other commands, this prevents that Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Previously this was pulling from $built, which got moved to $out/app, so the glob didn't do anything. Now uses find on $out/app
452ad4e to
147a514
Compare
Motivation for this change
Packaging some more things for flutter to check and smooth out the raw edges of mkFlutterApp
If yov've got any comments regarding #147107 this is the place to comment
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes