nixpkgs/pkgs/applications/terminal-emulators/sakura/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.8 KiB
Nix
Raw Normal View History

2021-06-21 03:26:40 +00:00
{ lib
, stdenv
, fetchFromGitHub
2020-10-23 18:01:07 +00:00
, cmake
2021-06-21 03:26:40 +00:00
, glib
2020-10-23 18:01:07 +00:00
, gtk3
2023-07-09 22:34:38 +00:00
, gettext
, pango
2021-06-21 03:26:40 +00:00
, makeWrapper
, pcre2
2020-10-23 18:01:07 +00:00
, perl
2021-06-21 03:26:40 +00:00
, pkg-config
2020-10-23 18:01:07 +00:00
, vte
, nixosTests
2020-10-23 18:01:07 +00:00
}:
2015-02-09 23:23:50 +00:00
2023-07-09 22:34:38 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "sakura";
2023-07-09 22:34:38 +00:00
version = "3.8.7";
2015-02-09 23:23:50 +00:00
src = fetchFromGitHub {
owner = "dabisu";
2023-07-09 22:34:38 +00:00
repo = "sakura";
rev = "SAKURA_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-mDYwqRPezHEgLyZlJQ6taTQiP9HDWmN09mapfp7/TPs=";
};
2015-02-09 23:23:50 +00:00
2021-06-21 03:26:40 +00:00
nativeBuildInputs = [
cmake
2023-07-09 22:34:38 +00:00
gettext
2021-06-21 03:26:40 +00:00
makeWrapper
perl
pkg-config
];
2015-02-09 23:23:50 +00:00
2021-06-21 03:26:40 +00:00
buildInputs = [
glib
gtk3
2023-07-09 22:34:38 +00:00
pango
2021-06-21 03:26:40 +00:00
pcre2
vte
];
2023-07-09 22:34:38 +00:00
strictDeps = true;
2021-06-21 03:26:40 +00:00
# Set path to gsettings-schemata so sakura knows where to find colorchooser,
# fontchooser etc.
postFixup = ''
2020-10-23 18:01:07 +00:00
wrapProgram $out/bin/sakura \
--suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
'';
2015-02-09 23:23:50 +00:00
passthru.tests.test = nixosTests.terminal-emulators.sakura;
2023-07-09 22:34:38 +00:00
meta = {
2020-10-23 18:01:07 +00:00
homepage = "https://www.pleyades.net/david/projects/sakura";
description = "A terminal emulator based on GTK and VTE";
longDescription = ''
sakura is a terminal emulator based on GTK and VTE. It's a terminal
emulator with few dependencies, so you don't need a full GNOME desktop
installed to have a decent terminal emulator. Current terminal emulators
based on VTE are gnome-terminal, XFCE Terminal, TermIt and a small
sample program included in the vte sources. The differences between
sakura and the last one are that it uses a notebook to provide several
terminals in one window and adds a contextual menu with some basic
options. No more no less.
'';
2023-07-09 22:34:38 +00:00
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ astsmtl codyopel AndersonTorres ];
platforms = lib.platforms.linux;
2023-11-27 01:17:53 +00:00
mainProgram = "sakura";
2020-10-23 18:01:07 +00:00
};
2023-07-09 22:34:38 +00:00
})