159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
glib,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "deepin-desktop-schemas";
|
|
version = "6.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-zheIZ3Z0vm0/0F9hFcdlYwhE3/PRunxUCT8KSe4T3wk=";
|
|
};
|
|
|
|
vendorHash = "sha256-q6ugetchJLv2JjZ9+nevUI0ptizh2V+6SByoY/eFJJQ=";
|
|
|
|
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
|
|
make ARCH=${stdenv.hostPlatform.linuxArch}
|
|
runHook postBuild
|
|
'';
|
|
|
|
nativeCheckInputs = [ glib ];
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
make test
|
|
runHook postCheck
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
make install DESTDIR="$out" PREFIX="/"
|
|
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;
|
|
};
|
|
}
|