Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
85 lines
1.4 KiB
Nix
85 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
polkit,
|
|
vala,
|
|
wrapGAppsHook3,
|
|
editorconfig-core-c,
|
|
granite,
|
|
gsettings-desktop-schemas,
|
|
gtk3,
|
|
gtksourceview4,
|
|
gtkspell3,
|
|
libgee,
|
|
libgit2-glib,
|
|
libhandy,
|
|
libpeas2,
|
|
libsoup_3,
|
|
vte,
|
|
ctags,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "elementary-code";
|
|
version = "8.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = "code";
|
|
rev = version;
|
|
hash = "sha256-4IGun7MnrMRmpXD0Kxm/ND4C3pFVhjHqDeP6jUmRg7k=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
polkit # needed for ITS rules
|
|
vala
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
editorconfig-core-c
|
|
granite
|
|
gsettings-desktop-schemas
|
|
gtk3
|
|
gtksourceview4
|
|
gtkspell3
|
|
libgee
|
|
libgit2-glib
|
|
libhandy
|
|
libpeas2
|
|
libsoup_3
|
|
vala # for ValaSymbolResolver provided by libvala
|
|
vte
|
|
];
|
|
|
|
# ctags needed in path by outline plugin
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix PATH : "${lib.makeBinPath [ ctags ]}"
|
|
)
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Code editor designed for elementary OS";
|
|
homepage = "https://github.com/elementary/code";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
teams = [ teams.pantheon ];
|
|
mainProgram = "io.elementary.code";
|
|
};
|
|
}
|