nixos/filesystems: don't silently ignore label when device is set (#361418)
[NixPkgs.git] / pkgs / by-name / mr / mrxvt / package.nix
blob83bac2343b97f0a87fbc61e5013a8bb37c93bb59
1 { lib
2 , stdenv
3 , fetchurl
4 , libX11
5 , libXft
6 , libXi
7 , xorgproto
8 , libSM
9 , libICE
10 , freetype
11 , pkg-config
12 , which
13 , nixosTests
16 stdenv.mkDerivation rec {
17   pname = "mrxvt";
18   version = "0.5.4";
20   src = fetchurl {
21     url = "mirror://sourceforge/materm/mrxvt-${version}.tar.gz";
22     sha256 = "1mqhmnlz32lvld9rc6c1hyz7gjw4anwf39yhbsjkikcgj1das0zl";
23   };
25   nativeBuildInputs = [ pkg-config ];
26   buildInputs = [ libX11 libXft libXi xorgproto libSM libICE freetype which ];
28   configureFlags = [
29     "--with-x"
30     "--enable-frills"
31     "--enable-xft"
32     "--enable-xim"
33     # "--with-term=xterm"
34     "--with-max-profiles=100"
35     "--with-max-term=100"
36     "--with-save-lines=10000"
37   ];
39   preConfigure = ''
40     NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype.dev}/include/freetype2";
41   '';
43   passthru.tests.test = nixosTests.terminal-emulators.mrxvt;
45   meta = with lib; {
46     description = "Lightweight multitabbed feature-rich X11 terminal emulator";
47     longDescription = "
48       Multitabbed lightweight terminal emulator based on rxvt.
49       Supports transparency, backgroundimages, freetype fonts, ...
50     ";
51     homepage = "https://sourceforge.net/projects/materm";
52     license = licenses.gpl2;
53     platforms = platforms.linux;
54     maintainers = [ ];
55     knownVulnerabilities = [
56       "Usage of ANSI escape sequences causes unexpected newline-termination, leading to unexpected command execution (https://www.openwall.com/lists/oss-security/2021/05/17/1)"
57     ];
58   };