deepin: add update script
This commit is contained in:
parent
d0df66ea60
commit
287db0f9b9
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, jq, libxml2, go-dbus-generator }:
|
||||
{ stdenv, fetchFromGitHub, jq, libxml2, go-dbus-generator, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e 's:/share/gocode:/share/go:' Makefile
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generates static DBus bindings for Golang and QML at build-time";
|
||||
homepage = https://github.com/linuxdeepin/dbus-factory;
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig,
|
||||
go-gir-generator, glib, gtk3, poppler, librsvg, pulseaudio, alsaLib,
|
||||
libcanberra, gnome3, deepin-gettext-tools, go }:
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig ,
|
||||
go-gir-generator, glib, gtk3, poppler, librsvg, pulseaudio, alsaLib,
|
||||
libcanberra, gnome3, deepin-gettext-tools, go, deepin
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -50,6 +51,8 @@ buildGoPackage rec {
|
||||
remove-references-to -t ${go} $bin/bin/* $bin/lib/deepin-api/*
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Go-lang bindings for dde-daemon";
|
||||
homepage = https://github.com/linuxdeepin/dde-api;
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools,
|
||||
deepin-gettext-tools, dtkcore, dtkwidget
|
||||
deepin-gettext-tools, dtkcore, dtkwidget, deepin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -34,6 +34,8 @@ stdenv.mkDerivation rec {
|
||||
-e "s,/usr,$out,"
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Calendar for Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/dde-calendar;
|
||||
|
@ -2,7 +2,7 @@
|
||||
dbus-factory, go-dbus-factory, go-gir-generator, go-lib,
|
||||
deepin-gettext-tools, dde-api, alsaLib, glib, gtk3, libinput, libnl,
|
||||
librsvg, linux-pam, networkmanager, pulseaudio, xorg, gnome3,
|
||||
python3Packages, hicolor-icon-theme, go }:
|
||||
python3Packages, hicolor-icon-theme, go, deepin }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -80,6 +80,8 @@ buildGoPackage rec {
|
||||
remove-references-to -t ${go} $out/lib/deepin-daemon/*
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Daemon for handling Deepin Desktop Environment session settings";
|
||||
homepage = https://github.com/linuxdeepin/dde-daemon;
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, polkit-qt,
|
||||
dtkcore, dtkwidget, dde-qt-dbus-factory }:
|
||||
dtkcore, dtkwidget, dde-qt-dbus-factory, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -36,6 +36,8 @@ stdenv.mkDerivation rec {
|
||||
-e "s,/usr/lib/polkit-1-dde/plugins,/run/current-system/sw/lib/polkit-1-dde/plugins,"
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "PolicyKit agent for Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/dde-polkit-agent;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, python }:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, python, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Qt DBus interface library for Deepin software";
|
||||
homepage = https://github.com/linuxdeepin/dde-qt-dbus-factory;
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtsvg, qttools,
|
||||
qtx11extras, xkeyboard_config, xorg, lightdm_qt, gsettings-qt,
|
||||
dde-qt-dbus-factory, deepin-gettext-tools, dtkcore, dtkwidget,
|
||||
hicolor-icon-theme }:
|
||||
hicolor-icon-theme, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -50,6 +50,8 @@ stdenv.mkDerivation rec {
|
||||
sed -i widgets/*.cpp boxframe/*.cpp -e 's,/usr/share/backgrounds/default_background.jpg,/usr/share/backgrounds/deepin/desktop.jpg,'
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin desktop-environment - Session UI module";
|
||||
homepage = https://github.com/linuxdeepin/dde-session-ui;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, deepin-wallpapers }:
|
||||
{ stdenv, fetchFromGitHub, deepin-wallpapers, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
|
||||
ln -s ../lib/deepin/desktop-version $out/etc/deepin-version
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Base assets and definitions for Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/deepin-desktop-base;
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, python, deepin-gtk-theme,
|
||||
deepin-icon-theme, deepin-sound-theme, deepin-wallpapers, gnome3 }:
|
||||
deepin-icon-theme, deepin-sound-theme, deepin-wallpapers, gnome3,
|
||||
deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -33,6 +34,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GSettings deepin desktop-wide schemas";
|
||||
homepage = https://github.com/linuxdeepin/deepin-desktop-schemas;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, gettext, python3Packages, perlPackages }:
|
||||
{ stdenv, fetchFromGitHub, gettext, python3Packages, perlPackages, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -36,6 +36,8 @@ stdenv.mkDerivation rec {
|
||||
wrapProgram $out/bin/deepin-desktop-ts-convert --set PERL5LIB $PERL5LIB
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin Internationalization utilities";
|
||||
homepage = https://github.com/linuxdeepin/deepin-gettext-tools;
|
||||
|
@ -1,7 +1,8 @@
|
||||
{ stdenv, fetchFromGitHub, gtk-engine-murrine }:
|
||||
{ stdenv, fetchFromGitHub, gtk-engine-murrine, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "deepin-gtk-theme-${version}";
|
||||
name = "${pname}-${version}";
|
||||
pname = "deepin-gtk-theme";
|
||||
version = "17.10.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -15,6 +16,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin GTK Theme";
|
||||
homepage = https://github.com/linuxdeepin/deepin-gtk-theme;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, gtk3, papirus-icon-theme }:
|
||||
{ stdenv, fetchFromGitHub, gtk3, papirus-icon-theme, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e 's|\(-rm -f .*/icon-theme.cache\)|# \1|g' Makefile
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Icons for the Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/deepin-icon-theme;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtsvg,
|
||||
qtx11extras, dtkcore, dtkwidget, qt5integration, freeimage, libraw,
|
||||
libexif
|
||||
libexif, deepin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
|
||||
-e "s,/usr,$out,"
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Image Viewer for Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/deepin-image-viewer;
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, dtkcore, dtkwidget,
|
||||
qt5integration }:
|
||||
qt5integration, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin menu service";
|
||||
homepage = https://github.com/linuxdeepin/deepin-menu;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, gnome3, bamf,
|
||||
json-glib, libcanberra-gtk3, libxkbcommon, libstartup_notification,
|
||||
deepin-wallpapers, deepin-desktop-schemas }:
|
||||
deepin-wallpapers, deepin-desktop-schemas, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -52,6 +52,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "2D window manager for Deepin";
|
||||
homepage = https://github.com/linuxdeepin/deepin-metacity;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, qttools, qtx11extras,
|
||||
dtkcore, dtkwidget, ffmpeg, ffmpegthumbnailer, mpv, pulseaudio,
|
||||
libdvdnav, libdvdread, xorg }:
|
||||
libdvdnav, libdvdread, xorg, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
|
||||
sed -i src/libdmr/libdmr.pc.in -e "s,/usr,$out," -e 's,libdir=''${prefix}/,libdir=,'
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin movie player";
|
||||
homepage = https://github.com/linuxdeepin/deepin-movie-reborn;
|
||||
|
@ -1,7 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, gnome3, xorg,
|
||||
libcanberra-gtk3, upower, xkeyboard_config, libxkbcommon,
|
||||
libstartup_notification, libinput, cogl, clutter, systemd
|
||||
}:
|
||||
libstartup_notification, libinput, cogl, clutter, systemd, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -51,6 +50,8 @@ stdenv.mkDerivation rec {
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Base window manager for deepin, fork of gnome mutter";
|
||||
homepage = https://github.com/linuxdeepin/deepin-mutter;
|
||||
|
@ -1,6 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, dtkcore, dtkwidget,
|
||||
qt5integration
|
||||
}:
|
||||
qt5integration, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -27,6 +26,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pop-up shortcut viewer for Deepin applications";
|
||||
homepage = https://github.com/linuxdeepin/deepin-shortcut-viewer;
|
||||
|
@ -1,7 +1,8 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
{ stdenv, fetchFromGitHub, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "deepin-sound-theme-${version}";
|
||||
name = "${pname}-${version}";
|
||||
pname = "deepin-sound-theme";
|
||||
version = "15.10.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -13,6 +14,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin sound theme";
|
||||
homepage = https://github.com/linuxdeepin/deepin-sound-theme;
|
||||
|
@ -1,10 +1,11 @@
|
||||
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, gtk3, vala, cmake,
|
||||
ninja, vte, libgee, wnck, zssh, gettext, librsvg, libsecret,
|
||||
json-glib, gobjectIntrospection, deepin-menu, deepin-shortcut-viewer
|
||||
}:
|
||||
json-glib, gobjectIntrospection, deepin-menu,
|
||||
deepin-shortcut-viewer, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "deepin-terminal-${version}";
|
||||
name = "${pname}-${version}";
|
||||
pname = "deepin-terminal";
|
||||
version = "3.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -50,6 +51,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The default terminal emulation for Deepin";
|
||||
longDescription = ''
|
||||
|
@ -1,7 +1,8 @@
|
||||
{ stdenv, fetchFromGitHub, dde-api }:
|
||||
{ stdenv, fetchFromGitHub, dde-api, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "deepin-wallpapers-${version}";
|
||||
name = "${pname}-${version}";
|
||||
pname = "deepin-wallpapers";
|
||||
version = "1.7.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@ -31,6 +32,8 @@ 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 { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Wallpapers for Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/deepin-wallpapers;
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, vala, gnome3,
|
||||
bamf, clutter-gtk, granite, libcanberra-gtk3, libwnck3,
|
||||
deepin-mutter, deepin-wallpapers, deepin-desktop-schemas,
|
||||
hicolor-icon-theme }:
|
||||
hicolor-icon-theme, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -48,6 +48,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin Window Manager";
|
||||
homepage = https://github.com/linuxdeepin/deepin-wm;
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
let
|
||||
packages = self: with self; {
|
||||
updateScript = callPackage ./update.nix { };
|
||||
|
||||
dbus-factory = callPackage ./dbus-factory { };
|
||||
dde-api = callPackage ./dde-api { };
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, gnome3, dde-polkit-agent }:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, gnome3,
|
||||
dde-polkit-agent, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -30,6 +31,8 @@ stdenv.mkDerivation rec {
|
||||
-e "s,/usr,$out,"
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GNOME keyring extension for dde-polkit-agent";
|
||||
homepage = https://github.com/linuxdeepin/dpa-ext-gnomekeyring;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, gsettings-qt, pythonPackages }:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, gsettings-qt, pythonPackages, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -42,6 +42,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin tool kit core modules";
|
||||
homepage = https://github.com/linuxdeepin/dtkcore;
|
||||
|
@ -1,7 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qttools, qtmultimedia,
|
||||
qtsvg, qtx11extras, librsvg, libstartup_notification, gsettings-qt,
|
||||
dde-qt-dbus-factory, dtkcore
|
||||
}:
|
||||
dde-qt-dbus-factory, dtkcore, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -41,6 +40,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin graphical user interface library";
|
||||
homepage = https://github.com/linuxdeepin/dtkwidget;
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtx11extras, dtkcore }:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtx11extras, dtkcore,
|
||||
deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -29,6 +30,8 @@ stdenv.mkDerivation rec {
|
||||
LIB_INSTALL_DIR=$out/lib"
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Deepin graphical user interface library";
|
||||
homepage = https://github.com/linuxdeepin/dtkwm;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
{ stdenv, fetchFromGitHub, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e 's:/share/gocode:/share/go:' Makefile
|
||||
'';
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GoLang DBus factory for the Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/go-dbus-factory;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, go, go-lib }:
|
||||
{ stdenv, fetchFromGitHub, go, go-lib, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
|
||||
"GOCACHE=off"
|
||||
];
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Convert dbus interfaces to go-lang or qml wrapper code";
|
||||
homepage = https://github.com/linuxdeepin/go-dbus-generator;
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, go, gobjectIntrospection, libgudev }:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, go, gobjectIntrospection,
|
||||
libgudev, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -31,6 +32,8 @@ stdenv.mkDerivation rec {
|
||||
"GOCACHE=off"
|
||||
];
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generate static golang bindings for GObject";
|
||||
homepage = https://github.com/linuxdeepin/go-gir-generator;
|
||||
|
@ -1,6 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, glib, xorg, gdk_pixbuf, pulseaudio,
|
||||
mobile-broadband-provider-info
|
||||
}:
|
||||
mobile-broadband-provider-info, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -27,6 +26,8 @@ stdenv.mkDerivation rec {
|
||||
"GOSITE_DIR=$(out)/share/go"
|
||||
];
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Go bindings for Deepin Desktop Environment development";
|
||||
homepage = https://github.com/linuxdeepin/go-lib;
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtx11extras, libSM, mtdev, cairo }:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, qtx11extras, libSM,
|
||||
mtdev, cairo, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -30,6 +31,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Qt platform theme integration plugin for DDE";
|
||||
homepage = https://github.com/linuxdeepin/qt5dxcb-plugin;
|
||||
|
@ -1,7 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, mtdev, gsettings-qt
|
||||
, lxqt, qtx11extras, qtmultimedia, qtsvg, fontconfig, freetype
|
||||
, qt5dxcb-plugin, qtstyleplugins, dtkcore, dtkwidget
|
||||
}:
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, qmake, mtdev, gsettings-qt ,
|
||||
lxqt, qtx11extras, qtmultimedia, qtsvg, fontconfig, freetype ,
|
||||
qt5dxcb-plugin, qtstyleplugins, dtkcore, dtkwidget, deepin }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
@ -42,6 +41,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Qt platform theme integration plugins for DDE";
|
||||
homepage = https://github.com/linuxdeepin/qt5integration;
|
||||
|
37
pkgs/desktops/deepin/update.nix
Normal file
37
pkgs/desktops/deepin/update.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib, writeScript, coreutils, curl, gnugrep, gnused, jq, common-updater-scripts, nix }:
|
||||
{ name, ignored-versions ? "^2014\\.|^v[0-9]+" }:
|
||||
|
||||
let
|
||||
nameAndVersion = builtins.parseDrvName name;
|
||||
packageVersion = nameAndVersion.version;
|
||||
packageName = nameAndVersion.name;
|
||||
attrPath = "deepin.${packageName}";
|
||||
in
|
||||
|
||||
writeScript "update-${packageName}" ''
|
||||
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
|
||||
''
|
Loading…
Reference in New Issue
Block a user