xed-editor: 3.2.2 -> 3.2.7

This is not cmake project. Upstream now provides a post install script.
This commit is contained in:
Bobby Rong 2022-07-17 23:19:23 +08:00
parent 890385c26e
commit 79a68c3816
No known key found for this signature in database
GPG Key ID: ED07364437C91161

View File

@ -1,7 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, cmake
, libxml2 , libxml2
, libpeas , libpeas
, glib , glib
@ -10,30 +9,32 @@
, gspell , gspell
, xapps , xapps
, pkg-config , pkg-config
, python3
, meson , meson
, ninja , ninja
, wrapGAppsHook , wrapGAppsHook
, intltool , intltool
, itstool }: , itstool
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xed-editor"; pname = "xed-editor";
version = "3.2.2"; version = "3.2.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxmint"; owner = "linuxmint";
repo = "xed"; repo = "xed";
rev = version; rev = version;
sha256 = "sha256-PW7y3+Sa9FH5r5xvziysvxM08RJCPvnLs3wsm5IqToQ="; sha256 = "sha256-aO5ilmlkSAxlkWYdSLmrcm7pC8GbITpCitd4TXp5tfY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
cmake
pkg-config pkg-config
intltool intltool
itstool itstool
ninja ninja
python3
wrapGAppsHook wrapGAppsHook
]; ];
@ -47,10 +48,6 @@ stdenv.mkDerivation rec {
xapps xapps
]; ];
postInstall = ''
glib-compile-schemas $out/share/glib-2.0/schemas
'';
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''
if [[ "$($out/bin/xed --version)" == "xed - Version ${version}" ]] ; then if [[ "$($out/bin/xed --version)" == "xed - Version ${version}" ]] ; then