2019-07-22 03:53:18 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, substituteAll, qmake, pkgconfig, qttools,
|
2018-11-14 14:32:51 +00:00
|
|
|
dde-qt-dbus-factory, proxychains, which, deepin }:
|
|
|
|
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2018-11-14 14:32:51 +00:00
|
|
|
pname = "dde-network-utils";
|
2019-11-12 01:08:38 +00:00
|
|
|
version = "5.0.1";
|
2018-11-14 14:32:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 01:08:38 +00:00
|
|
|
sha256 = "0670kfnkplf7skkd1ql6y9x15kmrcbdv1005qwkg4vn8hic6s0z3";
|
2018-11-14 14:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkgconfig
|
|
|
|
qttools
|
|
|
|
deepin.setupHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dde-qt-dbus-factory
|
|
|
|
proxychains
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit which proxychains;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
searchHardCodedPaths # for debugging
|
|
|
|
patchShebangs translate_generation.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
searchHardCodedPaths $out # for debugging
|
|
|
|
'';
|
|
|
|
|
2019-12-04 09:20:00 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-11-14 14:32:51 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Deepin network utils";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxdeepin/dde-network-utils";
|
2018-11-14 14:32:51 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|