Merge pull request #86708 from romildo/deepin.updateScript

deepin: redefine updateScript to use genericUpdater
This commit is contained in:
José Romildo Malaquias 2020-05-07 11:04:36 -03:00 committed by GitHub
commit 4ed5208152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
48 changed files with 845 additions and 328 deletions

View File

@ -4,6 +4,7 @@
, version
, attrPath ? pname
, versionLister
, ignoredVersions ? ""
, rev-prefix ? ""
, odd-unstable ? false
, patchlevel-unstable ? false
@ -23,13 +24,19 @@ let
version="$2"
attr_path="$3"
version_lister="$4"
rev_prefix="$5"
odd_unstable="$6"
patchlevel_unstable="$7"
ignored_versions="$5"
rev_prefix="$6"
odd_unstable="$7"
patchlevel_unstable="$8"
# print header
echo "# $pname-$version" >> ${fileForGitCommands}
function version_is_ignored() {
local tag="$1"
[ -n "$ignored_versions" ] && grep -E "$ignored_versions" <<< "$tag"
}
function version_is_unstable() {
local tag="$1"
local enforce="$2"
@ -68,7 +75,10 @@ let
# find the newest tag
# do not consider development versions
for latest_tag in $tags; do
if version_is_unstable "$latest_tag"; then
if version_is_ignored "$latest_tag"; then
echo "# skip ignored version: $pname-$latest_tag" >> ${fileForGitCommands}
latest_tag=
elif version_is_unstable "$latest_tag"; then
echo "# skip development version: $pname-$latest_tag" >> ${fileForGitCommands}
latest_tag=
else
@ -95,4 +105,4 @@ let
'';
in
[ updateScript pname version attrPath versionLister rev-prefix odd-unstable patchlevel-unstable ]
[ updateScript pname version attrPath versionLister ignoredVersions rev-prefix odd-unstable patchlevel-unstable ]

View File

@ -1,4 +1,10 @@
{ stdenv, fetchFromGitHub, jq, libxml2, go-dbus-generator, deepin }:
{ stdenv
, fetchFromGitHub
, jq
, libxml2
, go-dbus-generator
, deepin
}:
stdenv.mkDerivation rec {
pname = "dbus-factory";
@ -17,13 +23,15 @@ stdenv.mkDerivation rec {
go-dbus-generator
];
makeFlags = [ "GOPATH=${placeholder "out"}/share/go" ];
makeFlags = [
"GOPATH=${placeholder "out"}/share/go"
];
postPatch = ''
sed -i -e 's:/share/gocode:/share/go:' Makefile
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Generates static DBus bindings for Golang and QML at build-time";

View File

@ -1,25 +1,28 @@
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig,
alsaLib,
bc,
blur-effect,
coreutils,
dbus-factory,
deepin,
deepin-gettext-tools,
fontconfig,
go,
go-dbus-factory,
go-gir-generator,
go-lib,
grub2,
gtk3,
libcanberra,
libgudev,
librsvg,
poppler,
pulseaudio,
rfkill,
xcur2png
{ stdenv
, buildGoPackage
, fetchFromGitHub
, pkgconfig
, alsaLib
, bc
, blur-effect
, coreutils
, dbus-factory
, deepin
, deepin-gettext-tools
, fontconfig
, go
, go-dbus-factory
, go-gir-generator
, go-lib
, grub2
, gtk3
, libcanberra
, libgudev
, librsvg
, poppler
, pulseaudio
, rfkill
, xcur2png
}:
buildGoPackage rec {
@ -114,7 +117,7 @@ buildGoPackage rec {
searchHardCodedPaths $out # debugging
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Go-lang bindings for dde-daemon";

View File

@ -1,5 +1,13 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, qttools,
deepin-gettext-tools, dtkcore, dtkwidget, deepin
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, cmake
, qttools
, deepin-gettext-tools
, dtkcore
, dtkwidget
, deepin
}:
mkDerivation rec {
@ -37,7 +45,7 @@ mkDerivation rec {
-e "s,/usr/bin/deepin-desktop-ts-convert,deepin-desktop-ts-convert,"
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Calendar for Deepin Desktop Environment";

View File

@ -1,9 +1,40 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, deepin, qttools, qtdeclarative,
networkmanager, qtsvg, qtx11extras, dtkcore, dtkwidget, geoip, gsettings-qt,
dde-network-utils, networkmanager-qt, xorg, mtdev, fontconfig, freetype, dde-api,
dde-daemon, qt5integration, deepin-desktop-base, deepin-desktop-schemas, dbus,
systemd, dde-qt-dbus-factory, qtmultimedia, qtbase, glib, gnome3, which,
substituteAll, tzdata, wrapGAppsHook
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, cmake
, deepin
, qttools
, qtdeclarative
, networkmanager
, qtsvg
, qtx11extras
, dtkcore
, dtkwidget
, geoip
, gsettings-qt
, dde-network-utils
, networkmanager-qt
, xorg
, mtdev
, fontconfig
, freetype
, dde-api
, dde-daemon
, qt5integration
, deepin-desktop-base
, deepin-desktop-schemas
, dbus
, systemd
, dde-qt-dbus-factory
, qtmultimedia
, qtbase
, glib
, gnome3
, which
, substituteAll
, tzdata
, wrapGAppsHook
}:
mkDerivation rec {
@ -107,7 +138,7 @@ mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Control panel of Deepin Desktop Environment";

View File

@ -1,10 +1,38 @@
{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch, pkgconfig,
dbus-factory, go-dbus-factory, go-gir-generator, go-lib,
deepin-gettext-tools, gettext, dde-api, deepin-desktop-schemas,
deepin-wallpapers, deepin-desktop-base, alsaLib, glib, gtk3,
libgudev, libinput, libnl, librsvg, linux-pam, networkmanager,
pulseaudio, python3, hicolor-icon-theme, glibc, tzdata, go,
deepin, makeWrapper, xkeyboard_config, wrapGAppsHook }:
{ stdenv
, buildGoPackage
, fetchFromGitHub
, fetchpatch
, pkgconfig
, dbus-factory
, go-dbus-factory
, go-gir-generator
, go-lib
, deepin-gettext-tools
, gettext
, dde-api
, deepin-desktop-schemas
, deepin-wallpapers
, deepin-desktop-base
, alsaLib
, glib
, gtk3
, libgudev
, libinput
, libnl
, librsvg
, linux-pam
, networkmanager
, pulseaudio
, python3
, hicolor-icon-theme
, glibc
, tzdata
, go
, deepin
, makeWrapper
, xkeyboard_config
, wrapGAppsHook
}:
buildGoPackage rec {
pname = "dde-daemon";
@ -121,7 +149,7 @@ buildGoPackage rec {
searchHardCodedPaths $out # debugging
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Daemon for handling Deepin Desktop Environment session settings";

View File

@ -1,94 +1,116 @@
{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, qttools, qtx11extras,
qtsvg, polkit, gsettings-qt, dtkcore, dtkwidget,
dde-qt-dbus-factory, dde-network-utils, dde-daemon,
deepin-desktop-schemas, xorg, glib, wrapGAppsHook, deepin,
plugins ? [], symlinkJoin, makeWrapper, libdbusmenu }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, cmake
, pkgconfig
, qttools
, qtx11extras
, qtsvg
, polkit
, gsettings-qt
, dtkcore
, dtkwidget
, dde-qt-dbus-factory
, dde-network-utils
, dde-daemon
, deepin-desktop-schemas
, xorg
, glib
, wrapGAppsHook
, deepin
, plugins ? [ ]
, symlinkJoin
, makeWrapper
, libdbusmenu
}:
let
unwrapped = mkDerivation rec {
pname = "dde-dock";
version = "5.0.0";
unwrapped = mkDerivation rec {
pname = "dde-dock";
version = "5.0.0";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "12dshsqhzajnxm7r53qg0c84b6xlj313qnssnx2m25z4jdp5i7pr";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "12dshsqhzajnxm7r53qg0c84b6xlj313qnssnx2m25z4jdp5i7pr";
};
nativeBuildInputs = [
cmake
pkgconfig
qttools
wrapGAppsHook
deepin.setupHook
];
buildInputs = [
dde-daemon
dde-network-utils
dde-qt-dbus-factory
deepin-desktop-schemas
dtkcore
dtkwidget
glib
gsettings-qt
libdbusmenu
polkit
qtsvg
qtx11extras
xorg.libXdmcp
xorg.libXtst
xorg.libpthreadstubs
];
patches = [
./dde-dock.plugins-dir.patch
];
postPatch = ''
searchHardCodedPaths
patchShebangs translate_generation.sh
fixPath $out /etc/dde-dock plugins/keyboard-layout/CMakeLists.txt
fixPath $out /usr cmake/DdeDock/DdeDockConfig.cmake
fixPath $out /usr dde-dock.pc
fixPath $out /usr/bin/dde-dock frame/com.deepin.dde.Dock.service
fixPath $out /usr/share/dbus-1 CMakeLists.txt
fixPath ${dde-daemon} /usr/lib/deepin-daemon frame/item/showdesktopitem.cpp
fixPath ${dde-network-utils} /usr/share/dde-network-utils frame/main.cpp
fixPath ${polkit} /usr/bin/pkexec plugins/overlay-warning/overlay-warning-plugin.cpp
substituteInPlace frame/controller/dockpluginscontroller.cpp --subst-var-by out $out
substituteInPlace plugins/tray/system-trays/systemtrayscontroller.cpp --subst-var-by out $out
'';
cmakeFlags = [ "-DDOCK_TRAY_USE_NATIVE_POPUP=YES" ];
dontWrapQtApps = true;
preFixup = ''
gappsWrapperArgs+=(
"''${qtWrapperArgs[@]}"
)
'';
postFixup = ''
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Dock for Deepin Desktop Environment";
homepage = "https://github.com/linuxdeepin/dde-dock";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
};
nativeBuildInputs = [
cmake
pkgconfig
qttools
wrapGAppsHook
deepin.setupHook
];
buildInputs = [
dde-daemon
dde-network-utils
dde-qt-dbus-factory
deepin-desktop-schemas
dtkcore
dtkwidget
glib
gsettings-qt
libdbusmenu
polkit
qtsvg
qtx11extras
xorg.libXdmcp
xorg.libXtst
xorg.libpthreadstubs
];
patches = [
./dde-dock.plugins-dir.patch
];
postPatch = ''
searchHardCodedPaths
patchShebangs translate_generation.sh
fixPath $out /etc/dde-dock plugins/keyboard-layout/CMakeLists.txt
fixPath $out /usr cmake/DdeDock/DdeDockConfig.cmake
fixPath $out /usr dde-dock.pc
fixPath $out /usr/bin/dde-dock frame/com.deepin.dde.Dock.service
fixPath $out /usr/share/dbus-1 CMakeLists.txt
fixPath ${dde-daemon} /usr/lib/deepin-daemon frame/item/showdesktopitem.cpp
fixPath ${dde-network-utils} /usr/share/dde-network-utils frame/main.cpp
fixPath ${polkit} /usr/bin/pkexec plugins/overlay-warning/overlay-warning-plugin.cpp
substituteInPlace frame/controller/dockpluginscontroller.cpp --subst-var-by out $out
substituteInPlace plugins/tray/system-trays/systemtrayscontroller.cpp --subst-var-by out $out
'';
cmakeFlags = [ "-DDOCK_TRAY_USE_NATIVE_POPUP=YES" ];
dontWrapQtApps = true;
preFixup = ''
gappsWrapperArgs+=(
"''${qtWrapperArgs[@]}"
)
'';
postFixup = ''
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
meta = with stdenv.lib; {
description = "Dock for Deepin Desktop Environment";
homepage = "https://github.com/linuxdeepin/dde-dock";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
};
in if plugins == [] then unwrapped
else import ./wrapper.nix {
inherit makeWrapper symlinkJoin plugins;
dde-dock = unwrapped;
}
in
if plugins == [ ]
then unwrapped
else import ./wrapper.nix {
inherit makeWrapper symlinkJoin plugins;
dde-dock = unwrapped;
}

View File

@ -1,4 +1,8 @@
{ makeWrapper, symlinkJoin, dde-dock, plugins }:
{ makeWrapper
, symlinkJoin
, dde-dock
, plugins
}:
symlinkJoin {
name = "dde-dock-with-plugins-${dde-dock.version}";

View File

@ -1,13 +1,52 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, avfs, dde-daemon,
dde-dock, dde-polkit-agent, dde-qt-dbus-factory, deepin,
deepin-anything, deepin-desktop-schemas, deepin-gettext-tools,
deepin-movie-reborn, deepin-shortcut-viewer, deepin-terminal,
disomaster, dtkcore, dtkwidget, ffmpegthumbnailer, file, glib,
gnugrep, gsettings-qt, gvfs, jemalloc, kcodecs, libX11, libsecret,
polkit, polkit-qt, poppler, procps, qmake, qt5integration,
qtmultimedia, qtsvg, qttools, qtx11extras, runtimeShell, samba,
shadow, taglib, udisks2-qt5, xdg-user-dirs, xorg, zlib,
wrapGAppsHook }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, avfs
, dde-daemon
, dde-dock
, dde-polkit-agent
, dde-qt-dbus-factory
, deepin
, deepin-anything
, deepin-desktop-schemas
, deepin-gettext-tools
, deepin-movie-reborn
, deepin-shortcut-viewer
, deepin-terminal
, disomaster
, dtkcore
, dtkwidget
, ffmpegthumbnailer
, file
, glib
, gnugrep
, gsettings-qt
, gvfs
, jemalloc
, kcodecs
, libX11
, libsecret
, polkit
, polkit-qt
, poppler
, procps
, qmake
, qt5integration
, qtmultimedia
, qtsvg
, qttools
, qtx11extras
, runtimeShell
, samba
, shadow
, taglib
, udisks2-qt5
, xdg-user-dirs
, xorg
, zlib
, wrapGAppsHook
}:
mkDerivation rec {
pname = "dde-file-manager";
@ -247,7 +286,7 @@ mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "File manager and desktop module for Deepin Desktop Environment";

View File

@ -74,7 +74,9 @@ mkDerivation rec {
# Need to add kwayland around:
# * https://github.com/linuxdeepin/dde-kwin/blob/5226bb984c844129f9fa589da56e77decb7b39a1/plugins/kwineffects/blur/CMakeLists.txt#L14
NIX_CFLAGS_COMPILE = "-I${kwayland.dev}/include/KF5";
NIX_CFLAGS_COMPILE = [
"-I${kwayland.dev}/include/KF5"
];
cmakeFlags = [
"-DKWIN_VERSION=${(builtins.parseDrvName kwin.name).version}"
@ -128,7 +130,7 @@ mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "KWin configuration for Deepin Desktop Environment";

View File

@ -1,7 +1,24 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, dde-qt-dbus-factory,
dde-session-ui, deepin, deepin-desktop-schemas, deepin-wallpapers,
dtkcore, dtkwidget, gsettings-qt, qtsvg, qttools, qtx11extras,
which, xdg_utils, wrapGAppsHook, glib }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, cmake
, dde-qt-dbus-factory
, dde-session-ui
, deepin
, deepin-desktop-schemas
, deepin-wallpapers
, dtkcore
, dtkwidget
, gsettings-qt
, qtsvg
, qttools
, qtx11extras
, which
, xdg_utils
, wrapGAppsHook
, glib
}:
mkDerivation rec {
pname = "dde-launcher";
@ -72,7 +89,7 @@ mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin Desktop Environment launcher module";

View File

@ -1,5 +1,15 @@
{ stdenv, mkDerivation, fetchFromGitHub, substituteAll, qmake, pkgconfig, qttools,
dde-qt-dbus-factory, proxychains, which, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, substituteAll
, qmake
, pkgconfig
, qttools
, dde-qt-dbus-factory
, proxychains
, which
, deepin
}:
mkDerivation rec {
pname = "dde-network-utils";
@ -41,7 +51,7 @@ mkDerivation rec {
searchHardCodedPaths $out # for debugging
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin network utils";

View File

@ -1,5 +1,15 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, polkit-qt,
dtkcore, dtkwidget, dde-qt-dbus-factory, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, qttools
, polkit-qt
, dtkcore
, dtkwidget
, dde-qt-dbus-factory
, deepin
}:
mkDerivation rec {
pname = "dde-polkit-agent";
@ -38,7 +48,7 @@ mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "PolicyKit agent for Deepin Desktop Environment";

View File

@ -1,4 +1,9 @@
{ stdenv, fetchFromGitHub, qmake, python3, deepin }:
{ stdenv
, fetchFromGitHub
, qmake
, python3
, deepin
}:
stdenv.mkDerivation rec {
pname = "dde-qt-dbus-factory";
@ -26,7 +31,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Qt DBus interface library for Deepin software";

View File

@ -1,9 +1,33 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, dbus, dde-daemon,
dde-qt-dbus-factory, deepin, deepin-desktop-schemas,
deepin-gettext-tools, deepin-icon-theme, deepin-wallpapers, dtkcore,
dtkwidget, gnugrep, gsettings-qt, lightdm_qt,
onboard, qtsvg, qttools, qtx11extras, setxkbmap, utillinux, which,
xkeyboard_config, xorg, xrandr, wrapGAppsHook }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, dbus
, dde-daemon
, dde-qt-dbus-factory
, deepin
, deepin-desktop-schemas
, deepin-gettext-tools
, deepin-icon-theme
, deepin-wallpapers
, dtkcore
, dtkwidget
, gnugrep
, gsettings-qt
, lightdm_qt
, onboard
, qtsvg
, qttools
, qtx11extras
, setxkbmap
, utillinux
, which
, xkeyboard_config
, xorg
, xrandr
, wrapGAppsHook
}:
mkDerivation rec {
pname = "dde-session-ui";
@ -121,7 +145,7 @@ mkDerivation rec {
searchHardCodedPaths $out # debugging
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin desktop-environment - Session UI module";

View File

@ -1,5 +1,14 @@
{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, pkgconfig, qtbase, udisks2-qt5, utillinux,
dtkcore, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, fetchpatch
, pkgconfig
, qtbase
, udisks2-qt5
, utillinux
, dtkcore
, deepin
}:
mkDerivation rec {
pname = "deepin-anything";
@ -61,7 +70,7 @@ mkDerivation rec {
searchHardCodedPaths $modsrc # for debugging
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin file search tool";

View File

@ -1,5 +1,14 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg, dtkcore,
dtkwidget, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, qttools
, qtsvg
, dtkcore
, dtkwidget
, deepin
}:
mkDerivation rec {
pname = "deepin-calculator";
@ -36,7 +45,7 @@ mkDerivation rec {
searchHardCodedPaths $out # debugging
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Easy to use calculator for Deepin Desktop Environment";

View File

@ -1,4 +1,8 @@
{ stdenv, fetchFromGitHub, deepin-wallpapers, deepin }:
{ stdenv
, fetchFromGitHub
, deepin-wallpapers
, deepin
}:
stdenv.mkDerivation rec {
pname = "deepin-desktop-base";
@ -11,9 +15,13 @@ stdenv.mkDerivation rec {
sha256 = "0rs7bjy35k5gc5nbba1cijhdz16zny30lgmcf2ckx1pkdszk2vra";
};
nativeBuildInputs = [ deepin.setupHook ];
nativeBuildInputs = [
deepin.setupHook
];
buildInputs = [ deepin-wallpapers ];
buildInputs = [
deepin-wallpapers
];
# TODO: Fedora recommended dependencies:
# deepin-wallpapers
@ -40,7 +48,7 @@ stdenv.mkDerivation rec {
ln -s ../lib/deepin/desktop-version $out/etc/deepin-version
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Base assets and definitions for Deepin Desktop Environment";

View File

@ -1,5 +1,14 @@
{ stdenv, fetchFromGitHub, python3, dconf, glib, deepin-gtk-theme,
deepin-icon-theme, deepin-sound-theme, deepin-wallpapers, deepin }:
{ stdenv
, fetchFromGitHub
, python3
, dconf
, glib
, deepin-gtk-theme
, deepin-icon-theme
, deepin-sound-theme
, deepin-wallpapers
, deepin
}:
stdenv.mkDerivation rec {
pname = "deepin-desktop-schemas";
@ -46,7 +55,9 @@ stdenv.mkDerivation rec {
# /usr/share/desktop-directories
'';
makeFlags = [ "PREFIX=${placeholder "out"}" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
doCheck = true;
checkTarget = "test";
@ -56,7 +67,7 @@ stdenv.mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "GSettings deepin desktop-wide schemas";

View File

@ -1,10 +1,18 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, deepin,
dtkcore, dtkwidget, kcodecs, qttools, syntax-highlighting,
wrapQtAppsHook
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, cmake
, deepin
, dtkcore
, dtkwidget
, kcodecs
, qttools
, syntax-highlighting
, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-editor";
version = "1.2.9.1";
@ -52,7 +60,7 @@ stdenv.mkDerivation rec {
searchHardCodedPaths $out # debugging
'';
passthru.updateScript = deepin.updateScript { inherit name; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Simple editor for Deepin Desktop Environment";

View File

@ -1,4 +1,10 @@
{ stdenv, fetchFromGitHub, gettext, python3Packages, perlPackages, deepin }:
{ stdenv
, fetchFromGitHub
, gettext
, python3Packages
, perlPackages
, deepin
}:
stdenv.mkDerivation rec {
pname = "deepin-gettext-tools";
@ -23,7 +29,9 @@ stdenv.mkDerivation rec {
python3Packages.python
];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
postPatch = ''
sed -e 's/sudo cp/cp/' -i src/generate_mo.py
@ -35,7 +43,7 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/deepin-desktop-ts-convert --set PERL5LIB $PERL5LIB
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin Internationalization utilities";

View File

@ -1,4 +1,8 @@
{ stdenv, fetchFromGitHub, gtk-engine-murrine, deepin }:
{ stdenv
, fetchFromGitHub
, gtk-engine-murrine
, deepin
}:
stdenv.mkDerivation rec {
pname = "deepin-gtk-theme";
@ -11,11 +15,15 @@ stdenv.mkDerivation rec {
sha256 = "0zs6mq70yd1k3d9zm3q6zxnw1md56r4imad5imdxwx58yxdx47fw";
};
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
propagatedUserEnvPkgs = [
gtk-engine-murrine
];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin GTK Theme";

View File

@ -1,4 +1,11 @@
{ stdenv, fetchFromGitHub, gtk3, xcursorgen, papirus-icon-theme, deepin, hicolor-icon-theme }:
{ stdenv
, fetchFromGitHub
, gtk3
, xcursorgen
, papirus-icon-theme
, deepin
, hicolor-icon-theme
}:
stdenv.mkDerivation rec {
pname = "deepin-icon-theme";
@ -11,7 +18,10 @@ stdenv.mkDerivation rec {
sha256 = "12rzzjp906np95ckbxrd4mb345lm198wz69kxy48f8q1zg78q8iw";
};
nativeBuildInputs = [ gtk3 xcursorgen ];
nativeBuildInputs = [
gtk3
xcursorgen
];
propagatedBuildInputs = [
papirus-icon-theme
@ -38,7 +48,7 @@ stdenv.mkDerivation rec {
cp -a ./Sea ./usr/share/icons/hicolor "$out"/share/icons/
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Icons for the Deepin Desktop Environment";

View File

@ -1,6 +1,18 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
libexif, deepin
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, qttools
, qtsvg
, qtx11extras
, dtkcore
, dtkwidget
, qt5integration
, freeimage
, libraw
, libexif
, deepin
}:
mkDerivation rec {
@ -41,7 +53,7 @@ mkDerivation rec {
-e "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix,"
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Image Viewer for Deepin Desktop Environment";

View File

@ -1,5 +1,13 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, dtkcore, dtkwidget,
qt5integration, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, dtkcore
, dtkwidget
, qt5integration
, deepin
}:
mkDerivation rec {
pname = "deepin-menu";
@ -34,7 +42,7 @@ mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin menu service";

View File

@ -1,6 +1,22 @@
{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, cmake, pkgconfig, qttools, qtx11extras,
dtkcore, dtkwidget, ffmpeg, ffmpegthumbnailer, mpv, pulseaudio,
libdvdnav, libdvdread, xorg, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, fetchpatch
, cmake
, pkgconfig
, qttools
, qtx11extras
, dtkcore
, dtkwidget
, ffmpeg
, ffmpegthumbnailer
, mpv
, pulseaudio
, libdvdnav
, libdvdread
, xorg
, deepin
}:
mkDerivation rec {
pname = "deepin-movie-reborn";
@ -48,7 +64,6 @@ mkDerivation rec {
NIX_LDFLAGS = "-ldvdnav";
postPatch = ''
searchHardCodedPaths # debugging
@ -58,7 +73,7 @@ mkDerivation rec {
--replace "Exec=deepin-movie" "Exec=$out/bin/deepin-movie"
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin movie player";

View File

@ -1,6 +1,19 @@
{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, cmake, pkgconfig, xdg_utils, qttools, qtx11extras,
dtkcore, dtkwidget, dtkwm, deepin-turbo, deepin-shortcut-viewer,
deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, fetchpatch
, cmake
, pkgconfig
, xdg_utils
, qttools
, qtx11extras
, dtkcore
, dtkwidget
, dtkwm
, deepin-turbo
, deepin-shortcut-viewer
, deepin
}:
mkDerivation rec {
pname = "deepin-screenshot";
@ -48,7 +61,7 @@ mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Easy-to-use screenshot tool for Deepin Desktop Environment";

View File

@ -1,5 +1,13 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, dtkcore, dtkwidget,
qt5integration, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, dtkcore
, dtkwidget
, qt5integration
, deepin
}:
mkDerivation rec {
pname = "deepin-shortcut-viewer";
@ -25,7 +33,7 @@ mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Pop-up shortcut viewer for Deepin applications";

View File

@ -1,4 +1,7 @@
{ stdenv, fetchFromGitHub, deepin }:
{ stdenv
, fetchFromGitHub
, deepin
}:
stdenv.mkDerivation rec {
pname = "deepin-sound-theme";
@ -11,9 +14,11 @@ stdenv.mkDerivation rec {
sha256 = "1sw4nrn7q7wk1hpicm05apyc0mihaw42iqm52wb8ib8gm1qiylr9";
};
makeFlags = [ "PREFIX=${placeholder "out"}" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin sound theme";

View File

@ -1,8 +1,39 @@
{ stdenv, fetchFromGitHub, pkgconfig, cmake, ninja, vala_0_40, fetchpatch,
gettext, at-spi2-core, dbus, epoxy, expect, gtk3, json-glib,
libXdmcp, libgee, libpthreadstubs, librsvg, libsecret, libtasn1,
libxcb, libxkbcommon, p11-kit, pcre, vte, wnck, libselinux, gnutls, pcre2,
libsepol, utillinux, deepin-menu, deepin-shortcut-viewer, deepin, wrapGAppsHook }:
{ stdenv
, fetchFromGitHub
, pkgconfig
, cmake
, ninja
, vala_0_40
, fetchpatch
, gettext
, at-spi2-core
, dbus
, epoxy
, expect
, gtk3
, json-glib
, libXdmcp
, libgee
, libpthreadstubs
, librsvg
, libsecret
, libtasn1
, libxcb
, libxkbcommon
, p11-kit
, pcre
, vte
, wnck
, libselinux
, gnutls
, pcre2
, libsepol
, utillinux
, deepin-menu
, deepin-shortcut-viewer
, deepin
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "deepin-terminal";
@ -69,7 +100,7 @@ stdenv.mkDerivation rec {
"-DVERSION=${version}"
];
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Default terminal emulator for Deepin";
@ -77,7 +108,7 @@ stdenv.mkDerivation rec {
Deepin terminal, it sharpens your focus in the world of command line!
It is an advanced terminal emulator with workspace, multiple
windows, remote management, quake mode and other features.
'';
'';
homepage = "https://github.com/linuxdeepin/deepin-terminal";
license = licenses.gpl3;
platforms = platforms.linux;

View File

@ -1,4 +1,11 @@
{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, qtbase, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, cmake
, pkgconfig
, qtbase
, deepin
}:
mkDerivation rec {
pname = "deepin-turbo";
@ -31,7 +38,7 @@ mkDerivation rec {
searchHardCodedPaths $out # for debugging
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "A daemon that helps to launch applications faster";

View File

@ -1,4 +1,8 @@
{ stdenv, fetchFromGitHub, dde-api, deepin }:
{ stdenv
, fetchFromGitHub
, dde-api
, deepin
}:
stdenv.mkDerivation rec {
pname = "deepin-wallpapers";
@ -11,7 +15,10 @@ stdenv.mkDerivation rec {
sha256 = "09cfnxbpms98ibqbi4xd51181q3az5n8rmndcdr9w12kyzniz7xv";
};
nativeBuildInputs = [ dde-api deepin.setupHook ];
nativeBuildInputs = [
dde-api
deepin.setupHook
];
postPatch = ''
searchHardCodedPaths # debugging
@ -33,7 +40,7 @@ stdenv.mkDerivation rec {
$out/var/cache/image-blur/$(echo -n $out/share/backgrounds/deepin/desktop.jpg | md5sum | cut -d " " -f 1).jpg
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Wallpapers for Deepin Desktop Environment";

View File

@ -1,10 +1,16 @@
{ pkgs, makeScope, libsForQt5 }:
let
packages = self: with self; {
setupHook = ./setup-hook.sh;
updateScript = callPackage ./update.nix { };
# Update script tailored to deepin packages from git repository
updateScript = { pname, version, src }:
pkgs.genericUpdater {
inherit pname version;
attrPath = "deepin.${pname}";
versionLister = "${pkgs.common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}";
ignoredVersions = "^2014(\\.|rc)|^v[0-9]+";
};
dbus-factory = callPackage ./dbus-factory { };
dde-api = callPackage ./dde-api { };
@ -56,4 +62,4 @@ let
};
in
makeScope libsForQt5.newScope packages
makeScope libsForQt5.newScope packages

View File

@ -1,4 +1,12 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qtbase, libisoburn, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, qtbase
, libisoburn
, deepin
}:
mkDerivation rec {
pname = "disomaster";
@ -29,7 +37,7 @@ mkDerivation rec {
libdisomaster/libdisomaster.pro
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "A libisoburn wrapper for Qt";

View File

@ -1,5 +1,12 @@
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, gnome3,
dde-polkit-agent, deepin }:
{ stdenv
, fetchFromGitHub
, pkgconfig
, qmake
, qttools
, gnome3
, dde-polkit-agent
, deepin
}:
stdenv.mkDerivation rec {
pname = "dpa-ext-gnomekeyring";
@ -30,7 +37,7 @@ stdenv.mkDerivation rec {
fixPath $out /usr dpa-ext-gnomekeyring.pro gnomekeyringextention.cpp
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "GNOME keyring extension for dde-polkit-agent";

View File

@ -1,4 +1,12 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, gsettings-qt, pythonPackages, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, gsettings-qt
, pythonPackages
, deepin
}:
mkDerivation rec {
pname = "dtkcore";
@ -43,7 +51,7 @@ mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin tool kit core library";

View File

@ -1,6 +1,19 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
dde-qt-dbus-factory, dtkcore, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, qttools
, qtmultimedia
, qtsvg
, qtx11extras
, librsvg
, libstartup_notification
, gsettings-qt
, dde-qt-dbus-factory
, dtkcore
, deepin
}:
mkDerivation rec {
pname = "dtkwidget";
@ -40,7 +53,7 @@ mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin graphical user interface library";

View File

@ -1,4 +1,13 @@
{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, pkgconfig, qmake, qtx11extras, dtkcore, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, fetchpatch
, pkgconfig
, qmake
, qtx11extras
, dtkcore
, deepin
}:
mkDerivation rec {
pname = "dtkwm";
@ -37,7 +46,7 @@ mkDerivation rec {
"LIB_INSTALL_DIR=${outRef}/lib"
];
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Deepin graphical user interface library";

View File

@ -1,4 +1,7 @@
{ stdenv, fetchFromGitHub, deepin }:
{ stdenv
, fetchFromGitHub
, deepin
}:
stdenv.mkDerivation rec {
pname = "go-dbus-factory";
@ -11,13 +14,15 @@ stdenv.mkDerivation rec {
sha256 = "06fqyad9f50gcjsjkh7929yyaprahdjhnd0dr4gl2797a7wysl3f";
};
makeFlags = [ "PREFIX=${placeholder "out"}" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
postPatch = ''
sed -i -e 's:/share/gocode:/share/go:' Makefile
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "GoLang DBus factory for the Deepin Desktop Environment";

View File

@ -1,4 +1,9 @@
{ stdenv, fetchFromGitHub, go, go-lib, deepin }:
{ stdenv
, fetchFromGitHub
, go
, go-lib
, deepin
}:
stdenv.mkDerivation rec {
pname = "go-dbus-generator";
@ -21,7 +26,7 @@ stdenv.mkDerivation rec {
"GOCACHE=$(TMPDIR)/go-cache"
];
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Convert dbus interfaces to go-lang or qml wrapper code";

View File

@ -1,5 +1,12 @@
{ stdenv, fetchpatch, fetchFromGitHub, pkgconfig, go, gobject-introspection,
libgudev, deepin }:
{ stdenv
, fetchpatch
, fetchFromGitHub
, pkgconfig
, go
, gobject-introspection
, libgudev
, deepin
}:
stdenv.mkDerivation rec {
pname = "go-gir-generator";
@ -40,7 +47,7 @@ stdenv.mkDerivation rec {
"GOCACHE=$(TMPDIR)/go-cache"
];
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Generate static golang bindings for GObject";

View File

@ -1,5 +1,12 @@
{ stdenv, fetchFromGitHub, glib, xorg, gdk-pixbuf, pulseaudio,
mobile-broadband-provider-info, deepin }:
{ stdenv
, fetchFromGitHub
, glib
, xorg
, gdk-pixbuf
, pulseaudio
, mobile-broadband-provider-info
, deepin
}:
stdenv.mkDerivation rec {
pname = "go-lib";
@ -27,7 +34,7 @@ stdenv.mkDerivation rec {
rm -r $out/share/go/src/pkg.deepin.io/lib/debian
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Go bindings for Deepin Desktop Environment development";

View File

@ -1,12 +1,35 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools,
qtwebchannel, qtx11extras,
gnome2, nss, nspr, alsaLib, atk, cairo, cups, dbus,
expat, fontconfig, gdk-pixbuf, glib, gtk2,
libxcb, pango, pulseaudio, xorg, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, cmake
, qtbase
, qttools
, qtwebchannel
, qtx11extras
, gnome2
, nss
, nspr
, alsaLib
, atk
, cairo
, cups
, dbus
, expat
, fontconfig
, gdk-pixbuf
, glib
, gtk2
, libxcb
, pango
, pulseaudio
, xorg
, deepin
}:
let
rpahtLibraries = [
stdenv.cc.cc.lib # libstdc++.so.6
stdenv.cc.cc.lib # libstdc++.so.6
alsaLib
atk
cairo
@ -35,9 +58,10 @@ let
xorg.libXrender
xorg.libXtst
];
libPath = stdenv.lib.makeLibraryPath rpahtLibraries;
in
libPath = stdenv.lib.makeLibraryPath rpahtLibraries;
in
mkDerivation rec {
pname = "qcef";
version = "1.1.7";
@ -90,14 +114,14 @@ mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version; src = (builtins.head srcs); };
meta = with stdenv.lib; {
description = "Qt5 binding of Chromium Embedded Framework";
homepage = "https://github.com/linuxdeepin/qcef";
license = licenses.lgpl3;
platforms = platforms.linux;
badPlatforms = [ "aarch64-linux" ]; # the cef-binary is not available
badPlatforms = [ "aarch64-linux" ]; # the cef-binary is not available
maintainers = with maintainers; [ romildo ];
};
}

View File

@ -1,5 +1,15 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, qtx11extras, libSM,
mtdev, cairo, deepin, qtbase }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, qtx11extras
, libSM
, mtdev
, cairo
, deepin
, qtbase
}:
mkDerivation rec {
pname = "qt5dxcb-plugin";
@ -43,7 +53,7 @@ mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version; src = (builtins.head srcs); };
meta = with stdenv.lib; {
description = "Qt platform theme integration plugin for DDE";

View File

@ -1,6 +1,19 @@
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, qmake, mtdev,
lxqt, qtx11extras, qtmultimedia, qtsvg,
qt5dxcb-plugin, qtstyleplugins, dtkcore, dtkwidget, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, pkgconfig
, qmake
, mtdev
, lxqt
, qtx11extras
, qtmultimedia
, qtsvg
, qt5dxcb-plugin
, qtstyleplugins
, dtkcore
, dtkwidget
, deepin
}:
mkDerivation rec {
pname = "qt5integration";
@ -40,7 +53,7 @@ mkDerivation rec {
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "Qt platform theme integration plugins for DDE";

View File

@ -1,13 +1,42 @@
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, alsaLib,
coreutils, dbus-factory, dde-api, dde-daemon, dde-dock,
dde-file-manager, dde-polkit-agent, dde-session-ui, deepin,
deepin-desktop-base, deepin-desktop-schemas, deepin-turbo,
dde-kwin, glib, gnome3, go, go-dbus-factory, go-gir-generator,
go-lib, gtk3, jq, kmod, libX11, libXi, libcgroup, pciutils, psmisc,
pulseaudio, systemd, xorg, wrapGAppsHook }:
{ stdenv
, buildGoPackage
, fetchFromGitHub
, pkgconfig
, alsaLib
, coreutils
, dbus-factory
, dde-api
, dde-daemon
, dde-dock
, dde-file-manager
, dde-polkit-agent
, dde-session-ui
, deepin
, deepin-desktop-base
, deepin-desktop-schemas
, deepin-turbo
, dde-kwin
, glib
, gnome3
, go
, go-dbus-factory
, go-gir-generator
, go-lib
, gtk3
, jq
, kmod
, libX11
, libXi
, libcgroup
, pciutils
, psmisc
, pulseaudio
, systemd
, xorg
, wrapGAppsHook
}:
buildGoPackage rec {
name = "${pname}-${version}";
pname = "startdde";
version = "5.0.1";
@ -120,7 +149,7 @@ buildGoPackage rec {
'';
passthru = {
updateScript = deepin.updateScript { inherit name; };
updateScript = deepin.updateScript { inherit pname version src; };
providedSessions = [ "deepin" ];
};

View File

@ -1,4 +1,10 @@
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qtbase, deepin }:
{ stdenv
, mkDerivation
, fetchFromGitHub
, qmake
, qtbase
, deepin
}:
mkDerivation rec {
pname = "udisks2-qt5";
@ -28,7 +34,7 @@ mkDerivation rec {
searchHardCodedPaths $out
'';
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
passthru.updateScript = deepin.updateScript { inherit pname version src; };
meta = with stdenv.lib; {
description = "UDisks2 D-Bus interfaces binding for Qt5";

View File

@ -1,38 +0,0 @@
{ stdenv, lib, writeScript, coreutils, curl, gnugrep, gnused, jq, common-updater-scripts, nix }:
{ name, ignored-versions ? "^2014(\\.|rc)|^v[0-9]+" }:
let
nameAndVersion = builtins.parseDrvName name;
packageVersion = nameAndVersion.version;
packageName = nameAndVersion.name;
attrPath = "deepin.${packageName}";
in
writeScript "update-${packageName}" ''
#!${stdenv.shell}
set -o errexit
set -x
# search for the latest version of the package on github
PATH=${lib.makeBinPath [ common-updater-scripts coreutils curl gnugrep gnused jq ]}
tags=$(curl -s https://api.github.com/repos/linuxdeepin/${packageName}/tags)
tags=$(echo "$tags" | jq -r '.[] | .name')
echo "# ${name}" >> git-commits.txt
echo "# available tags:" >> git-commits.txt
echo "$tags" | ${gnused}/bin/sed -e 's/^/# /' >> git-commits.txt
if [ -n "${ignored-versions}" ]; then
tags=$(echo "$tags" | grep -vE "${ignored-versions}")
fi
latest_tag=$(echo "$tags" | sort --version-sort | tail -1)
# generate commands to commit the changes
if [ "${packageVersion}" != "$latest_tag" ]; then
pfile=$(EDITOR=echo ${nix}/bin/nix edit -f. ${attrPath})
echo " git add $pfile " >> git-commits.txt
echo " git commit -m \"${attrPath}: ${packageVersion} -> $latest_tag\"" >> git-commits.txt
fi
# update the nix expression
update-source-version "${attrPath}" "$latest_tag"
echo "" >> git-commits.txt
''