2020-05-03 20:52:19 +01:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, qmake
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
, dtkcore
|
|
|
|
, dtkwidget
|
|
|
|
, deepin
|
|
|
|
}:
|
2019-06-26 04:25:57 +01:00
|
|
|
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2019-06-26 04:25:57 +01:00
|
|
|
pname = "deepin-calculator";
|
2019-11-12 01:08:38 +00:00
|
|
|
version = "5.0.1";
|
2019-06-26 04:25:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:38 +00:00
|
|
|
sha256 = "0f26y7b3giybybhvlzbnwcw8kidzvhq66h0c15n9ww81gnlqf7v5";
|
2019-06-26 04:25:57 +01: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 03:53:18 +01:00
|
|
|
|
2020-05-03 21:03:55 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2019-06-26 04:25:57 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Easy to use calculator for Deepin Desktop Environment";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-calculator";
|
2019-06-26 04:25:57 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|