From f3d1af989411848587e7771f4156c4425bc02414 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 10 May 2024 20:02:57 -0300 Subject: [PATCH] SDL_sixel: refactor - fix version - strictDeps --- pkgs/by-name/sd/SDL_sixel/package.nix | 34 ++++++++++++++++++--------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/sd/SDL_sixel/package.nix b/pkgs/by-name/sd/SDL_sixel/package.nix index 189fdee05b26..7acd03b19f6c 100644 --- a/pkgs/by-name/sd/SDL_sixel/package.nix +++ b/pkgs/by-name/sd/SDL_sixel/package.nix @@ -1,27 +1,39 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, libsixel }: +{ + lib, + fetchFromGitHub, + libsixel, + pkg-config, + stdenv, +}: stdenv.mkDerivation { pname = "SDL_sixel"; - version = "1.2-nightly"; + version = "0-unstable-2016-02-06"; src = fetchFromGitHub { owner = "saitoha"; repo = "SDL1.2-SIXEL"; rev = "ab3fccac6e34260a617be511bd8c2b2beae41952"; - sha256 = "0gm2vngdac17lzw9azkhzazmfq3byjddms14gqjk18vnynfqp5wp"; + hash = "sha256-l5eLnfV2ozAlfiTo2pr0a2BXv/pwfpX4pycw1Z7doj4="; }; - configureFlags = [ "--enable-video-sixel" ]; - nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libsixel ]; - meta = with lib; { - description = "A cross-platform multimedia library, that supports sixel graphics on consoles"; + configureFlags = [ + (lib.enableFeature true "video-sixel") + ]; + + strictDeps = true; + + meta = { + homepage = "https://github.com/saitoha/SDL1.2-SIXEL"; + description = "A SDL 1.2 patched with libsixel support"; + license = lib.licenses.lgpl21; mainProgram = "sdl-config"; - homepage = "https://github.com/saitoha/SDL1.2-SIXEL"; - maintainers = with maintainers; [ vrthra ]; - platforms = platforms.linux; - license = licenses.lgpl21; + maintainers = lib.teams.sdl.members + ++ (with lib.maintainers; [ vrthra ]); + platforms = lib.platforms.linux; }; }