Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nix] lvgl init at 9.2.1 #819

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ rec {
espresso = final.callPackage ./pkgs/espresso.nix { };
dramsim3 = final.callPackage ./pkgs/dramsim3.nix { };
libspike = final.callPackage ./pkgs/libspike.nix { };
lvgl = final.callPackage ./pkgs/lvgl.nix { };
libspike_interfaces = final.callPackage ../difftest/spike_interfaces { };

# DynamoCompiler doesn't support python 3.12+ yet
Expand Down
39 changes: 39 additions & 0 deletions nix/pkgs/lvgl.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
}:

let
preset = "linux-base";
in

stdenv.mkDerivation rec {
pname = "lvgl";
version = "9.2.1";

src = fetchFromGitHub {
owner = "lvgl";
repo = "lvgl";
rev = "v${version}";
hash = "sha256-+k2ID3nzwrxuQC/1lR/RrEUNoyHfnjVQd3NpyqakD3g=";
};

nativeBuildInputs = [
cmake
ninja
];

ninjaFlags = [ "-C" preset ];

cmakeFlagsArray = [ "--preset" preset ];

meta = {
description = "Embedded graphics library to create beautiful UIs for any MCU, MPU and display type";
homepage = "https://github.com/lvgl/lvgl";
license = lib.licenses.mit;
platforms = lib.platforms.all;
};
}