2018-10-30 23:17:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gettext, python3Packages, perlPackages, deepin }:
|
2018-09-02 06:46:45 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deepin-gettext-tools";
|
|
|
|
version = "1.0.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "03cwa82dd14a31v44jd3z0kpiri6g21ar4f48s8ph78nvjy55880";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3Packages.wrapPython
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gettext
|
|
|
|
perlPackages.perl
|
|
|
|
perlPackages.XMLLibXML
|
|
|
|
perlPackages.ConfigTiny
|
|
|
|
python3Packages.python
|
|
|
|
];
|
|
|
|
|
2019-09-03 18:38:57 +02:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2018-09-02 06:46:45 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -e 's/sudo cp/cp/' -i src/generate_mo.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
wrapPythonProgramsIn "$out/lib/${pname}"
|
|
|
|
wrapProgram $out/bin/deepin-desktop-ts-convert --set PERL5LIB $PERL5LIB
|
|
|
|
'';
|
|
|
|
|
2019-12-04 10:20:00 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-10-30 23:17:45 +01:00
|
|
|
|
2018-09-02 06:46:45 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Deepin Internationalization utilities";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-gettext-tools";
|
2018-09-02 06:46:45 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|