Copy desktop and icon files to Nix output (#7979)
commit40d7e6c9c85d4f1ce2345f6e9d59fc091243124d
authorTanguy <Dragonink@users.noreply.github.com>
dateTue 29 Aug 2023, 09:22 (3 years ago)
parentb67d2c3
flake.nix+6−2
@@ -43,7 +43,6 @@
4343 ".ignore"
4444 ".github"
4545 ".gitignore"
46− "logo.svg"
4746 "logo_dark.svg"
4847 "logo_light.svg"
4948 "rust-toolchain.toml"
@@ -51,7 +50,6 @@
5150 "runtime"
5251 "screenshot.png"
5352 "book"
54− "contrib"
5553 "docs"
5654 "README.md"
5755 "CHANGELOG.md"
@@ -142,6 +140,12 @@
142140 helix-unwrapped = craneLib.buildPackage (commonArgs
143141 // {
144142 inherit cargoArtifacts;
143+ postInstall = ''
144+ mkdir -p $out/share/applications $out/share/icons/hicolor/scalable/apps $out/share/icons/hicolor/256x256/apps
145+ cp contrib/Helix.desktop $out/share/applications
146+ cp logo.svg $out/share/icons/hicolor/scalable/apps/helix.svg
147+ cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
148+ '';
145149 });
146150 helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
147151 default = self.packages.${system}.helix;