mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
e0b8468c5b
Changelog: https://github.com/Zirias/xmoji/releases/tag/v0.8 Diff: https://github.com/Zirias/xmoji/compare/refs/tags/v0.5.1...v0.8
58 lines
1.1 KiB
Nix
58 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;
|
|
};
|
|
})
|