50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, wxGTK32
|
|
, libX11
|
|
, libglvnd
|
|
, libGLU
|
|
, gsettings-desktop-schemas
|
|
, makeBinaryWrapper
|
|
, wrapGAppsHook
|
|
}:
|
|
# Based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pseint
|
|
stdenv.mkDerivation rec {
|
|
pname = "pseint";
|
|
version = "20230517";
|
|
|
|
src = fetchurl {
|
|
url = "https://netactuate.dl.sourceforge.net/project/${pname}/${version}/${pname}-src-${version}.tgz";
|
|
hash = "sha256-8zc7CtDQ9RjXLAVQTigstPqdDJsR8ffBopxBFzVP+eI=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ wxGTK32 libglvnd libGLU libX11 gsettings-desktop-schemas ];
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper wrapGAppsHook ];
|
|
|
|
# Build for linux
|
|
makeFlags = [ "ARCH=lnx" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/opt/${pname}/ $out/bin/
|
|
cp -rv bin/* $out/opt/${pname}/
|
|
makeBinaryWrapper $out/opt/${pname}/pseint $out/bin/pseint
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tool for learning programming basis with a simple spanish pseudocode";
|
|
homepage = "https://pseint.sourceforge.net/";
|
|
downloadPage = "https://pseint.sourceforge.net/index.php?page=descargas.php";
|
|
changelog = "https://pseint.sourceforge.net/index.php?page=cambios.php";
|
|
# Website says GPLv2, so I'm assuming I need to use gpl2Only
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|