deepin-desktop-schemas: 5.10.11 -> 6.0.5

This commit is contained in:
rewine 2023-09-26 14:35:47 +08:00
parent 86f28dc401
commit 24e1b0d39d
No known key found for this signature in database
GPG Key ID: 2964FF5514455F51

View File

@ -1,25 +1,22 @@
{ stdenv { stdenv
, lib , lib
, buildGoModule
, fetchFromGitHub , fetchFromGitHub
, buildGoPackage
, go-lib
, glib , glib
}: }:
buildGoPackage rec {
pname = "deepin-desktop-schemas";
version = "5.10.11";
goPackagePath = "github.com/linuxdeepin/deepin-desktop-schemas"; buildGoModule rec {
pname = "deepin-desktop-schemas";
version = "6.0.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxdeepin"; owner = "linuxdeepin";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-MboNj0zC3azavDUsmeNNafCcUa0GeoySl610+WOtNww="; hash = "sha256-lvAY0CJ+EohMK16fwIkB7Jq7gTpMhDimPYs9b/IklA4=";
}; };
nativeBuildInputs = [ glib ]; vendorSha256 = "sha256-q6ugetchJLv2JjZ9+nevUI0ptizh2V+6SByoY/eFJJQ=";
buildInputs = [ go-lib ];
postPatch = '' postPatch = ''
# Relocate files path for backgrounds and wallpapers # Relocate files path for backgrounds and wallpapers
@ -32,21 +29,23 @@ buildGoPackage rec {
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
addToSearchPath GOPATH "${go-lib}/share/gocode" make ARCH=${stdenv.hostPlatform.linuxArch}
make ARCH=${stdenv.hostPlatform.linuxArch} -C go/src/${goPackagePath}
runHook postBuild runHook postBuild
''; '';
nativeCheckInputs = [ glib ];
checkPhase = ''
runHook preCheck
make test
runHook postCheck
'';
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
make install DESTDIR="$out" PREFIX="/" -C go/src/${goPackagePath} make install DESTDIR="$out" PREFIX="/"
runHook postInstall runHook postInstall
''; '';
preFixup = ''
glib-compile-schemas ${glib.makeSchemaPath "$out" "${pname}-${version}"}
'';
meta = with lib; { meta = with lib; {
description = "GSettings deepin desktop-wide schemas"; description = "GSettings deepin desktop-wide schemas";
homepage = "https://github.com/linuxdeepin/deepin-desktop-schemas"; homepage = "https://github.com/linuxdeepin/deepin-desktop-schemas";