2023-03-04 12:14:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, buildGoModule
|
2023-03-04 12:14:45 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
}:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "deepin-desktop-schemas";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "6.0.6";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-zheIZ3Z0vm0/0F9hFcdlYwhE3/PRunxUCT8KSe4T3wk=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-q6ugetchJLv2JjZ9+nevUI0ptizh2V+6SByoY/eFJJQ=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Relocate files path for backgrounds and wallpapers
|
|
|
|
for file in $(grep -rl "/usr/share")
|
|
|
|
do
|
|
|
|
substituteInPlace $file \
|
|
|
|
--replace "/usr/share" "/run/current-system/sw/share"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
2024-01-02 11:29:13 +00:00
|
|
|
make ARCH=${stdenv.hostPlatform.linuxArch}
|
2023-03-04 12:14:45 +00:00
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeCheckInputs = [ glib ];
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
make test
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2024-01-02 11:29:13 +00:00
|
|
|
make install DESTDIR="$out" PREFIX="/"
|
2023-03-04 12:14:45 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GSettings deepin desktop-wide schemas";
|
|
|
|
homepage = "https://github.com/linuxdeepin/deepin-desktop-schemas";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.deepin.members;
|
|
|
|
};
|
|
|
|
}
|