deepin.dde-api: 3.5.0 -> 3.18.1
This commit is contained in:
parent
4a00f98f27
commit
5c38dbd225
@ -1,12 +1,32 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig,
|
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig,
|
||||||
deepin-gettext-tools, go-dbus-factory, go-gir-generator, go-lib,
|
alsaLib,
|
||||||
alsaLib, glib, gtk3, libcanberra, libgudev, librsvg, poppler,
|
bc,
|
||||||
pulseaudio, go, deepin }:
|
blur-effect,
|
||||||
|
coreutils,
|
||||||
|
dbus-factory,
|
||||||
|
deepin,
|
||||||
|
deepin-gettext-tools,
|
||||||
|
fontconfig,
|
||||||
|
glib,
|
||||||
|
go,
|
||||||
|
go-dbus-factory,
|
||||||
|
go-gir-generator,
|
||||||
|
go-lib,
|
||||||
|
grub2,
|
||||||
|
gtk3,
|
||||||
|
libcanberra,
|
||||||
|
libgudev,
|
||||||
|
librsvg,
|
||||||
|
poppler,
|
||||||
|
pulseaudio,
|
||||||
|
rfkill,
|
||||||
|
xcur2png
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "dde-api";
|
pname = "dde-api";
|
||||||
version = "3.5.0";
|
version = "3.18.1";
|
||||||
|
|
||||||
goPackagePath = "pkg.deepin.io/dde/api";
|
goPackagePath = "pkg.deepin.io/dde/api";
|
||||||
|
|
||||||
@ -14,33 +34,62 @@ buildGoPackage rec {
|
|||||||
owner = "linuxdeepin";
|
owner = "linuxdeepin";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1g3s0i5wa6qyv00yksz4r4cy2vhiknq8v0yx7aribvwm3gxf7jw3";
|
sha256 = "0y8v18f6l3ycysdn4qi7c93z805q7alji8wix4j4qh9x9r35d728";
|
||||||
};
|
};
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
|
outputs = [ "out" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
deepin-gettext-tools
|
deepin-gettext-tools # build
|
||||||
go-dbus-factory
|
dbus-factory # build
|
||||||
go-gir-generator
|
go-dbus-factory # needed
|
||||||
go-lib
|
go-gir-generator # needed
|
||||||
|
go-lib # build
|
||||||
|
deepin.setupHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
alsaLib
|
alsaLib # needed
|
||||||
glib
|
bc # run (to adjust grub theme?)
|
||||||
gtk3
|
blur-effect # run (is it really needed?)
|
||||||
libcanberra
|
coreutils # run (is it really needed?)
|
||||||
libgudev
|
fontconfig # run (is it really needed?)
|
||||||
librsvg
|
#glib # ? arch
|
||||||
poppler
|
grub2 # run (is it really needed?)
|
||||||
pulseaudio
|
gtk3 # build run
|
||||||
];
|
libcanberra # build run
|
||||||
|
libgudev # needed
|
||||||
|
librsvg # build run
|
||||||
|
poppler # build run
|
||||||
|
pulseaudio # needed
|
||||||
|
rfkill # run
|
||||||
|
xcur2png # run
|
||||||
|
#locales # run (locale-helper needs locale-gen, which is unavailable on NixOS?)
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
searchHardCodedPaths # debugging
|
||||||
sed -i -e "s|/var|$bin/var|" Makefile
|
|
||||||
|
sed -i -e "s|/var|$out/var|" Makefile
|
||||||
|
|
||||||
|
# TODO: confirm where to install grub themes
|
||||||
|
sed -i -e "s|/boot/grub|$out/boot/grub|" Makefile
|
||||||
|
|
||||||
|
fixPath $out /usr/lib/deepin-api \
|
||||||
|
lunar-calendar/main.go \
|
||||||
|
misc/services/com.deepin.api.CursorHelper.service \
|
||||||
|
misc/services/com.deepin.api.Graphic.service \
|
||||||
|
misc/services/com.deepin.api.LunarCalendar.service \
|
||||||
|
misc/services/com.deepin.api.Pinyin.service \
|
||||||
|
misc/system-services/com.deepin.api.Device.service \
|
||||||
|
misc/system-services/com.deepin.api.LocaleHelper.service \
|
||||||
|
misc/system-services/com.deepin.api.SoundThemePlayer.service \
|
||||||
|
misc/systemd/system/deepin-shutdown-sound.service \
|
||||||
|
theme_thumb/gtk/gtk.go \
|
||||||
|
thumbnails/gtk/gtk.go
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -49,10 +98,9 @@ buildGoPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
make install PREFIX="$bin" SYSTEMD_LIB_DIR="$bin/lib" -C go/src/${goPackagePath}
|
make install PREFIX="$out" SYSTEMD_LIB_DIR="$out/lib" -C go/src/${goPackagePath}
|
||||||
mkdir -p $out/share
|
mv $out/share/gocode $out/share/go
|
||||||
mv $bin/share/gocode $out/share/go
|
remove-references-to -t ${go} $out/bin/* $out/lib/deepin-api/*
|
||||||
remove-references-to -t ${go} $bin/bin/* $bin/lib/deepin-api/*
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = deepin.updateScript { inherit name; };
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
||||||
|
22
pkgs/desktops/deepin/dde-api/deps.nix
generated
22
pkgs/desktops/deepin/dde-api/deps.nix
generated
@ -1,4 +1,4 @@
|
|||||||
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
|
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
goPackagePath = "github.com/alecthomas/template";
|
goPackagePath = "github.com/alecthomas/template";
|
||||||
@ -32,8 +32,8 @@
|
|||||||
fetch = {
|
fetch = {
|
||||||
type = "git";
|
type = "git";
|
||||||
url = "https://github.com/disintegration/imaging";
|
url = "https://github.com/disintegration/imaging";
|
||||||
rev = "9458da53d1e65e098d48467a4317c403327e4424";
|
rev = "061e8a750a4db9667cdf9e2af7f4029ba506cb3b";
|
||||||
sha256 = "1b0ma9if8s892qfx5b1vjinxn00ah9vsyxijs8knkilrhf5vqcx4";
|
sha256 = "13fkknwz2iby5rdzv9sgam6p27zdgxis3sxgyls9sdir5lbhjhm7";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -41,8 +41,8 @@
|
|||||||
fetch = {
|
fetch = {
|
||||||
type = "git";
|
type = "git";
|
||||||
url = "https://github.com/fogleman/gg";
|
url = "https://github.com/fogleman/gg";
|
||||||
rev = "0e0ff3ade7039063fe954cc1b45fad6cd4ac80db";
|
rev = "0403632d5b905943a1c2a5b2763aaecd568467ec";
|
||||||
sha256 = "06gvsngfwizdxin90nldix5503fqgnwqmqvxzrz0xg5hfazwfra5";
|
sha256 = "1nkldjghbqnzj2djfaxhiv35kk341xhcrj9m2dwq65v684iqkk8n";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -59,8 +59,8 @@
|
|||||||
fetch = {
|
fetch = {
|
||||||
type = "git";
|
type = "git";
|
||||||
url = "https://github.com/linuxdeepin/go-x11-client";
|
url = "https://github.com/linuxdeepin/go-x11-client";
|
||||||
rev = "03541136501cab4910ad8852fe749ef8e18907ca";
|
rev = "48c75d615ef634d9b1c24f8e8a30f56201b4f561";
|
||||||
sha256 = "1iiw8qclpklim81hz1sdjp2ajw0ljvjz19n9jly86nbw6m8x4gkp";
|
sha256 = "1x2i9wg6lyskls5qi3d2r84bdhyhgi8v1d8scxx9ysjaw9di9ldl";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -77,8 +77,8 @@
|
|||||||
fetch = {
|
fetch = {
|
||||||
type = "git";
|
type = "git";
|
||||||
url = "https://go.googlesource.com/image";
|
url = "https://go.googlesource.com/image";
|
||||||
rev = "69cc3646b96e61de0b417f4815b86c36e65783ee";
|
rev = "3fc05d484e9f77dd51816890e05f2602e4ca4d65";
|
||||||
sha256 = "0nkywb3r0qvwkmykpswnf0svxi463ycn293y5jjididzxv9qxdp9";
|
sha256 = "0mcip8jpz2061j1z658rfskphc92wv6sapy81p95bnjdymi562k3";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -86,8 +86,8 @@
|
|||||||
fetch = {
|
fetch = {
|
||||||
type = "git";
|
type = "git";
|
||||||
url = "https://go.googlesource.com/net";
|
url = "https://go.googlesource.com/net";
|
||||||
rev = "c44066c5c816ec500d459a2a324a753f78531ae0";
|
rev = "74de082e2cca95839e88aa0aeee5aadf6ce7710f";
|
||||||
sha256 = "0mgww74bl15d0jvsh4f3qr1ckjzb8icb8hn0mgs5ppa0b2fgpc4f";
|
sha256 = "0a4y3y0q5bkif7wvdkyjkvgnzlbh2n4zk7wsy5j95raf0i3zlw4s";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user