Files
nixpkgs/pkgs/by-name/li/libwtk-sdl2/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
boost,
SDL2,
SDL2_ttf,
SDL2_image,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libwtk-sdl2";
version = "0-unstable-2023-02-28";
src = fetchFromGitHub {
owner = "muesli4";
repo = "libwtk-sdl2";
rev = "0504f8342c8c97d0c8b43d33751427c564ad8d44";
sha256 = "sha256-NAjsDQ4/hklYRfa85uleOr50tmc6UJVo2xiDnEbmIxk=";
};
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
boost
SDL2
SDL2_ttf
SDL2_image
];
# From some reason, this is needed as otherwise SDL.h is not found
NIX_CFLAGS_COMPILE = "-I${lib.getInclude SDL2}/include/SDL2";
outputs = [
"out"
"dev"
"lib"
];
meta = with lib; {
description = "Simplistic SDL2 GUI framework in early developement";
mainProgram = "libwtk-sdl2-test";
homepage = "https://github.com/muesli4/libwtk-sdl2";
# See: https://github.com/muesli4/mpd-touch-screen-gui/tree/master/LICENSES
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ doronbehar ];
/*
Partial darwin build failure log (from ofborg):
geometry.cpp:95:34: error: no member named 'abs' in namespace 'std'
> return { std::abs(v.w), std::abs(v.h) };
> ~~~~~^
*/
platforms = platforms.linux;
};
})