nixpkgs/pkgs/by-name/sd/SDL_gpu/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

52 lines
1.1 KiB
Nix

{
lib,
SDL2,
cmake,
fetchFromGitHub,
libGLU,
pkg-config,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "SDL_gpu";
version = "0-unstable-2022-06-24";
src = fetchFromGitHub {
owner = "grimfang4";
repo = "sdl-gpu";
rev = "e8ee3522ba0dbe72ca387d978e5f49a9f31e7ba0";
hash = "sha256-z1ZuHh9hvno2h+kCKfe+uWa/S6/OLZWWgLZ0zs9HetQ=";
};
nativeBuildInputs = [
SDL2
cmake
pkg-config
];
buildInputs = [
SDL2
libGLU
];
cmakeFlags = [
(lib.cmakeBool "SDL_gpu_BUILD_DEMOS" false)
(lib.cmakeBool "SDL_gpu_BUILD_TOOLS" false)
(lib.cmakeBool "SDL_gpu_BUILD_VIDEO_TEST" false)
(lib.cmakeBool "SDL_gpu_BUILD_TESTS" false)
];
outputs = [ "out" "dev" ];
strictDeps = true;
meta = {
description = "Library for high-performance, modern 2D graphics with SDL written in C";
homepage = "https://grimfang4.github.io/sdl-gpu";
license = lib.licenses.mit;
maintainers = lib.teams.sdl.members
++ (with lib.maintainers; [ ]);
inherit (SDL2.meta) platforms;
};
})