Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / ti / tilix / package.nix
blob4394a2a52f58298a47561e41803b5eb91065214c
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , meson
5 , ninja
6 , python3
7 , pkg-config
8 , ldc
9 , dconf
10 , dbus
11 , gsettings-desktop-schemas
12 , desktop-file-utils
13 , gettext
14 , gtkd
15 , libsecret
16 , wrapGAppsHook3
17 , libunwind
18 , appstream
19 , nixosTests
22 stdenv.mkDerivation (finalAttrs: {
23   pname = "tilix";
24   version = "1.9.6";
26   src = fetchFromGitHub {
27     owner = "gnunn1";
28     repo = "tilix";
29     rev = finalAttrs.version;
30     hash = "sha256-KP0ojwyZ5FaYKW0nK9mGGAiz1h+gTbfjCUDCgN2LAO8=";
31   };
33   # Default upstream else LDC fails to link
34   mesonBuildType = [
35     "debugoptimized"
36   ];
38   nativeBuildInputs = [
39     desktop-file-utils
40     ldc
41     meson
42     ninja
43     pkg-config
44     python3
45     wrapGAppsHook3
46     appstream
47   ];
49   buildInputs = [
50     dbus
51     gettext
52     dconf
53     gsettings-desktop-schemas
54     gtkd
55     libsecret
56     libunwind
57   ];
59   postPatch = ''
60     chmod +x meson_post_install.py
61     patchShebangs meson_post_install.py
62   '';
64   preFixup = ''
65     substituteInPlace $out/share/applications/com.gexperts.Tilix.desktop \
66       --replace "Exec=tilix" "Exec=$out/bin/tilix"
67   '';
69   passthru.tests.test = nixosTests.terminal-emulators.tilix;
71   meta = with lib; {
72     description = "Tiling terminal emulator following the Gnome Human Interface Guidelines";
73     homepage = "https://gnunn1.github.io/tilix-web";
74     license = licenses.mpl20;
75     maintainers = with maintainers; [ midchildan jtbx ];
76     platforms = platforms.linux;
77     mainProgram = "tilix";
78   };