2021-04-27 19:07:25 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpng
|
2021-05-17 19:16:51 +02:00
|
|
|
, libjpeg
|
|
|
|
, freetype
|
2021-04-27 19:07:25 +02:00
|
|
|
, xorg
|
|
|
|
, python3
|
|
|
|
, imagemagick
|
|
|
|
, gcc-arm-embedded
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "numworks-epsilon";
|
2021-05-17 19:16:51 +02:00
|
|
|
version = "15.5.0";
|
2021-04-27 19:07:25 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numworks";
|
|
|
|
repo = "epsilon";
|
|
|
|
rev = version;
|
2021-05-17 19:16:51 +02:00
|
|
|
sha256 = "fPBO3FzZ4k5OxG+Ifc6R/au4Te974HNKAEdHz+aFdSg=";
|
2021-04-27 19:07:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
libpng
|
2021-05-17 19:16:51 +02:00
|
|
|
libjpeg
|
|
|
|
freetype
|
2021-04-27 19:07:25 +02:00
|
|
|
xorg.libXext
|
|
|
|
python3
|
|
|
|
imagemagick
|
|
|
|
gcc-arm-embedded
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PLATFORM=simulator"
|
|
|
|
];
|
|
|
|
|
2021-05-17 19:16:51 +02:00
|
|
|
patches = [
|
|
|
|
# Remove make rule Introduced in cba596dde7
|
|
|
|
# which causes it to not build with nix
|
|
|
|
./0001-ion-linux-makerules.patch
|
|
|
|
];
|
|
|
|
|
2021-04-27 19:07:25 +02:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mv ./output/release/simulator/linux/{epsilon.bin,epsilon}
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r ./output/release/simulator/linux/* $out/bin/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-05-17 19:16:51 +02:00
|
|
|
description = "Simulator for Epsilon, a High-performance graphing calculator operating system";
|
2021-04-27 19:07:25 +02:00
|
|
|
homepage = "https://numworks.com/";
|
|
|
|
license = licenses.cc-by-nc-sa-40;
|
|
|
|
maintainers = with maintainers; [ erikbackman ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|