mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
Copy desktop and icon files to Nix output (#7979)
This commit is contained in:
parent
b67d2c3a68
commit
40d7e6c9c8
@ -43,7 +43,6 @@
|
|||||||
".ignore"
|
".ignore"
|
||||||
".github"
|
".github"
|
||||||
".gitignore"
|
".gitignore"
|
||||||
"logo.svg"
|
|
||||||
"logo_dark.svg"
|
"logo_dark.svg"
|
||||||
"logo_light.svg"
|
"logo_light.svg"
|
||||||
"rust-toolchain.toml"
|
"rust-toolchain.toml"
|
||||||
@ -51,7 +50,6 @@
|
|||||||
"runtime"
|
"runtime"
|
||||||
"screenshot.png"
|
"screenshot.png"
|
||||||
"book"
|
"book"
|
||||||
"contrib"
|
|
||||||
"docs"
|
"docs"
|
||||||
"README.md"
|
"README.md"
|
||||||
"CHANGELOG.md"
|
"CHANGELOG.md"
|
||||||
@ -142,6 +140,12 @@
|
|||||||
helix-unwrapped = craneLib.buildPackage (commonArgs
|
helix-unwrapped = craneLib.buildPackage (commonArgs
|
||||||
// {
|
// {
|
||||||
inherit cargoArtifacts;
|
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 {};
|
helix = makeOverridableHelix self.packages.${system}.helix-unwrapped {};
|
||||||
default = self.packages.${system}.helix;
|
default = self.packages.${system}.helix;
|
||||||
|
Loading…
Reference in New Issue
Block a user