deepin.dde-api: 3.5.0 -> 3.18.1
This commit is contained in:
parent
4a00f98f27
commit
5c38dbd225
2 changed files with 83 additions and 35 deletions
|
@ -1,12 +1,32 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig,
|
||||
deepin-gettext-tools, go-dbus-factory, go-gir-generator, go-lib,
|
||||
alsaLib, glib, gtk3, libcanberra, libgudev, librsvg, poppler,
|
||||
pulseaudio, go, deepin }:
|
||||
alsaLib,
|
||||
bc,
|
||||
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 {
|
||||
name = "${pname}-${version}";
|
||||
pname = "dde-api";
|
||||
version = "3.5.0";
|
||||
version = "3.18.1";
|
||||
|
||||
goPackagePath = "pkg.deepin.io/dde/api";
|
||||
|
||||
|
@ -14,33 +34,62 @@ buildGoPackage rec {
|
|||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1g3s0i5wa6qyv00yksz4r4cy2vhiknq8v0yx7aribvwm3gxf7jw3";
|
||||
sha256 = "0y8v18f6l3ycysdn4qi7c93z805q7alji8wix4j4qh9x9r35d728";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
outputs = [ "out" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
deepin-gettext-tools
|
||||
go-dbus-factory
|
||||
go-gir-generator
|
||||
go-lib
|
||||
deepin-gettext-tools # build
|
||||
dbus-factory # build
|
||||
go-dbus-factory # needed
|
||||
go-gir-generator # needed
|
||||
go-lib # build
|
||||
deepin.setupHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
alsaLib
|
||||
glib
|
||||
gtk3
|
||||
libcanberra
|
||||
libgudev
|
||||
librsvg
|
||||
poppler
|
||||
pulseaudio
|
||||
];
|
||||
alsaLib # needed
|
||||
bc # run (to adjust grub theme?)
|
||||
blur-effect # run (is it really needed?)
|
||||
coreutils # run (is it really needed?)
|
||||
fontconfig # run (is it really needed?)
|
||||
#glib # ? arch
|
||||
grub2 # run (is it really needed?)
|
||||
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 = ''
|
||||
patchShebangs .
|
||||
sed -i -e "s|/var|$bin/var|" Makefile
|
||||
searchHardCodedPaths # debugging
|
||||
|
||||
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 = ''
|
||||
|
@ -49,10 +98,9 @@ buildGoPackage rec {
|
|||
'';
|
||||
|
||||
installPhase = ''
|
||||
make install PREFIX="$bin" SYSTEMD_LIB_DIR="$bin/lib" -C go/src/${goPackagePath}
|
||||
mkdir -p $out/share
|
||||
mv $bin/share/gocode $out/share/go
|
||||
remove-references-to -t ${go} $bin/bin/* $bin/lib/deepin-api/*
|
||||
make install PREFIX="$out" SYSTEMD_LIB_DIR="$out/lib" -C go/src/${goPackagePath}
|
||||
mv $out/share/gocode $out/share/go
|
||||
remove-references-to -t ${go} $out/bin/* $out/lib/deepin-api/*
|
||||
'';
|
||||
|
||||
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";
|
||||
|
@ -32,8 +32,8 @@
|
|||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/disintegration/imaging";
|
||||
rev = "9458da53d1e65e098d48467a4317c403327e4424";
|
||||
sha256 = "1b0ma9if8s892qfx5b1vjinxn00ah9vsyxijs8knkilrhf5vqcx4";
|
||||
rev = "061e8a750a4db9667cdf9e2af7f4029ba506cb3b";
|
||||
sha256 = "13fkknwz2iby5rdzv9sgam6p27zdgxis3sxgyls9sdir5lbhjhm7";
|
||||
};
|
||||
}
|
||||
{
|
||||
|
@ -41,8 +41,8 @@
|
|||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/fogleman/gg";
|
||||
rev = "0e0ff3ade7039063fe954cc1b45fad6cd4ac80db";
|
||||
sha256 = "06gvsngfwizdxin90nldix5503fqgnwqmqvxzrz0xg5hfazwfra5";
|
||||
rev = "0403632d5b905943a1c2a5b2763aaecd568467ec";
|
||||
sha256 = "1nkldjghbqnzj2djfaxhiv35kk341xhcrj9m2dwq65v684iqkk8n";
|
||||
};
|
||||
}
|
||||
{
|
||||
|
@ -59,8 +59,8 @@
|
|||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/linuxdeepin/go-x11-client";
|
||||
rev = "03541136501cab4910ad8852fe749ef8e18907ca";
|
||||
sha256 = "1iiw8qclpklim81hz1sdjp2ajw0ljvjz19n9jly86nbw6m8x4gkp";
|
||||
rev = "48c75d615ef634d9b1c24f8e8a30f56201b4f561";
|
||||
sha256 = "1x2i9wg6lyskls5qi3d2r84bdhyhgi8v1d8scxx9ysjaw9di9ldl";
|
||||
};
|
||||
}
|
||||
{
|
||||
|
@ -77,8 +77,8 @@
|
|||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/image";
|
||||
rev = "69cc3646b96e61de0b417f4815b86c36e65783ee";
|
||||
sha256 = "0nkywb3r0qvwkmykpswnf0svxi463ycn293y5jjididzxv9qxdp9";
|
||||
rev = "3fc05d484e9f77dd51816890e05f2602e4ca4d65";
|
||||
sha256 = "0mcip8jpz2061j1z658rfskphc92wv6sapy81p95bnjdymi562k3";
|
||||
};
|
||||
}
|
||||
{
|
||||
|
@ -86,8 +86,8 @@
|
|||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/net";
|
||||
rev = "c44066c5c816ec500d459a2a324a753f78531ae0";
|
||||
sha256 = "0mgww74bl15d0jvsh4f3qr1ckjzb8icb8hn0mgs5ppa0b2fgpc4f";
|
||||
rev = "74de082e2cca95839e88aa0aeee5aadf6ce7710f";
|
||||
sha256 = "0a4y3y0q5bkif7wvdkyjkvgnzlbh2n4zk7wsy5j95raf0i3zlw4s";
|
||||
};
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue