Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] deepin.deepin-manual: init at 2.0.19 #59953

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions pkgs/desktops/deepin/deepin-manual/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{ stdenv, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools,
qtwebchannel, dtkcore, dtkwidget, qt5integration, qcef, libsass,
sqlite, gtk2, deepin }:

stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-manual";
version = "2.0.19";

src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "09pjvv2c0h4yzvcghv37f5rl47p4dh2bkbpwc63x7gavx3m1m203";
};

nativeBuildInputs = [
pkgconfig
cmake
qttools
deepin.setupHook
];

buildInputs = [
dtkcore
dtkwidget
gtk2 # ? listed in archlinux
libsass
qcef
qt5integration
qtbase
qtbase.bin # ? lib/qt-5.12/plugins/sqldrivers/libqsqlite.so
qtwebchannel
sqlite # ?
];

postPatch = ''
searchHardCodedPaths
echo ----------------------------------
patchShebangs .
echo ----------------------------------
grep -r 'search\.db'
echo ----------------------------------
grep -ir 'SQLITE'
echo ----------------------------------
'';

preBuild = ''
echo ==================================
grep -r 'search\.db'
echo ==================================
find -name search.db -ls
echo ==================================
'';

postFixup = ''
searchHardCodedPaths $out
'';

enableParallelBuilding = false;

meta = with stdenv.lib; {
description = "Deepin user manual";
homepage = https://github.com/linuxdeepin/deepin-manual;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}
1 change: 1 addition & 0 deletions pkgs/desktops/deepin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ let
deepin-gtk-theme = callPackage ./deepin-gtk-theme { };
deepin-icon-theme = callPackage ./deepin-icon-theme { };
deepin-image-viewer = callPackage ./deepin-image-viewer { };
deepin-manual = callPackage ./deepin-manual { };
deepin-menu = callPackage ./deepin-menu { };
deepin-metacity = callPackage ./deepin-metacity { };
deepin-movie-reborn = callPackage ./deepin-movie-reborn { };
Expand Down