1 { lib, stdenv, fetchFromGitHub, pkg-config, vte, gtk, pcre2, nixosTests }:
5 version = "2019-03-26";
7 nativeBuildInputs = [ pkg-config ];
9 buildInputs = [ vte gtk pcre2 ];
11 src = fetchFromGitHub {
14 rev = "f824e41c2ca9016db73556c5d2f5a2861e235c8e";
15 sha256 = "1f73wvqqvj5pr3fvb7jjc4bi1iwgkkknz24k8n69mdb75jnfjipp";
18 makeFlags = [ "PKGCONFIG=${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config" "binary=stupidterm" ];
21 install -D stupidterm $out/bin/stupidterm
22 install -D -m 644 stupidterm.desktop $out/share/applications/stupidterm.desktop
23 install -D -m 644 stupidterm.ini $out/share/stupidterm/stupidterm.ini
25 substituteInPlace $out/share/applications/stupidterm.desktop \
26 --replace "Exec=st" "Exec=$out/bin/stupidterm"
29 passthru.tests.test = nixosTests.terminal-emulators.stupidterm;
32 description = "Simple wrapper around the VTE terminal emulator widget for GTK";
33 homepage = "https://github.com/esmil/stupidterm";
34 license = licenses.lgpl3Plus;
35 maintainers = [ maintainers.etu ];
36 platforms = platforms.linux;
37 mainProgram = "stupidterm";