Skip to content

Commit

Permalink
Copy desktop and icon files to Nix output (#7979)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonink authored Aug 29, 2023
1 parent b67d2c3 commit 40d7e6c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@
".ignore"
".github"
".gitignore"
"logo.svg"
"logo_dark.svg"
"logo_light.svg"
"rust-toolchain.toml"
"rustfmt.toml"
"runtime"
"screenshot.png"
"book"
"contrib"
"docs"
"README.md"
"CHANGELOG.md"
Expand Down Expand Up @@ -142,6 +140,12 @@
helix-unwrapped = craneLib.buildPackage (commonArgs
// {
inherit cargoArtifacts;
postInstall = ''
mkdir -p $out/share/applications $out/share/icons/hicolor/scalable/apps $out/share/icons/hicolor/256x256/apps
cp contrib/Helix.desktop $out/share/applications
cp logo.svg $out/share/icons/hicolor/scalable/apps/helix.svg
cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
'';
});
helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
default = self.packages.${system}.helix;
Expand Down

0 comments on commit 40d7e6c

Please sign in to comment.