Compare commits
3 commits
1c9dced21c
...
2040a00a02
| Author | SHA1 | Date | |
|---|---|---|---|
| 2040a00a02 | |||
| caff869c81 | |||
| efbba16fea |
3 changed files with 32 additions and 3 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}/pseint $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/";
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
|
./mysql.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
roles/school/services/mysql.nix
Normal file
12
roles/school/services/mysql.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ 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