dtkcore: init at 2.0.9 (#45887)
This commit is contained in:
parent
55a69a9522
commit
ef81e82d83
@ -9,6 +9,7 @@ let
|
|||||||
inherit (pkgs.gnome3) libgee vte;
|
inherit (pkgs.gnome3) libgee vte;
|
||||||
wnck = pkgs.libwnck3;
|
wnck = pkgs.libwnck3;
|
||||||
};
|
};
|
||||||
|
dtkcore = callPackage ./dtkcore { };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
45
pkgs/desktops/deepin/dtkcore/default.nix
Normal file
45
pkgs/desktops/deepin/dtkcore/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, pkgconfig, qmake, gsettings-qt, pythonPackages }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
pname = "dtkcore";
|
||||||
|
version = "2.0.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "linuxdeepin";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0jfl4w3sviy59rl41a5507dbhqhsxy7hqw3gf64a57gjlbdskmm1";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgconfig
|
||||||
|
qmake
|
||||||
|
pythonPackages.wrapPython
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gsettings-qt
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i src/src.pro src/dtk_module.prf \
|
||||||
|
-e "s,\$\''${QT_HOST_DATA}/mkspecs,$out/mkspecs,"
|
||||||
|
|
||||||
|
sed -i tools/script/dtk-translate.py \
|
||||||
|
-e "s,#!env,#!/usr/bin/env,"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
chmod +x $out/lib/dtk2/*.py
|
||||||
|
wrapPythonProgramsIn "$out/lib/dtk2" "$out $pythonPath"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Deepin tool kit core modules";
|
||||||
|
homepage = https://github.com/linuxdeepin/dtkcore;
|
||||||
|
license = licenses.gpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ romildo ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user