mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
Merge pull request #225162 from doronbehar/pkg/mpd-touch-screen-gui
libwtk-sdl2: init at unstable-2023-02-28
This commit is contained in:
commit
7f3f7ec381
63
pkgs/applications/audio/mpd-touch-screen-gui/default.nix
Normal file
63
pkgs/applications/audio/mpd-touch-screen-gui/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, SDL2
|
||||
, SDL2_ttf
|
||||
, SDL2_image
|
||||
, boost
|
||||
, libmpdclient
|
||||
, libwtk-sdl2
|
||||
, icu
|
||||
, libconfig
|
||||
, dejavu_fonts
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mpd-touch-screen-gui";
|
||||
version = "unstable-2022-12-30";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "muesli4";
|
||||
repo = pname;
|
||||
rev = "156eaebede89da2b83a98d8f9dfa46af12282fb4";
|
||||
sha256 = "sha256-vr/St4BghrndjUQ0nZI/uJq+F/MjEj6ulc4DYwQ/pgU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i s#/usr/share/fonts/TTF#${dejavu_fonts}/share/fonts/truetype#g data/program.conf
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
SDL2
|
||||
SDL2_ttf
|
||||
SDL2_image
|
||||
boost
|
||||
libmpdclient
|
||||
libwtk-sdl2
|
||||
icu
|
||||
libconfig
|
||||
];
|
||||
|
||||
# https://stackoverflow.com/questions/53089494/configure-error-could-not-find-a-version-of-the-library
|
||||
configureFlags = [
|
||||
"--with-boost-libdir=${boost.out}/lib"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small MPD client that let's you view covers and has controls suitable for small touchscreens";
|
||||
homepage = "https://github.com/muesli4/mpd-touch-screen-gui";
|
||||
# See: https://github.com/muesli4/mpd-touch-screen-gui/tree/master/LICENSES
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
51
pkgs/development/libraries/libwtk-sdl2/default.nix
Normal file
51
pkgs/development/libraries/libwtk-sdl2/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, boost
|
||||
, SDL2
|
||||
, SDL2_ttf
|
||||
, SDL2_image
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libwtk-sdl2";
|
||||
version = "unstable-2023-02-28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "muesli4";
|
||||
repo = pname;
|
||||
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${SDL2.dev}/include/SDL2";
|
||||
|
||||
outputs = [ "out" "dev" "lib" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simplistic SDL2 GUI framework in early developement";
|
||||
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;
|
||||
};
|
||||
}
|
@ -5387,6 +5387,8 @@ with pkgs;
|
||||
|
||||
mpris-scrobbler = callPackage ../tools/audio/mpris-scrobbler { };
|
||||
|
||||
mpd-touch-screen-gui = callPackage ../applications/audio/mpd-touch-screen-gui { };
|
||||
|
||||
mq-cli = callPackage ../tools/system/mq-cli { };
|
||||
|
||||
mrkd = with python3Packages; toPythonApplication mrkd;
|
||||
@ -18369,6 +18371,8 @@ with pkgs;
|
||||
|
||||
libwhich = callPackage ../development/tools/misc/libwhich { };
|
||||
|
||||
libwtk-sdl2 = callPackage ../development/libraries/libwtk-sdl2 { };
|
||||
|
||||
linuxkit = callPackage ../development/tools/misc/linuxkit {
|
||||
inherit (darwin.apple_sdk_11_0.frameworks) Virtualization;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user