mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
deepin.dde-api: 6.0.7 -> 6.0.9
This commit is contained in:
parent
1959be561b
commit
69cfd69c54
@ -1,7 +1,6 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, deepin-gettext-tools
|
, deepin-gettext-tools
|
||||||
@ -21,40 +20,32 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "dde-api";
|
pname = "dde-api";
|
||||||
version = "6.0.7";
|
version = "6.0.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "linuxdeepin";
|
owner = "linuxdeepin";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-kdf1CoZUyda6bOTW0WJTgaXYhocrjRU9ptj7i+k8aaQ=";
|
hash = "sha256-ht5IaXi4nz0/U1zqp4JTiDkQ3NB69q24MgWfu45SpoY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
vendorHash = "sha256-zrtUsCF2+301DKwgWectw+UbOehOp8h8u/IMf09XQ8Q=";
|
||||||
(fetchpatch {
|
|
||||||
name = "modify_PKGBUILD_to_support_OBS.patch";
|
|
||||||
url = "https://github.com/linuxdeepin/dde-api/commit/1399522d032c6c649db79a33348cdb1a233bc23a.patch";
|
|
||||||
hash = "sha256-kSHnYaOxIvv7lAJnvxpSwyRDPyDxpAq9x+gJcBdU3T8=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
vendorHash = "sha256-4Yscw3QjWG1rlju6sMRHGn3dSe65b1nx10B3KeyAzBM=";
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace misc/systemd/system/deepin-shutdown-sound.service \
|
substituteInPlace misc/systemd/system/deepin-shutdown-sound.service \
|
||||||
--replace "/usr/bin/true" "${coreutils}/bin/true"
|
--replace-fail "/usr/bin/true" "${coreutils}/bin/true"
|
||||||
|
|
||||||
substituteInPlace sound-theme-player/main.go \
|
substituteInPlace sound-theme-player/main.go \
|
||||||
--replace "/usr/sbin/alsactl" "alsactl"
|
--replace-fail "/usr/sbin/alsactl" "alsactl"
|
||||||
|
|
||||||
substituteInPlace misc/{scripts/deepin-boot-sound.sh,systemd/system/deepin-login-sound.service} \
|
substituteInPlace misc/{scripts/deepin-boot-sound.sh,systemd/system/deepin-login-sound.service} \
|
||||||
--replace "/usr/bin/dbus-send" "${dbus}/bin/dbus-send"
|
--replace-fail "/usr/bin/dbus-send" "${dbus}/bin/dbus-send"
|
||||||
|
|
||||||
substituteInPlace lunar-calendar/huangli.go adjust-grub-theme/main.go \
|
substituteInPlace lunar-calendar/huangli.go adjust-grub-theme/main.go \
|
||||||
--replace "/usr/share/dde-api" "$out/share/dde-api"
|
--replace-fail "/usr/share/dde-api" "$out/share/dde-api"
|
||||||
|
|
||||||
substituteInPlace themes/{theme.go,settings.go} \
|
substituteInPlace themes/{theme.go,settings.go} \
|
||||||
--replace "/usr/share" "/run/current-system/sw/share"
|
--replace-fail "/usr/share" "/run/current-system/sw/share"
|
||||||
|
|
||||||
for file in $(grep "/usr/lib/deepin-api" * -nR |awk -F: '{print $1}')
|
for file in $(grep "/usr/lib/deepin-api" * -nR |awk -F: '{print $1}')
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user