Compare commits
No commits in common. "2040a00a022052b2a971e5aa0c41175aa63fe6fd" and "1c9dced21cdac007582e785de61f08ff4aa9649e" have entirely different histories.
2040a00a02
...
1c9dced21c
3 changed files with 3 additions and 32 deletions
|
|
@ -7,7 +7,6 @@
|
||||||
, 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
|
||||||
|
|
@ -19,6 +18,7 @@ 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,29 +31,13 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/opt/${pname}/ $out/bin/ $out/share/icons/hicolor/{16x16,32x32,48x48,64x64,128x128}
|
mkdir -p $out/opt/${pname}/ $out/bin/
|
||||||
cp -rv bin/* $out/opt/${pname}/
|
cp -rv bin/* $out/opt/${pname}/
|
||||||
makeBinaryWrapper $out/opt/${pname}/wxPSeInt $out/bin/pseint
|
makeBinaryWrapper $out/opt/${pname}/pseint $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/";
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,5 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./mysql.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.mysql = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.mysql80;
|
|
||||||
user = "toast";
|
|
||||||
group = "users";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.mysql-workbench ];
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue