biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / applications / terminal-emulators / stupidterm / default.nix
blobf10d91229376b3336de684405c2c207008529a56
1 { lib, stdenv, fetchFromGitHub, pkg-config, vte, gtk, pcre2, nixosTests }:
3 stdenv.mkDerivation {
4   pname = "stupidterm";
5   version = "2019-03-26";
7   nativeBuildInputs = [ pkg-config ];
9   buildInputs = [ vte gtk pcre2 ];
11   src = fetchFromGitHub {
12     owner = "esmil";
13     repo = "stupidterm";
14     rev = "f824e41c2ca9016db73556c5d2f5a2861e235c8e";
15     sha256 = "1f73wvqqvj5pr3fvb7jjc4bi1iwgkkknz24k8n69mdb75jnfjipp";
16   };
18   makeFlags = [ "PKGCONFIG=${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config" "binary=stupidterm" ];
20   installPhase = ''
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"
27   '';
29   passthru.tests.test = nixosTests.terminal-emulators.stupidterm;
31   meta = with lib; {
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";
38   };