diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-02-15 00:02:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 00:02:51 +0000 |
commit | 604991674d3921284607cd13a4969bb6382aca65 (patch) | |
tree | c6968be3adae75fce690241757f9345947698098 /pkgs/by-name/ti/tilix/package.nix | |
parent | 08b62a0025ee9331067d6f4c478699e6a82bd33d (diff) | |
parent | 537907d90e7272b65756a6e8261264bee5465b3c (diff) | |
download | nixlib-604991674d3921284607cd13a4969bb6382aca65.tar nixlib-604991674d3921284607cd13a4969bb6382aca65.tar.gz nixlib-604991674d3921284607cd13a4969bb6382aca65.tar.bz2 nixlib-604991674d3921284607cd13a4969bb6382aca65.tar.lz nixlib-604991674d3921284607cd13a4969bb6382aca65.tar.xz nixlib-604991674d3921284607cd13a4969bb6382aca65.tar.zst nixlib-604991674d3921284607cd13a4969bb6382aca65.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/by-name/ti/tilix/package.nix')
-rw-r--r-- | pkgs/by-name/ti/tilix/package.nix | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/pkgs/by-name/ti/tilix/package.nix b/pkgs/by-name/ti/tilix/package.nix new file mode 100644 index 000000000000..2e0bdad0be8c --- /dev/null +++ b/pkgs/by-name/ti/tilix/package.nix @@ -0,0 +1,79 @@ +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, python3 +, pkg-config +, ldc +, dconf +, dbus +, gsettings-desktop-schemas +, desktop-file-utils +, gettext +, gtkd +, libsecret +, wrapGAppsHook +, libunwind +, appstream +, nixosTests +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "tilix"; + version = "1.9.6"; + + src = fetchFromGitHub { + owner = "gnunn1"; + repo = "tilix"; + rev = finalAttrs.version; + hash = "sha256-KP0ojwyZ5FaYKW0nK9mGGAiz1h+gTbfjCUDCgN2LAO8="; + }; + + # Default upstream else LDC fails to link + mesonBuildType = [ + "debugoptimized" + ]; + + nativeBuildInputs = [ + desktop-file-utils + ldc + meson + ninja + pkg-config + python3 + wrapGAppsHook + appstream + ]; + + buildInputs = [ + dbus + gettext + dconf + gsettings-desktop-schemas + gtkd + libsecret + libunwind + ]; + + postPatch = '' + chmod +x meson_post_install.py + patchShebangs meson_post_install.py + ''; + + preFixup = '' + substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \ + --replace "Exec=tilix" "Exec=$out/bin/tilix" + ''; + + passthru.tests.test = nixosTests.terminal-emulators.tilix; + + meta = with lib; { + description = "Tiling terminal emulator following the Gnome Human Interface Guidelines"; + homepage = "https://gnunn1.github.io/tilix-web"; + license = licenses.mpl20; + maintainers = with maintainers; [ midchildan jtbx ]; + platforms = platforms.linux; + mainProgram = "tilix"; + }; +}) |