2016-09-20 20:22:51 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ibus-uniemoji-${version}";
|
2016-10-15 23:42:09 +01:00
|
|
|
version = "0.6.0";
|
2016-09-20 20:22:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "salty-horse";
|
|
|
|
repo = "ibus-uniemoji";
|
2016-10-15 23:42:09 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "121zh3q0li1k537fcvbd4ns4jgl9bbb9gm9ihy8cfxgirv38lcfa";
|
2016-09-20 20:22:51 +01:00
|
|
|
};
|
|
|
|
|
2018-03-03 15:38:25 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pyxdg python-Levenshtein pygobject3 ];
|
2016-09-20 20:22:51 +01:00
|
|
|
|
2017-03-25 20:53:14 +00:00
|
|
|
nativeBuildInputs = [ python3Packages.wrapPython ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
buildPythonPath $out
|
|
|
|
patchPythonScript $out/share/ibus-uniemoji/uniemoji.py
|
|
|
|
'';
|
|
|
|
|
2016-09-20 20:22:51 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "SYSCONFDIR=$(out)/etc"
|
2016-10-15 23:42:09 +01:00
|
|
|
"PYTHON=${python3Packages.python.interpreter}"
|
|
|
|
];
|
2016-09-20 20:22:51 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
isIbusEngine = true;
|
|
|
|
description = "Input method (ibus) for entering unicode symbols and emoji by name";
|
|
|
|
homepage = "https://github.com/salty-horse/ibus-uniemoji";
|
|
|
|
license = with licenses; [ gpl3 mit ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ aske ];
|
|
|
|
};
|
|
|
|
}
|