2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, python3
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, libgee
|
2021-07-17 21:14:59 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, elementary-icon-theme
|
|
|
|
, appstream
|
|
|
|
, libpeas
|
|
|
|
, editorconfig-core-c
|
2021-07-17 21:14:59 +00:00
|
|
|
, gtksourceview4
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtkspell3
|
|
|
|
, libsoup
|
|
|
|
, vte
|
|
|
|
, webkitgtk
|
|
|
|
, ctags
|
|
|
|
, libgit2-glib
|
|
|
|
, wrapGAppsHook
|
2021-07-17 21:14:59 +00:00
|
|
|
, polkit
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-code";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
repoName = "code";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = repoName;
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-AXmMcPj2hf33G5v3TUg+eZwaKOdVlRvoVXglMJFHRjw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-09-22 15:38:15 +00:00
|
|
|
polkit # needed for ITS rules
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ctags
|
|
|
|
editorconfig-core-c
|
|
|
|
elementary-icon-theme
|
|
|
|
granite
|
|
|
|
gtk3
|
2021-07-17 21:14:59 +00:00
|
|
|
gtksourceview4
|
2020-04-24 23:36:52 +00:00
|
|
|
gtkspell3
|
|
|
|
libgee
|
|
|
|
libgit2-glib
|
2021-07-17 21:14:59 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
libpeas
|
|
|
|
libsoup
|
|
|
|
vte
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
|
|
|
# install script fails with UnicodeDecodeError because of printing a fancy elipsis character
|
|
|
|
LC_ALL = "C.UTF-8";
|
|
|
|
|
|
|
|
# ctags needed in path by outline plugin
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2021-01-17 00:15:33 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ ctags ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Code editor designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/code";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "io.elementary.code";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|