2019-07-22 02:53:18 +00:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg, dtkcore,
|
2019-06-26 03:25:57 +00:00
|
|
|
dtkwidget, deepin }:
|
|
|
|
|
2019-07-22 02:53:18 +00:00
|
|
|
mkDerivation rec {
|
2019-06-26 03:25:57 +00:00
|
|
|
pname = "deepin-calculator";
|
2019-11-12 01:08:38 +00:00
|
|
|
version = "5.0.1";
|
2019-06-26 03:25:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:38 +00:00
|
|
|
sha256 = "0f26y7b3giybybhvlzbnwcw8kidzvhq66h0c15n9ww81gnlqf7v5";
|
2019-06-26 03:25:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkgconfig
|
|
|
|
qttools
|
|
|
|
deepin.setupHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dtkcore
|
|
|
|
dtkwidget
|
|
|
|
qtsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
searchHardCodedPaths # debugging
|
|
|
|
patchShebangs translate_generation.sh
|
|
|
|
fixPath $out /usr deepin-calculator.pro
|
|
|
|
substituteInPlace deepin-calculator.desktop --replace "Exec=deepin-calculator" "Exec=$out/bin/deepin-calculator"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
searchHardCodedPaths $out # debugging
|
|
|
|
'';
|
2019-07-22 02:53:18 +00:00
|
|
|
|
2019-12-04 09:20:00 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2019-06-26 03:25:57 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Easy to use calculator for Deepin Desktop Environment";
|
|
|
|
homepage = https://github.com/linuxdeepin/deepin-calculator;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|