depot/third_party/nixpkgs/pkgs/by-name/xm/xmoji/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

57 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
fontconfig,
harfbuzz,
libpng,
xcbutil,
libXcursor,
xcbutilimage,
libxkbcommon,
xcb-util-cursor,
}:
stdenv.mkDerivation (finalAttrs: {
name = "xmoji";
version = "0.8";
src = fetchFromGitHub {
owner = "Zirias";
repo = "xmoji";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-uYynbzexj1MDHcU8tryJLCGmqTfYOmY0vXrHZ3MlZa0=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace zimk/lib/platform.mk \
--replace-fail 'PATH:=''$(POSIXPATH)' "#"
'';
enableParallelBuilding = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [
fontconfig
harfbuzz
libXcursor
libpng
libxkbcommon
xcb-util-cursor
xcbutil
xcbutilimage
];
makeFlags = [ "prefix=${placeholder "out"}" ];
meta = {
description = "Plain X11 emoji keyboard";
homepage = "https://github.com/Zirias/xmoji";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ sigmanificient ];
platforms = lib.platforms.linux;
};
})