Pseint: make desktop file with icons
This commit is contained in:
parent
caff869c81
commit
2040a00a02
1 changed files with 18 additions and 2 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
, libGLU
|
, libGLU
|
||||||
, gsettings-desktop-schemas
|
, gsettings-desktop-schemas
|
||||||
, makeBinaryWrapper
|
, makeBinaryWrapper
|
||||||
|
, makeDesktopItem
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
# Based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pseint
|
# Based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pseint
|
||||||
|
|
@ -18,7 +19,6 @@ stdenv.mkDerivation rec {
|
||||||
url = "https://netactuate.dl.sourceforge.net/project/${pname}/${version}/${pname}-src-${version}.tgz";
|
url = "https://netactuate.dl.sourceforge.net/project/${pname}/${version}/${pname}-src-${version}.tgz";
|
||||||
hash = "sha256-8zc7CtDQ9RjXLAVQTigstPqdDJsR8ffBopxBFzVP+eI=";
|
hash = "sha256-8zc7CtDQ9RjXLAVQTigstPqdDJsR8ffBopxBFzVP+eI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [ wxGTK32 libglvnd libGLU libX11 gsettings-desktop-schemas ];
|
buildInputs = [ wxGTK32 libglvnd libGLU libX11 gsettings-desktop-schemas ];
|
||||||
|
|
@ -31,13 +31,29 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/opt/${pname}/ $out/bin/
|
mkdir -p $out/opt/${pname}/ $out/bin/ $out/share/icons/hicolor/{16x16,32x32,48x48,64x64,128x128}
|
||||||
cp -rv bin/* $out/opt/${pname}/
|
cp -rv bin/* $out/opt/${pname}/
|
||||||
makeBinaryWrapper $out/opt/${pname}/wxPSeInt $out/bin/pseint
|
makeBinaryWrapper $out/opt/${pname}/wxPSeInt $out/bin/pseint
|
||||||
|
cp -rv bin/imgs/icon16.png $out/share/icons/hicolor/16x16/pseint.png
|
||||||
|
cp -rv bin/imgs/icon32.png $out/share/icons/hicolor/32x32/pseint.png
|
||||||
|
cp -rv bin/imgs/icon48.png $out/share/icons/hicolor/48x48/pseint.png
|
||||||
|
cp -rv bin/imgs/icon64.png $out/share/icons/hicolor/64x64/pseint.png
|
||||||
|
cp -rv bin/imgs/icon128.png $out/share/icons/hicolor/128x128/pseint.png
|
||||||
|
cp -rv "${desktopItem}/share/applications" "$out/share"
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = pname;
|
||||||
|
desktopName = "PSeInt";
|
||||||
|
exec = "pseint";
|
||||||
|
icon = "pseint";
|
||||||
|
genericName = meta.description;
|
||||||
|
categories = [ "Development" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A tool for learning programming basis with a simple spanish pseudocode";
|
description = "A tool for learning programming basis with a simple spanish pseudocode";
|
||||||
homepage = "https://pseint.sourceforge.net/";
|
homepage = "https://pseint.sourceforge.net/";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue