flutter.mkFlutterApp: fix installing .desktop

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
main
Maciej Krüger 2 years ago
parent 141644ff03
commit 0bd82b7767
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
  1. 3
      pkgs/build-support/flutter/default.nix

@ -254,9 +254,10 @@ let
mkdir -p $out/bin
mv $built $out/app
for f in $built/data/flutter_assets/assets/*.desktop; do
for f in $(find $out/app -iname "*.desktop" -type f); do
install -D $f $out/share/applications/$(basename $f)
done
for f in $(find $out/app -maxdepth 1 -type f); do
ln -s $f $out/bin/$(basename $f)
done

Loading…
Cancel
Save