mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-08-16 02:10:42 +03:00
Simplify appimage generation
This commit is contained in:
parent
9323b9ca68
commit
ee29621831
@ -18,26 +18,17 @@ let
|
|||||||
src = env;
|
src = env;
|
||||||
inherit exec;
|
inherit exec;
|
||||||
buildInputs = [ drv ];
|
buildInputs = [ drv ];
|
||||||
usr_fonts = buildEnv {
|
|
||||||
name = "fonts";
|
|
||||||
paths = [noto-fonts];
|
|
||||||
};
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
source $stdenv/setup
|
mkdir -p $out/share/icons/hicolor/256x256/apps
|
||||||
mkdir $out
|
mkdir -p $out/share/applications
|
||||||
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
ln -s ${env}/!(share) $out/
|
ln -s ${env}/!(share) $out/
|
||||||
mkdir -p $out/share/fonts
|
|
||||||
ln -s ${env}/share/* $out/share/
|
ln -s ${env}/share/* $out/share/
|
||||||
|
|
||||||
cp ${usr_fonts}/share/fonts/* $out/share/fonts -R
|
|
||||||
|
|
||||||
mkdir -p $out/share/icons
|
|
||||||
mkdir -p $out/share/icons/hicolor/256x256/apps
|
|
||||||
touch $out/share/icons/hicolor/256x256/apps/${drv.name}.png
|
touch $out/share/icons/hicolor/256x256/apps/${drv.name}.png
|
||||||
touch $out/share/icons/${drv.name}.png
|
touch $out/share/icons/${drv.name}.png
|
||||||
|
|
||||||
mkdir -p $out/share/applications
|
|
||||||
cat <<EOF > $out/share/applications/${drv.name}.desktop
|
cat <<EOF > $out/share/applications/${drv.name}.desktop
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
|
Loading…
Reference in New Issue
Block a user