aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanguy2023-08-29 07:22:03 +0000
committerGitHub2023-08-29 07:22:03 +0000
commit40d7e6c9c85d4f1ce2345f6e9d59fc091243124d (patch)
tree2baed6d9722296b2c5d87c256ab12903597b838c
parentb67d2c3a68cf91cac6732a49a6737198717d3350 (diff)
Copy desktop and icon files to Nix output (#7979)
-rw-r--r--flake.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index fc9d8c44..40d0549b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -43,7 +43,6 @@
".ignore"
".github"
".gitignore"
- "logo.svg"
"logo_dark.svg"
"logo_light.svg"
"rust-toolchain.toml"
@@ -51,7 +50,6 @@
"runtime"
"screenshot.png"
"book"
- "contrib"
"docs"
"README.md"
"CHANGELOG.md"
@@ -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;