2021-01-17 14:03:59 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libxml2
|
|
|
|
, libpeas
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview4
|
|
|
|
, gspell
|
2022-07-27 06:05:17 +02:00
|
|
|
, xapp
|
2021-01-17 14:03:59 +01:00
|
|
|
, pkg-config
|
2022-07-17 17:19:23 +02:00
|
|
|
, python3
|
2021-01-17 14:03:59 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wrapGAppsHook
|
|
|
|
, intltool
|
2022-07-17 17:19:23 +02:00
|
|
|
, itstool
|
|
|
|
}:
|
2021-01-17 14:03:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xed-editor";
|
2022-11-21 13:00:41 +01:00
|
|
|
version = "3.2.8";
|
2021-01-17 14:03:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "xed";
|
|
|
|
rev = version;
|
2022-11-21 13:00:41 +01:00
|
|
|
sha256 = "sha256-ax769qjV0oZ6tnEE5FsXNbHETI6KNgvh0WviBsPs9j8=";
|
2021-01-17 14:03:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
pkg-config
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
ninja
|
2022-07-17 17:19:23 +02:00
|
|
|
python3
|
2021-01-17 14:03:59 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gtksourceview4
|
|
|
|
libpeas
|
|
|
|
gspell
|
2022-07-27 06:05:17 +02:00
|
|
|
xapp
|
2021-01-17 14:03:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
if [[ "$($out/bin/xed --version)" == "xed - Version ${version}" ]] ; then
|
|
|
|
echo "${pname} smoke test passed"
|
|
|
|
else
|
|
|
|
echo "${pname} smoke test failed"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Light weight text editor from Linux Mint";
|
|
|
|
homepage = "https://github.com/linuxmint/xed";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux;
|
2022-11-01 10:24:40 +01:00
|
|
|
maintainers = with maintainers; [ tu-maurice bobby285271 ];
|
2021-01-17 14:03:59 +01:00
|
|
|
};
|
|
|
|
}
|