mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, libpng
|
|
, libjpeg
|
|
, freetype
|
|
, xorg
|
|
, python3
|
|
, imagemagick
|
|
, gcc-arm-embedded
|
|
, pkg-config
|
|
, python3Packages
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "numworks-epsilon";
|
|
version = "23.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "numworks";
|
|
repo = "epsilon";
|
|
rev = version;
|
|
hash = "sha256-w9ddcULE1MrGnYcXA0qOg1elQv/eBhcXqhMSjWT3Bkk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
libpng
|
|
libjpeg
|
|
freetype
|
|
xorg.libXext
|
|
python3
|
|
imagemagick
|
|
gcc-arm-embedded
|
|
python3Packages.lz4
|
|
];
|
|
|
|
makeFlags = [
|
|
"PLATFORM=simulator"
|
|
];
|
|
|
|
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; {
|
|
description = "Simulator for Epsilon, a High-performance graphing calculator operating system";
|
|
homepage = "https://numworks.com/";
|
|
license = licenses.cc-by-nc-sa-40;
|
|
maintainers = with maintainers; [ erikbackman ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|